-
Notifications
You must be signed in to change notification settings - Fork 178
added menu page #498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Bhoomi-18
wants to merge
4
commits into
Mujtabaa07:main
Choose a base branch
from
Bhoomi-18:added-menu-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
added menu page #498
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| import React from "react"; | ||
| import styled from "styled-components"; | ||
| import { Link } from "react-router-dom"; | ||
|
|
||
| // Styled Components | ||
| const MenuContainer = styled.div` | ||
| min-height: 100vh; | ||
| background: linear-gradient(135deg, #fdf5e6, #ffe4b5); | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| padding: 6rem 2rem 4rem 2rem; | ||
| `; | ||
|
|
||
| const Title = styled.h1` | ||
| font-size: 3rem; | ||
| color: #78350f; | ||
| margin-bottom: 2.5rem; | ||
| font-family: "Playfair Display", serif; | ||
| text-align: center; | ||
| letter-spacing: 2px; | ||
| `; | ||
|
|
||
| const CardsGrid = styled.div` | ||
| display: grid; | ||
| grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||
| gap: 3rem; | ||
| width: 100%; | ||
| max-width: 1100px; | ||
| margin: 0 auto; | ||
| `; | ||
|
|
||
| const MenuCard = styled(Link)` | ||
| background: linear-gradient(145deg, #ffffff, #e6e6e6); | ||
| border-radius: 18px; | ||
| box-shadow: 0 8px 32px rgba(139, 69, 19, 0.12); | ||
| overflow: hidden; | ||
| text-decoration: none; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| transition: transform 0.3s, box-shadow 0.3s; | ||
| padding: 2rem 1.5rem; | ||
| position: relative; | ||
|
|
||
| &:hover { | ||
| transform: translateY(-8px) scale(1.04); | ||
| box-shadow: 0 16px 40px rgba(139, 69, 19, 0.18); | ||
| } | ||
| `; | ||
|
|
||
| const CardImage = styled.img` | ||
| width: 120px; | ||
| height: 120px; | ||
| object-fit: cover; | ||
| border-radius: 50%; | ||
| margin-bottom: 1.5rem; | ||
| box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15); | ||
| background: #ffe4b5; | ||
| `; | ||
|
|
||
| const CardTitle = styled.h2` | ||
| font-size: 1.7rem; | ||
| color: #7c2214; | ||
| font-family: "Playfair Display", serif; | ||
| margin-bottom: 0.7rem; | ||
| text-align: center; | ||
| `; | ||
|
|
||
| const CardDesc = styled.p` | ||
| font-size: 1.1rem; | ||
| color: #6b4423; | ||
| text-align: center; | ||
| margin-bottom: 1.2rem; | ||
| `; | ||
|
|
||
| const ExploreButton = styled.span` | ||
| background: #d2691e; | ||
| color: #fff; | ||
| padding: 0.7rem 1.5rem; | ||
| border-radius: 25px; | ||
| font-weight: 600; | ||
| font-size: 1rem; | ||
| box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08); | ||
| transition: background 0.3s; | ||
| cursor: pointer; | ||
| margin-top: auto; | ||
|
|
||
| &:hover { | ||
| background: #78350f; | ||
| } | ||
| `; | ||
|
|
||
| const menuCards = [ | ||
| { | ||
| title: "Coffee", | ||
| image: "https://img.freepik.com/free-photo/caramel-latte-with-chocolade-table_140725-4.jpg?t=st=1727759794~exp=1727763394~hmac=c764d48b2b28767da2c6b996ec20e0d6a5857c19724850db5e46498687e16225&w=740", | ||
| desc: "Explore our rich and aromatic coffee selection, from classic espresso to creamy lattes.", | ||
| link: "/menu/coffee" | ||
| }, | ||
| { | ||
| title: "Cakes", | ||
| image: "https://img.freepik.com/free-photo/chocolate-cake_1203-8942.jpg?ga=GA1.1.900909129.1729318722&semt=ais_hybrid", | ||
| desc: "Indulge in our decadent cakes, perfect for every celebration and sweet craving.", | ||
| link: "/menu/cakes" | ||
| }, | ||
| { | ||
| title: "Soups", | ||
| image: "https://img.freepik.com/free-photo/portrait-shooting-tomato-soup-with-crackers-cheese-tomatoes-bread-table_141793-2858.jpg?ga=GA1.1.900909129.1729318722&semt=ais_hybrid", | ||
| desc: "Warm up with our comforting soups, made with fresh ingredients and bold flavors.", | ||
| link: "/menu/soups" | ||
| }, | ||
| { | ||
| title: "Milkshakes", | ||
| image: "https://www.sharmispassions.com/wp-content/uploads/2012/07/chocolate-milkshake1.jpg", | ||
Bhoomi-18 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| desc: "Sip on our creamy milkshakes, blended to perfection for a refreshing treat.", | ||
| link: "/menu/milkshakes" | ||
| } | ||
| ]; | ||
|
|
||
| function Menu() { | ||
| return ( | ||
| <MenuContainer> | ||
| <Title>Our Menu</Title> | ||
| <CardsGrid> | ||
| {menuCards.map(card => ( | ||
| <MenuCard to={card.link} key={card.title}> | ||
| <CardImage src={card.image} alt={card.title} /> | ||
| <CardTitle>{card.title}</CardTitle> | ||
| <CardDesc>{card.desc}</CardDesc> | ||
| <ExploreButton>Explore</ExploreButton> | ||
| </MenuCard> | ||
| ))} | ||
| </CardsGrid> | ||
| </MenuContainer> | ||
| ); | ||
| } | ||
|
|
||
| export default Menu; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The image URL contains time-sensitive parameters (t=st=1727759794~exp=1727763394). These URLs may expire and break the images. Consider using permanent image URLs or hosting the images locally.