implement interactive menu page with category filtering and animated card layouts
This commit is contained in:
parent
2fa6668add
commit
508664419c
@ -136,8 +136,8 @@ export default function MenuPage() {
|
|||||||
whileHover={{ scale: 1.05 }}
|
whileHover={{ scale: 1.05 }}
|
||||||
whileTap={{ scale: 0.95 }}
|
whileTap={{ scale: 0.95 }}
|
||||||
>
|
>
|
||||||
<Image src="/images/home/Categories/All.jpg" alt="All" width={80} height={80} className={styles.tabImage} />
|
<Image src="/images/home/Categories/All.jpg" alt="All" width={35} height={35} className={styles.tabImage} />
|
||||||
<span className={styles.tabText}>All Menu</span>
|
All Menu
|
||||||
</motion.button>
|
</motion.button>
|
||||||
|
|
||||||
{/* Category Tabs */}
|
{/* Category Tabs */}
|
||||||
@ -153,11 +153,11 @@ export default function MenuPage() {
|
|||||||
<Image
|
<Image
|
||||||
src={section.image}
|
src={section.image}
|
||||||
alt={section.category}
|
alt={section.category}
|
||||||
width={80}
|
width={35}
|
||||||
height={80}
|
height={35}
|
||||||
className={styles.tabImage}
|
className={styles.tabImage}
|
||||||
/>
|
/>
|
||||||
<span className={styles.tabText}>{section.category}</span>
|
{section.category}
|
||||||
</motion.button>
|
</motion.button>
|
||||||
))}
|
))}
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
@ -89,61 +89,41 @@
|
|||||||
.tabs {
|
.tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 1.5rem;
|
gap: 1rem;
|
||||||
margin-bottom: 5rem;
|
margin-bottom: 5rem;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding: 0 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: 2px solid #441109;
|
||||||
color: #441109;
|
color: #441109;
|
||||||
padding: 10px;
|
padding: 8px 20px 8px 8px;
|
||||||
font-size: 0.95rem;
|
font-size: 1rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
transition: all 0.3s ease;
|
||||||
font-family: var(--font-playfair);
|
font-family: var(--font-playfair);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
display: flex;
|
border-radius: 50px;
|
||||||
flex-direction: column;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 10px;
|
||||||
width: 100px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabImage {
|
.tabImage {
|
||||||
width: 70px;
|
|
||||||
height: 70px;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border: 3px solid #fff;
|
border: 2px solid #fff;
|
||||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
||||||
transition: all 0.4s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabText {
|
.tab:hover,
|
||||||
text-align: center;
|
.activeTab {
|
||||||
line-height: 1.2;
|
background-color: #441109;
|
||||||
transition: color 0.3s ease;
|
color: #f5e6d3;
|
||||||
}
|
transform: translateY(-2px);
|
||||||
|
border: 2px solid #441109;
|
||||||
.tab:hover .tabImage,
|
|
||||||
.activeTab .tabImage {
|
|
||||||
transform: scale(1.1) translateY(-5px);
|
|
||||||
border-color: #c49c5c;
|
|
||||||
box-shadow: 0 8px 25px rgba(196, 156, 92, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab:hover .tabText,
|
|
||||||
.activeTab .tabText {
|
|
||||||
color: #c49c5c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activeTab .tabImage {
|
|
||||||
border-width: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menuGrid {
|
.menuGrid {
|
||||||
@ -373,19 +353,25 @@
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.tabs {
|
.tabs {
|
||||||
gap: 1rem;
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 0.8rem;
|
||||||
margin-bottom: 2.5rem;
|
margin-bottom: 2.5rem;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
width: 85px;
|
padding: 6px 10px 6px 6px;
|
||||||
padding: 5px;
|
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabImage {
|
.tabImage {
|
||||||
width: 60px;
|
width: 25px;
|
||||||
height: 60px;
|
height: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sectionHeading {
|
.sectionHeading {
|
||||||
@ -395,23 +381,18 @@
|
|||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.tabs {
|
.tabs {
|
||||||
gap: 0.8rem;
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
gap: 0.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
width: 75px;
|
|
||||||
gap: 8px;
|
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
|
padding: 5px 8px 5px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabImage {
|
.tabImage {
|
||||||
width: 50px;
|
width: 22px;
|
||||||
height: 50px;
|
height: 22px;
|
||||||
border-width: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activeTab .tabImage {
|
|
||||||
border-width: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
|
|||||||
@ -301,7 +301,7 @@ export default function ContactContent() {
|
|||||||
|
|
||||||
<div className={styles.recaptchaWrapper}>
|
<div className={styles.recaptchaWrapper}>
|
||||||
<ReCAPTCHA
|
<ReCAPTCHA
|
||||||
sitekey="6Lckq9MrAAAAABjBD9rQYm19BMGFFWiwb9mPiw2K"
|
sitekey="6Ld1T6UsAAAAAMkLyI4diNDMBYc2n_SImmaOumJZ"
|
||||||
onChange={handleCaptchaChange}
|
onChange={handleCaptchaChange}
|
||||||
/>
|
/>
|
||||||
{formErrors.captcha && <small className={styles.errorText}>{formErrors.captcha}</small>}
|
{formErrors.captcha && <small className={styles.errorText}>{formErrors.captcha}</small>}
|
||||||
|
|||||||
@ -130,7 +130,7 @@
|
|||||||
|
|
||||||
.smallHeading3 {
|
.smallHeading3 {
|
||||||
font-size: var(--small-text-size);
|
font-size: var(--small-text-size);
|
||||||
color: var(--color-paragraph);
|
color: #441109;
|
||||||
font-family: var(--font-lato);
|
font-family: var(--font-lato);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
@ -468,7 +468,7 @@
|
|||||||
.mainHeading {
|
.mainHeading {
|
||||||
font-family: var(--font-playfair);
|
font-family: var(--font-playfair);
|
||||||
font-size: var(--main-heading-size);
|
font-size: var(--main-heading-size);
|
||||||
color: #c49c5c;
|
color: #441109;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
@ -476,7 +476,7 @@
|
|||||||
|
|
||||||
.smallHeading {
|
.smallHeading {
|
||||||
font-size: var(--small-text-size);
|
font-size: var(--small-text-size);
|
||||||
color: #441123;
|
color: #c49c5c;
|
||||||
font-family: var(--font-lato);
|
font-family: var(--font-lato);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
|
|||||||
@ -236,7 +236,7 @@ export default function BookTable() {
|
|||||||
|
|
||||||
<div className={styles.recaptchaWrapper}>
|
<div className={styles.recaptchaWrapper}>
|
||||||
<ReCAPTCHA
|
<ReCAPTCHA
|
||||||
sitekey="6Lckq9MrAAAAABjBD9rQYm19BMGFFWiwb9mPiw2K"
|
sitekey="6Ld1T6UsAAAAAMkLyI4diNDMBYc2n_SImmaOumJZ"
|
||||||
onChange={handleCaptchaChange}
|
onChange={handleCaptchaChange}
|
||||||
/>
|
/>
|
||||||
{formErrors.captcha && <small className={styles.errorText}>{formErrors.captcha}</small>}
|
{formErrors.captcha && <small className={styles.errorText}>{formErrors.captcha}</small>}
|
||||||
|
|||||||
@ -207,7 +207,7 @@
|
|||||||
|
|
||||||
.description {
|
.description {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #430f0c;
|
color: #f5e6d3;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
font-family: var(--font-lato);
|
font-family: var(--font-lato);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user