- {/* Column 1: Brand Identity */}
-
- {/* MOZIMO Logo */}
-
-
- {/* Cocoa pod icon */}
-
- {/* MOZIMO Text */}
-
-
- HAND CRAFTED
-
-
- MOZIMO
-
-
- CHOCOLATES
-
-
-
-
-
- {/* Tagline */}
-
- India's Premier European style bean-to-bar chocolate experience.
-
-
-
- {/* Column 2: Get in touch */}
-
- Get in touch
-
-
-
-
-
- 0172-4045414
-
-
-
-
-
- SCO 8, Inner Market, 9-D, Sector 9, Chandigarh, 160009
-
-
-
-
- {/* Column 3: Know more */}
-
- Know more
-
- {['Privacy Policy', 'Refund & Return Policy', 'Terms & Conditions', 'Shipping Policy'].map((link, index) => (
-
-
- {link}
-
-
-
- ))}
-
-
-
- {/* Column 4: FAQ, Store, Ordering, Social Media */}
-
- {/* Individual links */}
-
- {['FAQ', 'Locate our store', 'Bulk Ordering'].map((link, index) => (
-
-
- {link}
-
-
-
- ))}
-
-
- {/* Find Us On */}
-
-
Find Us On
-
- {/* Facebook */}
-
-
-
-
-
- {/* Instagram */}
-
-
-
-
-
- {/* YouTube */}
-
-
-
-
-
- {/* LinkedIn */}
-
-
-
-
-
-
-
-
+
+
-
- {/* Bottom Bar */}
-
- © 2024 Mozimo. All rights reserved.
-
-
+ >
);
-}
\ No newline at end of file
+}
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index 90757ad..cf3ac80 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -1,8 +1,8 @@
-'use client';
+"use client";
-import { motion, AnimatePresence } from 'framer-motion';
-import Image from 'next/image';
-import { useState, useEffect } from 'react';
+import { motion, AnimatePresence } from "framer-motion";
+import Image from "next/image";
+import { useState, useEffect } from "react";
export default function Header() {
const [isScrolled, setIsScrolled] = useState(false);
@@ -14,38 +14,41 @@ export default function Header() {
setIsScrolled(scrollPosition > 100);
};
- window.addEventListener('scroll', handleScroll);
- return () => window.removeEventListener('scroll', handleScroll);
+ window.addEventListener("scroll", handleScroll);
+ return () => window.removeEventListener("scroll", handleScroll);
}, []);
// Close mobile menu when clicking outside
useEffect(() => {
const handleClickOutside = (event: MouseEvent) => {
const target = event.target as Element;
- if (!target.closest('.mobile-menu') && !target.closest('.hamburger-button')) {
+ if (
+ !target.closest(".mobile-menu") &&
+ !target.closest(".hamburger-button")
+ ) {
setIsMobileMenuOpen(false);
}
};
if (isMobileMenuOpen) {
- document.addEventListener('click', handleClickOutside);
+ document.addEventListener("click", handleClickOutside);
}
return () => {
- document.removeEventListener('click', handleClickOutside);
+ document.removeEventListener("click", handleClickOutside);
};
}, [isMobileMenuOpen]);
// Prevent body scroll when mobile menu is open
useEffect(() => {
if (isMobileMenuOpen) {
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = "hidden";
} else {
- document.body.style.overflow = 'unset';
+ document.body.style.overflow = "unset";
}
return () => {
- document.body.style.overflow = 'unset';
+ document.body.style.overflow = "unset";
};
}, [isMobileMenuOpen]);
@@ -60,23 +63,21 @@ export default function Header() {
className="fixed top-0 z-[60] w-full md:hidden"
initial={false}
animate={{
- width: '100%',
- left: '0%',
- x: '0%',
- top: isScrolled ? '0px' : '12px',
- borderRadius: '0px',
- height: isScrolled ? '64px' : '60px',
+ width: "100%",
+ left: "0%",
+ x: "0%",
+ top: isScrolled ? "0px" : "12px",
+ borderRadius: "0px",
+ height: isScrolled ? "64px" : "60px",
}}
transition={{
duration: 0.5,
- ease: [0.25, 0.46, 0.45, 0.94]
+ ease: [0.25, 0.46, 0.45, 0.94],
}}
>
-
-
- {/* Mobile Hamburger Menu */}
+
+ {/* Left: Hamburger Menu */}
+
+
- {/* Center Logo */}
+ {/* Center: Logo */}
+
-
+
- {/* Mobile Right Side - Empty space to balance layout */}
-
+ {/* Right: Action Buttons */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -152,21 +218,21 @@ export default function Header() {
className="fixed top-0 z-50 hidden md:block"
initial={false}
animate={{
- width: isScrolled ? '100%' : '1440px',
- left: isScrolled ? '0%' : '50%',
- x: isScrolled ? '0%' : '-50%',
- top: isScrolled ? '0px' : '24px',
- borderRadius: isScrolled ? '0px' : '15px',
- height: isScrolled ? '64px' : '80px',
+ width: isScrolled ? "100%" : "1440px",
+ left: isScrolled ? "0%" : "50%",
+ x: isScrolled ? "0%" : "-50%",
+ top: isScrolled ? "0px" : "24px",
+ borderRadius: isScrolled ? "0px" : "15px",
+ height: isScrolled ? "64px" : "80px",
}}
transition={{
duration: 0.5,
- ease: [0.25, 0.46, 0.45, 0.94]
+ ease: [0.25, 0.46, 0.45, 0.94],
}}
>
@@ -177,10 +243,10 @@ export default function Header() {
className="text-gray-800 hover:text-[#8B4513] transition-all duration-300 font-renner relative group"
style={{
fontWeight: 100,
- fontFamily: 'Renner',
- fontSize: '18px',
- lineHeight: '100%',
- letterSpacing: '0%'
+ fontFamily: "Renner",
+ fontSize: "18px",
+ lineHeight: "100%",
+ letterSpacing: "0%",
}}
whileHover={{ scale: 1.02 }}
>
@@ -192,10 +258,10 @@ export default function Header() {
className="text-gray-800 hover:text-[#8B4513] transition-all duration-300 font-renner relative group"
style={{
fontWeight: 100,
- fontFamily: 'Renner',
- fontSize: '18px',
- lineHeight: '100%',
- letterSpacing: '0%'
+ fontFamily: "Renner",
+ fontSize: "18px",
+ lineHeight: "100%",
+ letterSpacing: "0%",
}}
whileHover={{ scale: 1.02 }}
>
@@ -211,16 +277,16 @@ export default function Header() {
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6 }}
>
-
More
-
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -326,10 +427,10 @@ export default function Header() {
className="block text-lg font-renner text-gray-800 hover:text-[#8B4513] transition-all duration-300 py-3 border-b border-gray-100"
style={{
fontWeight: 300,
- fontFamily: 'Renner',
- fontSize: '18px',
- lineHeight: '100%',
- letterSpacing: '0%'
+ fontFamily: "Renner",
+ fontSize: "18px",
+ lineHeight: "100%",
+ letterSpacing: "0%",
}}
onClick={() => setIsMobileMenuOpen(false)}
whileHover={{ x: 10 }}
@@ -341,10 +442,10 @@ export default function Header() {
className="block text-lg font-renner text-gray-800 hover:text-[#8B4513] transition-all duration-300 py-3 border-b border-gray-100"
style={{
fontWeight: 300,
- fontFamily: 'Renner',
- fontSize: '18px',
- lineHeight: '100%',
- letterSpacing: '0%'
+ fontFamily: "Renner",
+ fontSize: "18px",
+ lineHeight: "100%",
+ letterSpacing: "0%",
}}
onClick={() => setIsMobileMenuOpen(false)}
whileHover={{ x: 10 }}
@@ -356,10 +457,10 @@ export default function Header() {
className="block text-lg font-renner text-gray-800 hover:text-[#8B4513] transition-all duration-300 py-3 border-b border-gray-100"
style={{
fontWeight: 300,
- fontFamily: 'Renner',
- fontSize: '18px',
- lineHeight: '100%',
- letterSpacing: '0%'
+ fontFamily: "Renner",
+ fontSize: "18px",
+ lineHeight: "100%",
+ letterSpacing: "0%",
}}
onClick={() => setIsMobileMenuOpen(false)}
whileHover={{ x: 10 }}
@@ -367,40 +468,6 @@ export default function Header() {
Categories