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