design changes
This commit is contained in:
BIN
public/fonts/MONETASANS-REGULAR.OTF
Normal file
BIN
public/fonts/MONETASANS-REGULAR.OTF
Normal file
Binary file not shown.
@ -1,11 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang=en>
|
||||
<meta charset=utf-8>
|
||||
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
|
||||
<title>Error 404 (Not Found)!!1</title>
|
||||
<style>
|
||||
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
|
||||
</style>
|
||||
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
|
||||
<p><b>404.</b> <ins>That’s an error.</ins>
|
||||
<p>The requested URL <code>/s/moneta/v1/1Ptsg8zYS_SKggPNyC0IT4ttDfA.ttf</code> was not found on this server. <ins>That’s all we know.</ins>
|
||||
BIN
public/fonts/RENNER_ 300 LIGHT.OTF
Normal file
BIN
public/fonts/RENNER_ 300 LIGHT.OTF
Normal file
Binary file not shown.
BIN
public/fonts/RENNER_ 500 MEDIUM.OTF
Normal file
BIN
public/fonts/RENNER_ 500 MEDIUM.OTF
Normal file
Binary file not shown.
BIN
public/fonts/RENNER_ 700 BOLD.OTF
Normal file
BIN
public/fonts/RENNER_ 700 BOLD.OTF
Normal file
Binary file not shown.
BIN
public/fonts/SAMANTHA SIGNATURE.OTF
Normal file
BIN
public/fonts/SAMANTHA SIGNATURE.OTF
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -5,17 +5,31 @@
|
||||
/* Renner font */
|
||||
@font-face {
|
||||
font-family: 'Renner*';
|
||||
src: url('/fonts/Renner-Light.woff2') format('woff2'),
|
||||
url('/fonts/Renner-Light.woff') format('woff');
|
||||
src: url('/fonts/RENNER_ 300 LIGHT.OTF') format('opentype');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Renner*';
|
||||
src: url('/fonts/RENNER_ 500 MEDIUM.OTF') format('opentype');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Renner*';
|
||||
src: url('/fonts/RENNER_ 700 BOLD.OTF') format('opentype');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* Samantha Signature font */
|
||||
@font-face {
|
||||
font-family: 'Samantha Signature';
|
||||
src: url('/fonts/Samantha-Signature.ttf') format('truetype');
|
||||
src: url('/fonts/SAMANTHA SIGNATURE.OTF') format('opentype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
@ -24,7 +38,7 @@
|
||||
/* MonetaSans-Regular font */
|
||||
@font-face {
|
||||
font-family: 'MonetaSans-Regular';
|
||||
src: url('/fonts/MonetaSans-Regular.ttf') format('truetype');
|
||||
src: url('/fonts/MONETASANS-REGULAR.OTF') format('opentype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
|
||||
350
src/app/page.tsx
350
src/app/page.tsx
@ -1,65 +1,65 @@
|
||||
'use client';
|
||||
"use client";
|
||||
|
||||
import { motion } from 'framer-motion';
|
||||
import Header from '@/components/Header';
|
||||
import Footer from '@/components/Footer';
|
||||
import Section from '@/components/Section';
|
||||
import Button from '@/components/Button';
|
||||
import BannerSlider from '@/components/BannerSlider';
|
||||
import Image from 'next/image';
|
||||
import { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
||||
import { AnimatePresence } from 'framer-motion';
|
||||
import { useInstagram } from '@/hooks/useInstagram';
|
||||
import { motion } from "framer-motion";
|
||||
import Header from "@/components/Header";
|
||||
import Footer from "@/components/Footer";
|
||||
import Section from "@/components/Section";
|
||||
import Button from "@/components/Button";
|
||||
import BannerSlider from "@/components/BannerSlider";
|
||||
import Image from "next/image";
|
||||
import { useState, useEffect, useRef, useCallback, useMemo } from "react";
|
||||
import { AnimatePresence } from "framer-motion";
|
||||
import { useInstagram } from "@/hooks/useInstagram";
|
||||
|
||||
// Premium animation variants
|
||||
const fadeInUp = {
|
||||
initial: { opacity: 0, y: 30 },
|
||||
animate: { opacity: 1, y: 0 },
|
||||
transition: { duration: 0.8, ease: [0.25, 0.46, 0.45, 0.94] }
|
||||
transition: { duration: 0.8, ease: [0.25, 0.46, 0.45, 0.94] },
|
||||
};
|
||||
|
||||
const fadeInLeft = {
|
||||
initial: { opacity: 0, x: -30 },
|
||||
animate: { opacity: 1, x: 0 },
|
||||
transition: { duration: 0.8, ease: [0.25, 0.46, 0.45, 0.94] }
|
||||
transition: { duration: 0.8, ease: [0.25, 0.46, 0.45, 0.94] },
|
||||
};
|
||||
|
||||
const fadeInRight = {
|
||||
initial: { opacity: 0, x: 30 },
|
||||
animate: { opacity: 1, x: 0 },
|
||||
transition: { duration: 0.8, ease: [0.25, 0.46, 0.45, 0.94] }
|
||||
transition: { duration: 0.8, ease: [0.25, 0.46, 0.45, 0.94] },
|
||||
};
|
||||
|
||||
const staggerContainer = {
|
||||
animate: {
|
||||
transition: {
|
||||
staggerChildren: 0.2
|
||||
}
|
||||
}
|
||||
staggerChildren: 0.2,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const categories = [
|
||||
'Bars',
|
||||
'Barks',
|
||||
'Pralines',
|
||||
'Spreads',
|
||||
'Dragees',
|
||||
'Gelatos',
|
||||
"Bars",
|
||||
"Barks",
|
||||
"Pralines",
|
||||
"Spreads",
|
||||
"Dragees",
|
||||
"Gelatos",
|
||||
];
|
||||
const categoryImages = [
|
||||
'/categories/c1.svg',
|
||||
'/categories/c2.svg',
|
||||
'/categories/c3.svg',
|
||||
'/categories/c4.svg',
|
||||
'/categories/c5.svg',
|
||||
'/categories/c6.svg',
|
||||
"/categories/c1.svg",
|
||||
"/categories/c2.svg",
|
||||
"/categories/c3.svg",
|
||||
"/categories/c4.svg",
|
||||
"/categories/c5.svg",
|
||||
"/categories/c6.svg",
|
||||
];
|
||||
|
||||
const partnerImages = [
|
||||
'/partners/p1.svg',
|
||||
'/partners/p2.svg',
|
||||
'/partners/p3.svg',
|
||||
'/partners/p4.svg',
|
||||
"/partners/p1.svg",
|
||||
"/partners/p2.svg",
|
||||
"/partners/p3.svg",
|
||||
"/partners/p4.svg",
|
||||
];
|
||||
|
||||
export default function Home() {
|
||||
@ -80,12 +80,12 @@ export default function Home() {
|
||||
if (e.deltaY > 0) {
|
||||
// Scroll down - next category
|
||||
if (currentCategoryRef.current < categories.length - 1) {
|
||||
setCurrentCategory(prev => prev + 1);
|
||||
setCurrentCategory((prev) => prev + 1);
|
||||
}
|
||||
} else if (e.deltaY < 0) {
|
||||
// Scroll up - previous category
|
||||
if (currentCategoryRef.current > 0) {
|
||||
setCurrentCategory(prev => prev - 1);
|
||||
setCurrentCategory((prev) => prev - 1);
|
||||
}
|
||||
}
|
||||
}, []);
|
||||
@ -112,9 +112,9 @@ export default function Home() {
|
||||
}, 800);
|
||||
};
|
||||
|
||||
section.addEventListener('wheel', onWheel, { passive: false });
|
||||
section.addEventListener("wheel", onWheel, { passive: false });
|
||||
return () => {
|
||||
section.removeEventListener('wheel', onWheel);
|
||||
section.removeEventListener("wheel", onWheel);
|
||||
clearTimeout(scrollTimeout);
|
||||
};
|
||||
}, [handleWheel]);
|
||||
@ -130,7 +130,8 @@ export default function Home() {
|
||||
const { posts, loading, error, isTokenExpired } = useInstagram();
|
||||
|
||||
// Memoize expensive components
|
||||
const BrandStorySection = useMemo(() => (
|
||||
const BrandStorySection = useMemo(
|
||||
() => (
|
||||
<Section background="white" id="about">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8 md:gap-12 lg:gap-16 items-center">
|
||||
{/* Left Column - Text */}
|
||||
@ -145,31 +146,36 @@ export default function Home() {
|
||||
className="text-3xl md:text-4xl lg:text-5xl font-bold text-[#3C2A21] font-moneta text-gradient"
|
||||
style={{
|
||||
fontWeight: 400,
|
||||
fontSize: 'clamp(32px, 5vw, 58px)',
|
||||
lineHeight: '100%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'MonetaSans-Regular',
|
||||
color: '#703133'
|
||||
fontSize: "clamp(32px, 5vw, 58px)",
|
||||
lineHeight: "100%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "MonetaSans-Regular",
|
||||
color: "#703133",
|
||||
}}
|
||||
whileHover={{ scale: 1.02 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
>
|
||||
Brand Story
|
||||
</motion.h2>
|
||||
<div className="space-y-4 md:space-y-6 text-gray-700 leading-relaxed font-renner" style={{
|
||||
<div
|
||||
className="space-y-4 md:space-y-6 text-gray-700 leading-relaxed font-renner"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: 'clamp(16px, 2.5vw, 18px)',
|
||||
lineHeight: '160%',
|
||||
letterSpacing: '0%' ,
|
||||
fontFamily: 'Renner*'
|
||||
}}>
|
||||
fontSize: "clamp(16px, 2.5vw, 18px)",
|
||||
lineHeight: "160%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.1 }}
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
Mozimo's journey is a passionate pursuit of crafting exceptional chocolate that celebrates the origin of each cocoa bean.
|
||||
Mozimo's journey is a passionate pursuit of crafting
|
||||
exceptional chocolate that celebrates the origin of each cocoa
|
||||
bean.
|
||||
</motion.p>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
@ -177,7 +183,8 @@ export default function Home() {
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
We meticulously roast, crack, winnow, and refine beans in-house, using modern techniques to highlight their natural flavors.
|
||||
We meticulously roast, crack, winnow, and refine beans in-house,
|
||||
using modern techniques to highlight their natural flavors.
|
||||
</motion.p>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
@ -185,7 +192,8 @@ export default function Home() {
|
||||
transition={{ duration: 0.6, delay: 0.3 }}
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
Each chocolate is a masterpiece, capturing the essence of cocoa in its purest form.
|
||||
Each chocolate is a masterpiece, capturing the essence of cocoa
|
||||
in its purest form.
|
||||
</motion.p>
|
||||
</div>
|
||||
<motion.div
|
||||
@ -213,7 +221,7 @@ export default function Home() {
|
||||
className="relative w-full h-[300px] md:h-[400px] lg:h-[500px] rounded-xl overflow-hidden shadow-premium hover:shadow-premium-hover transition-all duration-500"
|
||||
whileHover={{
|
||||
scale: 1.02,
|
||||
transition: { duration: 0.3 }
|
||||
transition: { duration: 0.3 },
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
@ -230,7 +238,9 @@ export default function Home() {
|
||||
</motion.div>
|
||||
</div>
|
||||
</Section>
|
||||
), []);
|
||||
),
|
||||
[]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-white font-renner">
|
||||
@ -254,7 +264,7 @@ export default function Home() {
|
||||
className="relative w-full h-[400px] md:h-[500px] lg:h-[700px] rounded-xl overflow-hidden shadow-premium hover:shadow-premium-hover transition-all duration-500"
|
||||
whileHover={{
|
||||
scale: 1.02,
|
||||
transition: { duration: 0.3 }
|
||||
transition: { duration: 0.3 },
|
||||
}}
|
||||
>
|
||||
<video
|
||||
@ -266,7 +276,7 @@ export default function Home() {
|
||||
playsInline
|
||||
preload="auto"
|
||||
aria-label="Chocolate pouring from metallic spout - Mozimo chocolate tempering process"
|
||||
style={{ display: 'block' }}
|
||||
style={{ display: "block" }}
|
||||
/>
|
||||
{/* Premium overlay for depth */}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent" />
|
||||
@ -286,11 +296,11 @@ export default function Home() {
|
||||
className="text-2xl md:text-3xl lg:text-4xl font-bold text-[#3C2A21] font-renner text-gradient"
|
||||
style={{
|
||||
fontWeight: 200,
|
||||
fontSize: 'clamp(24px, 4vw, 40px)',
|
||||
lineHeight: '100%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'MonetaSans-Regular',
|
||||
color: '#703133'
|
||||
fontSize: "clamp(24px, 4vw, 40px)",
|
||||
lineHeight: "100%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "MonetaSans-Regular",
|
||||
color: "#703133",
|
||||
}}
|
||||
whileHover={{ scale: 1.02 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
@ -301,11 +311,11 @@ export default function Home() {
|
||||
className="text-4xl md:text-5xl lg:text-7xl font-bold text-[#8B4513] font-samantha"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: 'clamp(36px, 6vw, 60px)',
|
||||
lineHeight: '120%',
|
||||
letterSpacing: '0%',
|
||||
fontStyle: 'italic',
|
||||
color: '#703133'
|
||||
fontSize: "clamp(36px, 6vw, 60px)",
|
||||
lineHeight: "120%",
|
||||
letterSpacing: "0%",
|
||||
fontStyle: "italic",
|
||||
color: "#703133",
|
||||
}}
|
||||
whileHover={{ scale: 1.02 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
@ -327,17 +337,21 @@ export default function Home() {
|
||||
className="text-gray-700 leading-relaxed font-renner"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: 'clamp(16px, 2.5vw, 18px)',
|
||||
lineHeight: '160%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
fontSize: "clamp(16px, 2.5vw, 18px)",
|
||||
lineHeight: "160%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.3 }}
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
Crafted to perfection Mozimo delivers a sublime sensory experience with every bite. Experience the epitome of indulgence with our perfectly tempered chocolate: velvety smooth, exquisitely rich, and artfully balanced. Each bite offers a symphony of nuanced cocoa flavors, melting luxuriously!
|
||||
Crafted to perfection Mozimo delivers a sublime sensory experience
|
||||
with every bite. Experience the epitome of indulgence with our
|
||||
perfectly tempered chocolate: velvety smooth, exquisitely rich,
|
||||
and artfully balanced. Each bite offers a symphony of nuanced
|
||||
cocoa flavors, melting luxuriously!
|
||||
</motion.p>
|
||||
</motion.div>
|
||||
</div>
|
||||
@ -351,7 +365,13 @@ export default function Home() {
|
||||
viewport={{ once: true, margin: "-50px" }}
|
||||
variants={fadeInUp}
|
||||
className="text-2xl md:text-3xl lg:text-4xl font-bold text-[#3C2A21] text-center mb-8 md:mb-12 font-renner text-gradient"
|
||||
style={{ fontWeight: 300, fontSize: 'clamp(24px, 4vw, 36px)', lineHeight: '100%', letterSpacing: '0%', fontFamily: 'MonetaSans-Regular' }}
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: "clamp(24px, 4vw, 36px)",
|
||||
lineHeight: "100%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "MonetaSans-Regular",
|
||||
}}
|
||||
whileHover={{ scale: 1.02 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
>
|
||||
@ -366,32 +386,56 @@ export default function Home() {
|
||||
viewport={{ once: true, margin: "-50px" }}
|
||||
>
|
||||
{[
|
||||
{ src: '/collection/cl1.svg', title: 'Bestsellers', alt: 'Bestsellers - Mozimo chocolate bars with geometric patterns' },
|
||||
{ src: '/collection/cl2.svg', title: 'New Arrivals', alt: 'New Arrivals - Stacked chocolate barks with nuts and toppings' },
|
||||
{ src: '/collection/cl3.svg', title: 'Gift Collection', alt: 'Gift Collection - Mozimo packaged chocolate products and gift items' }
|
||||
{
|
||||
src: "/collection/cl1.svg",
|
||||
title: "Bestsellers",
|
||||
alt: "Bestsellers - Mozimo chocolate bars with geometric patterns",
|
||||
},
|
||||
{
|
||||
src: "/collection/cl2.svg",
|
||||
title: "New Arrivals",
|
||||
alt: "New Arrivals - Stacked chocolate barks with nuts and toppings",
|
||||
},
|
||||
{
|
||||
src: "/collection/cl3.svg",
|
||||
title: "Gift Collection",
|
||||
alt: "Gift Collection - Mozimo packaged chocolate products and gift items",
|
||||
},
|
||||
].map((item) => (
|
||||
<motion.div
|
||||
key={item.title}
|
||||
variants={fadeInUp}
|
||||
className="bg-white rounded-2xl shadow-premium overflow-hidden hover:shadow-premium-hover transition-all duration-500 transform hover:-translate-y-2 group"
|
||||
className="group flex flex-col items-center justify-end transition-all duration-500 hover:-translate-y-2"
|
||||
whileHover={{
|
||||
scale: 1.02,
|
||||
transition: { duration: 0.3 }
|
||||
transition: { duration: 0.3 },
|
||||
}}
|
||||
style={{ minHeight: "480px" }}
|
||||
>
|
||||
<div className="h-60 md:h-80 bg-white flex items-center justify-center overflow-hidden">
|
||||
<Image
|
||||
src={item.src}
|
||||
alt={item.alt}
|
||||
width={400}
|
||||
height={320}
|
||||
className="w-full h-full object-cover img-premium group-hover:scale-105 transition-transform duration-500"
|
||||
width={320}
|
||||
height={400}
|
||||
className="object-contain img-premium group-hover:scale-105 transition-transform duration-500"
|
||||
draggable={false}
|
||||
quality={85}
|
||||
style={{ maxHeight: "380px", width: "100%" }}
|
||||
/>
|
||||
</div>
|
||||
<div className="p-4 md:p-6 text-center">
|
||||
<h3 className="text-lg md:text-xl font-semibold text-[#3C2A21] font-renner text-gradient" style={{ fontWeight: 300, fontSize: 'clamp(16px, 2.5vw, 20px)', lineHeight: '100%', letterSpacing: '0%', fontFamily: 'Renner*' }}>{item.title}</h3>
|
||||
|
||||
<div className="p-4 md:p-6 text-center mb-2 w-full">
|
||||
<h3
|
||||
className="text-lg md:text-xl font-semibold text-[#3C2A21] font-renner"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: "clamp(16px, 2.5vw, 20px)",
|
||||
lineHeight: "100%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
{item.title}
|
||||
</h3>
|
||||
</div>
|
||||
</motion.div>
|
||||
))}
|
||||
@ -400,7 +444,10 @@ export default function Home() {
|
||||
|
||||
{/* Product Categories Section */}
|
||||
<Section background="white" id="categories">
|
||||
<div ref={categoriesSectionRef} className="grid grid-cols-1 lg:grid-cols-2 gap-0 items-stretch min-h-[400px] md:min-h-[500px]">
|
||||
<div
|
||||
ref={categoriesSectionRef}
|
||||
className="grid grid-cols-1 lg:grid-cols-2 gap-0 items-stretch min-h-[400px] md:min-h-[500px]"
|
||||
>
|
||||
{/* Left Column - Categories List */}
|
||||
<motion.div
|
||||
initial="initial"
|
||||
@ -420,19 +467,25 @@ export default function Home() {
|
||||
>
|
||||
<button
|
||||
className={`transition-all duration-700 ease-out text-left w-full font-moneta text-[#703133] hover:scale-105 ${
|
||||
idx === currentCategory ? 'text-3xl md:text-5xl lg:text-7xl font-normal' : 'text-2xl md:text-4xl lg:text-5xl font-light opacity-60'
|
||||
idx === currentCategory
|
||||
? "text-3xl md:text-5xl lg:text-7xl font-normal"
|
||||
: "text-2xl md:text-4xl lg:text-5xl font-light opacity-60"
|
||||
}`}
|
||||
style={{
|
||||
fontFamily: 'MonetaSans-Regular',
|
||||
fontFamily: "MonetaSans-Regular",
|
||||
fontWeight: idx === currentCategory ? 400 : 300,
|
||||
fontSize: idx === currentCategory ? 'clamp(32px, 6vw, 72px)' : 'clamp(24px, 4vw, 56px)',
|
||||
lineHeight: '120%',
|
||||
letterSpacing: '0%',
|
||||
color: '#703133',
|
||||
transition: 'all 0.7s cubic-bezier(0.25,0.46,0.45,0.94)'
|
||||
fontSize:
|
||||
idx === currentCategory
|
||||
? "clamp(32px, 6vw, 72px)"
|
||||
: "clamp(24px, 4vw, 56px)",
|
||||
lineHeight: "120%",
|
||||
letterSpacing: "0%",
|
||||
color: "#703133",
|
||||
transition: "all 0.7s cubic-bezier(0.25,0.46,0.45,0.94)",
|
||||
}}
|
||||
tabIndex={-1}
|
||||
onClick={() => setCurrentCategory(idx)}
|
||||
onMouseEnter={() => setCurrentCategory(idx)}
|
||||
>
|
||||
{category}
|
||||
</button>
|
||||
@ -460,7 +513,7 @@ export default function Home() {
|
||||
transition={{ duration: 0.7, ease: [0.25, 0.46, 0.45, 0.94] }}
|
||||
className="w-full h-full object-cover rounded-2xl shadow-premium hover:shadow-premium-hover transition-all duration-500 img-premium"
|
||||
draggable={false}
|
||||
style={{ maxHeight: '600px', maxWidth: '100%' }}
|
||||
style={{ maxHeight: "600px", maxWidth: "100%" }}
|
||||
/>
|
||||
</AnimatePresence>
|
||||
</motion.div>
|
||||
@ -476,7 +529,16 @@ export default function Home() {
|
||||
variants={fadeInUp}
|
||||
className="text-center mb-8 md:mb-12"
|
||||
>
|
||||
<h2 className="text-3xl md:text-4xl lg:text-5xl font-moneta text-[#703133] mb-6 md:mb-8 text-gradient" style={{ fontWeight: 400, fontSize: 'clamp(28px, 5vw, 48px)', lineHeight: '120%', letterSpacing: '0%', fontFamily: 'MonetaSans-Regular' }}>
|
||||
<h2
|
||||
className="text-3xl md:text-4xl lg:text-5xl font-moneta text-[#703133] mb-6 md:mb-8 text-gradient"
|
||||
style={{
|
||||
fontWeight: 400,
|
||||
fontSize: "clamp(28px, 5vw, 48px)",
|
||||
lineHeight: "120%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "MonetaSans-Regular",
|
||||
}}
|
||||
>
|
||||
Follow us on Instagram
|
||||
</h2>
|
||||
</motion.div>
|
||||
@ -511,9 +573,16 @@ export default function Home() {
|
||||
<div className="w-16 h-16 bg-gradient-to-br from-amber-200 to-orange-300 rounded-full mx-auto mb-4 flex items-center justify-center shadow-premium">
|
||||
<span className="text-2xl">🔗</span>
|
||||
</div>
|
||||
<h3 className="text-xl font-semibold text-[#703133] mb-2">Instagram Connection Expired</h3>
|
||||
<p className="text-gray-600 mb-4">Our Instagram connection needs to be refreshed. We're working on getting it back up!</p>
|
||||
<div className="text-sm text-gray-500">In the meantime, follow us @mozimo_chocolate</div>
|
||||
<h3 className="text-xl font-semibold text-[#703133] mb-2">
|
||||
Instagram Connection Expired
|
||||
</h3>
|
||||
<p className="text-gray-600 mb-4">
|
||||
Our Instagram connection needs to be refreshed. We're
|
||||
working on getting it back up!
|
||||
</p>
|
||||
<div className="text-sm text-gray-500">
|
||||
In the meantime, follow us @mozimo_chocolate
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
) : (
|
||||
@ -537,8 +606,12 @@ export default function Home() {
|
||||
<span className="text-4xl">🍫</span>
|
||||
</div>
|
||||
<div className="bg-white rounded-lg p-4 mx-4 shadow-premium">
|
||||
<div className="font-semibold text-[#703133] text-lg">MOZIMO</div>
|
||||
<div className="text-sm text-gray-600">SINGLE ORIGIN HAZELNUT SPREAD 45%</div>
|
||||
<div className="font-semibold text-[#703133] text-lg">
|
||||
MOZIMO
|
||||
</div>
|
||||
<div className="text-sm text-gray-600">
|
||||
SINGLE ORIGIN HAZELNUT SPREAD 45%
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
@ -566,9 +639,18 @@ export default function Home() {
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-xs text-gray-700 space-y-2 leading-relaxed">
|
||||
<p><strong>By RUPALI DEAN</strong></p>
|
||||
<p><strong>MOZIMO'S CHOCOLATE PIE BY PRIYANKA GUPTA</strong></p>
|
||||
<p>isolat[ing] beans to not only single ori- but also to single farms so as to express unique complexity.</p>
|
||||
<p>
|
||||
<strong>By RUPALI DEAN</strong>
|
||||
</p>
|
||||
<p>
|
||||
<strong>
|
||||
MOZIMO'S CHOCOLATE PIE BY PRIYANKA GUPTA
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
isolat[ing] beans to not only single ori- but also to
|
||||
single farms so as to express unique complexity.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
@ -584,12 +666,18 @@ export default function Home() {
|
||||
>
|
||||
<div className="p-4 md:p-6 text-center">
|
||||
<div className="mb-4">
|
||||
<h3 className="text-2xl font-bold text-[#8B4513] mb-2 text-gradient">World Chocolate Day</h3>
|
||||
<p className="text-gray-600">Celebrating the art of chocolate making</p>
|
||||
<h3 className="text-2xl font-bold text-[#8B4513] mb-2 text-gradient">
|
||||
World Chocolate Day
|
||||
</h3>
|
||||
<p className="text-gray-600">
|
||||
Celebrating the art of chocolate making
|
||||
</p>
|
||||
</div>
|
||||
<div className="bg-gradient-to-br from-amber-100 to-orange-100 rounded-lg p-4 shadow-premium">
|
||||
<div className="text-4xl mb-2">🍫</div>
|
||||
<p className="text-sm text-gray-700">Join us in celebrating the world's favorite treat</p>
|
||||
<p className="text-sm text-gray-700">
|
||||
Join us in celebrating the world's favorite treat
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
@ -603,15 +691,26 @@ export default function Home() {
|
||||
initial="initial"
|
||||
whileInView="animate"
|
||||
viewport={{ once: true, margin: "-50px" }}
|
||||
variants={index === 0 ? fadeInLeft : index === 1 ? fadeInUp : fadeInRight}
|
||||
variants={
|
||||
index === 0
|
||||
? fadeInLeft
|
||||
: index === 1
|
||||
? fadeInUp
|
||||
: fadeInRight
|
||||
}
|
||||
className="bg-white rounded-lg shadow-premium overflow-hidden hover:shadow-premium-hover transition-all duration-500 transform hover:-translate-y-2"
|
||||
whileHover={{ scale: 1.02 }}
|
||||
>
|
||||
<a href={post.permalink} target="_blank" rel="noopener noreferrer" className="block">
|
||||
<a
|
||||
href={post.permalink}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="block"
|
||||
>
|
||||
<div className="relative h-64 md:h-96">
|
||||
<Image
|
||||
src={post.mediaUrl}
|
||||
alt={post.caption || 'Instagram post'}
|
||||
alt={post.caption || "Instagram post"}
|
||||
fill
|
||||
className="object-cover img-premium"
|
||||
draggable={false}
|
||||
@ -619,15 +718,19 @@ export default function Home() {
|
||||
onError={(e) => {
|
||||
// Fallback to a placeholder if image fails to load
|
||||
const target = e.target as HTMLImageElement;
|
||||
target.src = '/bst/bs1.svg';
|
||||
target.src = "/bst/bs1.svg";
|
||||
}}
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent" />
|
||||
|
||||
{/* Video indicator */}
|
||||
{post.mediaType === 'VIDEO' && (
|
||||
{post.mediaType === "VIDEO" && (
|
||||
<div className="absolute top-4 right-4 bg-black/50 rounded-full p-2">
|
||||
<svg className="w-4 h-4 text-white" fill="currentColor" viewBox="0 0 20 20">
|
||||
<svg
|
||||
className="w-4 h-4 text-white"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path d="M8 5v10l8-5-8-5z" />
|
||||
</svg>
|
||||
</div>
|
||||
@ -656,32 +759,43 @@ export default function Home() {
|
||||
viewport={{ once: true, margin: "-50px" }}
|
||||
variants={fadeInUp}
|
||||
className="text-3xl md:text-4xl lg:text-5xl font-moneta text-[#703133] mb-6 md:mb-8 text-center text-gradient"
|
||||
style={{ fontWeight: 400, fontSize: 'clamp(28px, 5vw, 48px)', lineHeight: '120%', letterSpacing: '0%', fontFamily: 'MonetaSans-Regular' }}
|
||||
style={{
|
||||
fontWeight: 400,
|
||||
fontSize: "clamp(28px, 5vw, 48px)",
|
||||
lineHeight: "120%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "MonetaSans-Regular",
|
||||
}}
|
||||
whileHover={{ scale: 1.02 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
>
|
||||
In the Spotlight
|
||||
</motion.h2>
|
||||
<div className="w-full flex justify-center items-center overflow-hidden" style={{ minHeight: '8rem md:10rem' }}>
|
||||
<div className="w-full max-w-[600px] overflow-hidden px-4">
|
||||
<div
|
||||
className="w-full flex justify-center items-center overflow-hidden"
|
||||
style={{ minHeight: "8rem md:10rem" }}
|
||||
>
|
||||
<div className="w-full max-w-[700px] overflow-hidden px-4">
|
||||
<motion.div
|
||||
className="flex gap-8"
|
||||
animate={{ x: `-${spotlightIndex * 152}px` }}
|
||||
transition={{ type: 'spring', stiffness: 80, damping: 18 }}
|
||||
transition={{ type: "spring", stiffness: 80, damping: 18 }}
|
||||
>
|
||||
{/* Create 12 tiles (3 sets of 4 logos) */}
|
||||
{Array(12).fill(0).map((_, i) => {
|
||||
{Array(12)
|
||||
.fill(0)
|
||||
.map((_, i) => {
|
||||
const imgIdx = i % partnerImages.length;
|
||||
const img = partnerImages[imgIdx];
|
||||
return (
|
||||
<motion.div
|
||||
key={i}
|
||||
className="w-24 h-24 md:w-32 md:h-32 lg:w-36 lg:h-36 bg-white rounded-full flex items-center justify-center shadow-premium hover:shadow-premium-hover flex-shrink-0 transition-all duration-300"
|
||||
style={{ boxShadow: '0 2px 12px 0 rgba(60,42,33,0.10)' }}
|
||||
style={{ boxShadow: "0 2px 12px 0 rgba(60,42,33,0.10)" }}
|
||||
whileHover={{
|
||||
scale: 1.1,
|
||||
rotate: 5,
|
||||
transition: { duration: 0.3 }
|
||||
transition: { duration: 0.3 },
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
'use client';
|
||||
"use client";
|
||||
|
||||
import { motion } from 'framer-motion';
|
||||
import { motion } from "framer-motion";
|
||||
import Image from "next/image";
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
@ -20,38 +21,31 @@ export default function Footer() {
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
{/* MOZIMO Logo */}
|
||||
<div className="flex items-center space-x-2">
|
||||
<div className="relative">
|
||||
{/* Cocoa pod icon */}
|
||||
<div className="absolute -top-2 -left-1 w-4 h-4 text-[#8B4513]">
|
||||
<svg viewBox="0 0 24 24" fill="currentColor">
|
||||
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
|
||||
</svg>
|
||||
</div>
|
||||
{/* MOZIMO Text */}
|
||||
<div className="text-center">
|
||||
<div className="text-xs text-[#8B4513] font-samantha" style={{ fontFamily: 'Samantha Signature' }}>
|
||||
HAND CRAFTED
|
||||
</div>
|
||||
<div className="text-xl md:text-2xl font-bold text-[#703133] font-moneta" style={{ fontFamily: 'MonetaSans-Regular' }}>
|
||||
MOZIMO
|
||||
</div>
|
||||
<div className="text-xs text-[#8B4513] font-renner">
|
||||
CHOCOLATES
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Image
|
||||
src="/logo/logo.svg"
|
||||
alt="Mozimo Logo"
|
||||
className="object-contain drop-shadow-lg"
|
||||
priority
|
||||
sizes="40px"
|
||||
width={80}
|
||||
height={80}
|
||||
quality={95}
|
||||
placeholder="blur"
|
||||
blurDataURL="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAIAAoDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAhEAACAQMDBQAAAAAAAAAAAAABAgMABAUGIWGRkqGx0f/EABUBAQEAAAAAAAAAAAAAAAAAAAMF/8QAGhEAAgIDAAAAAAAAAAAAAAAAAAECEgMRkf/aAAwDAQACEQMRAD8AltJagyeH0AthI5xdrLcNM91BF5pX2HaH9bcfaSXWGaRmknyJckliyjqTzSlT54b6bk+h0R//2Q=="
|
||||
/>
|
||||
{/* Tagline */}
|
||||
<p className="text-sm leading-relaxed opacity-80 font-renner" style={{
|
||||
<p
|
||||
className="text-sm leading-relaxed opacity-80 font-renner"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: '14px',
|
||||
lineHeight: '160%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
}}>
|
||||
India's Premier European style bean-to-bar chocolate experience.
|
||||
fontSize: "14px",
|
||||
lineHeight: "160%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
India's Premier European style bean-to-bar chocolate
|
||||
experience.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
@ -63,20 +57,28 @@ export default function Footer() {
|
||||
transition={{ duration: 0.6, delay: 0.1 }}
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
<h3 className="font-semibold text-lg font-renner" style={{
|
||||
<h3
|
||||
className="font-semibold text-lg font-renner"
|
||||
style={{
|
||||
fontWeight: 600,
|
||||
fontSize: '18px',
|
||||
lineHeight: '120%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
}}>Get in touch</h3>
|
||||
<div className="space-y-2 text-sm font-renner" style={{
|
||||
fontSize: "18px",
|
||||
lineHeight: "120%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
Get in touch
|
||||
</h3>
|
||||
<div
|
||||
className="space-y-2 text-sm font-renner"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: '14px',
|
||||
lineHeight: '160%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
}}>
|
||||
fontSize: "14px",
|
||||
lineHeight: "160%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
<motion.div
|
||||
className="flex items-center space-x-2"
|
||||
initial={{ opacity: 0, x: -10 }}
|
||||
@ -85,7 +87,11 @@ export default function Footer() {
|
||||
viewport={{ once: true }}
|
||||
whileHover={{ x: 5 }}
|
||||
>
|
||||
<svg className="w-4 h-4 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
|
||||
<svg
|
||||
className="w-4 h-4 flex-shrink-0"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path d="M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z" />
|
||||
</svg>
|
||||
<span className="text-xs md:text-sm">0172-4045414</span>
|
||||
@ -98,10 +104,20 @@ export default function Footer() {
|
||||
viewport={{ once: true }}
|
||||
whileHover={{ x: 5 }}
|
||||
>
|
||||
<svg className="w-4 h-4 mt-0.5 flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
|
||||
<path fillRule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" clipRule="evenodd" />
|
||||
<svg
|
||||
className="w-4 h-4 mt-0.5 flex-shrink-0"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z"
|
||||
clipRule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-xs md:text-sm">SCO 8, Inner Market, 9-D, Sector 9, Chandigarh, 160009</span>
|
||||
<span className="text-xs md:text-sm">
|
||||
SCO 8, Inner Market, 9-D, Sector 9, Chandigarh, 160009
|
||||
</span>
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
@ -114,21 +130,34 @@ export default function Footer() {
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
<h3 className="font-semibold text-lg font-renner" style={{
|
||||
<h3
|
||||
className="font-semibold text-lg font-renner"
|
||||
style={{
|
||||
fontWeight: 600,
|
||||
fontSize: '18px',
|
||||
lineHeight: '120%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
}}>Know more</h3>
|
||||
<ul className="space-y-2 text-sm font-renner" style={{
|
||||
fontSize: "18px",
|
||||
lineHeight: "120%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
Know more
|
||||
</h3>
|
||||
<ul
|
||||
className="space-y-2 text-sm font-renner"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: '14px',
|
||||
lineHeight: '160%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
}}>
|
||||
{['Privacy Policy', 'Refund & Return Policy', 'Terms & Conditions', 'Shipping Policy'].map((link, index) => (
|
||||
fontSize: "14px",
|
||||
lineHeight: "160%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
{[
|
||||
"Privacy Policy",
|
||||
"Refund & Return Policy",
|
||||
"Terms & Conditions",
|
||||
"Shipping Policy",
|
||||
].map((link, index) => (
|
||||
<motion.li
|
||||
key={link}
|
||||
initial={{ opacity: 0, x: -10 }}
|
||||
@ -157,14 +186,17 @@ export default function Footer() {
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
{/* Individual links */}
|
||||
<div className="space-y-2 text-sm font-renner" style={{
|
||||
<div
|
||||
className="space-y-2 text-sm font-renner"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: '14px',
|
||||
lineHeight: '160%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
}}>
|
||||
{['FAQ', 'Locate our store', 'Bulk Ordering'].map((link, index) => (
|
||||
fontSize: "14px",
|
||||
lineHeight: "160%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
{["FAQ", "Locate our store", "Bulk Ordering"].map((link, index) => (
|
||||
<motion.div
|
||||
key={link}
|
||||
initial={{ opacity: 0, x: -10 }}
|
||||
@ -185,13 +217,18 @@ export default function Footer() {
|
||||
|
||||
{/* Find Us On */}
|
||||
<div className="pt-4">
|
||||
<h3 className="font-semibold text-lg font-renner mb-3" style={{
|
||||
<h3
|
||||
className="font-semibold text-lg font-renner mb-3"
|
||||
style={{
|
||||
fontWeight: 600,
|
||||
fontSize: '18px',
|
||||
lineHeight: '120%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
}}>Find Us On</h3>
|
||||
fontSize: "18px",
|
||||
lineHeight: "120%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
>
|
||||
Find Us On
|
||||
</h3>
|
||||
<div className="flex space-x-3 md:space-x-4">
|
||||
{/* Facebook */}
|
||||
<motion.a
|
||||
@ -205,7 +242,11 @@ export default function Footer() {
|
||||
whileTap={{ scale: 0.9 }}
|
||||
aria-label="Facebook"
|
||||
>
|
||||
<svg className="w-5 h-5 md:w-6 md:h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<svg
|
||||
className="w-5 h-5 md:w-6 md:h-6"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path d="M22.675 0h-21.35C.595 0 0 .592 0 1.326v21.348C0 23.408.595 24 1.325 24h11.495v-9.294H9.692v-3.622h3.128V8.413c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.797.143v3.24l-1.918.001c-1.504 0-1.797.715-1.797 1.763v2.313h3.587l-.467 3.622h-3.12V24h6.116C23.406 24 24 23.408 24 22.674V1.326C24 .592 23.406 0 22.675 0" />
|
||||
</svg>
|
||||
</motion.a>
|
||||
@ -221,7 +262,11 @@ export default function Footer() {
|
||||
whileTap={{ scale: 0.9 }}
|
||||
aria-label="Instagram"
|
||||
>
|
||||
<svg className="w-5 h-5 md:w-6 md:h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<svg
|
||||
className="w-5 h-5 md:w-6 md:h-6"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 1.366.062 2.633.334 3.608 1.308.974.974 1.246 2.241 1.308 3.608.058 1.266.069 1.646.069 4.85s-.012 3.584-.07 4.85c-.062 1.366-.334 2.633-1.308 3.608-.974.974-2.241 1.246-3.608 1.308-1.266.058-1.646.069-4.85.069s-3.584-.012-4.85-.07c-1.366-.062-2.633-.334-3.608-1.308-.974-.974-1.246-2.241-1.308-3.608C2.175 15.647 2.163 15.267 2.163 12s.012-3.584.07-4.85c.062-1.366.334-2.633 1.308-3.608C4.515 2.567 5.782 2.295 7.148 2.233 8.414 2.175 8.794 2.163 12 2.163zm0-2.163C8.741 0 8.332.012 7.052.07 5.771.128 4.659.334 3.678 1.315c-.98.98-1.187 2.092-1.245 3.373C2.012 5.668 2 6.077 2 12c0 5.923.012 6.332.07 7.612.058 1.281.265 2.393 1.245 3.373.98.98 2.092 1.187 3.373 1.245C8.332 23.988 8.741 24 12 24s3.668-.012 4.948-.07c1.281-.058 2.393-.265 3.373-1.245.98-.98 1.187-2.092 1.245-3.373.058-1.28.07-1.689.07-7.612 0-5.923-.012-6.332-.07-7.612-.058-1.281-.265-2.393-1.245-3.373-.98-.98-2.092-1.187-3.373-1.245C15.668.012 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zm0 10.162a3.999 3.999 0 1 1 0-7.998 3.999 3.999 0 0 1 0 7.998zm6.406-11.845a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88z" />
|
||||
</svg>
|
||||
</motion.a>
|
||||
@ -237,7 +282,11 @@ export default function Footer() {
|
||||
whileTap={{ scale: 0.9 }}
|
||||
aria-label="YouTube"
|
||||
>
|
||||
<svg className="w-5 h-5 md:w-6 md:h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<svg
|
||||
className="w-5 h-5 md:w-6 md:h-6"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path d="M23.498 6.186a2.994 2.994 0 0 0-2.107-2.117C19.163 3.5 12 3.5 12 3.5s-7.163 0-9.391.569A2.994 2.994 0 0 0 .502 6.186C0 8.413 0 12 0 12s0 3.587.502 5.814a2.994 2.994 0 0 0 2.107 2.117C4.837 20.5 12 20.5 12 20.5s7.163 0 9.391-.569a2.994 2.994 0 0 0 2.107-2.117C24 15.587 24 12 24 12s0-3.587-.502-5.814zM9.545 15.568V8.432l6.545 3.568-6.545 3.568z" />
|
||||
</svg>
|
||||
</motion.a>
|
||||
@ -253,7 +302,11 @@ export default function Footer() {
|
||||
whileTap={{ scale: 0.9 }}
|
||||
aria-label="LinkedIn"
|
||||
>
|
||||
<svg className="w-5 h-5 md:w-6 md:h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<svg
|
||||
className="w-5 h-5 md:w-6 md:h-6"
|
||||
fill="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.761 0 5-2.239 5-5v-14c0-2.761-2.239-5-5-5zm-11 19h-3v-10h3v10zm-1.5-11.268c-.966 0-1.75-.784-1.75-1.75s.784-1.75 1.75-1.75 1.75.784 1.75 1.75-.784 1.75-1.75 1.75zm15.5 11.268h-3v-5.604c0-1.337-.025-3.063-1.868-3.063-1.868 0-2.154 1.459-2.154 2.967v5.7h-3v-10h2.881v1.367h.041c.401-.761 1.381-1.563 2.841-1.563 3.039 0 3.6 2.001 3.6 4.601v5.595z" />
|
||||
</svg>
|
||||
</motion.a>
|
||||
@ -267,17 +320,19 @@ export default function Footer() {
|
||||
className="border-t border-[#e5e5e5] mt-6 md:mt-8 pt-6 md:pt-8 text-center text-sm font-renner relative z-10"
|
||||
style={{
|
||||
fontWeight: 300,
|
||||
fontSize: '14px',
|
||||
lineHeight: '160%',
|
||||
letterSpacing: '0%',
|
||||
fontFamily: 'Renner*'
|
||||
fontSize: "14px",
|
||||
lineHeight: "160%",
|
||||
letterSpacing: "0%",
|
||||
fontFamily: "Renner*",
|
||||
}}
|
||||
initial={{ opacity: 0 }}
|
||||
whileInView={{ opacity: 1 }}
|
||||
transition={{ duration: 0.6, delay: 0.4 }}
|
||||
viewport={{ once: true }}
|
||||
>
|
||||
<p className="text-xs md:text-sm">© 2024 Mozimo. All rights reserved.</p>
|
||||
<p className="text-xs md:text-sm">
|
||||
© 2024 Mozimo. All rights reserved.
|
||||
</p>
|
||||
</motion.div>
|
||||
</footer>
|
||||
);
|
||||
|
||||
@ -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,20 +63,20 @@ 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],
|
||||
}}
|
||||
>
|
||||
<nav
|
||||
className={`glass border border-white/20 shadow-premium w-full h-full flex justify-between items-center rounded-none`}
|
||||
className={`bg-white border border-white/20 shadow-premium w-full h-full flex justify-between items-center rounded-none`}
|
||||
>
|
||||
<div className="flex justify-between items-center w-full px-4">
|
||||
{/* Mobile Hamburger Menu */}
|
||||
@ -124,7 +127,7 @@ export default function Header() {
|
||||
whileHover={{
|
||||
scale: 1.15,
|
||||
rotate: 5,
|
||||
transition: { duration: 0.3 }
|
||||
transition: { duration: 0.3 },
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
@ -152,21 +155,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],
|
||||
}}
|
||||
>
|
||||
<nav
|
||||
className={`glass border border-white/20 shadow-premium w-full h-full flex justify-between items-center ${
|
||||
isScrolled ? 'rounded-none' : 'rounded-[15px]'
|
||||
className={`bg-white border border-white/20 shadow-premium w-full h-full flex justify-between items-center ${
|
||||
isScrolled ? "rounded-none" : "rounded-[15px]"
|
||||
}`}
|
||||
>
|
||||
<div className="flex justify-between items-center w-full px-20">
|
||||
@ -177,10 +180,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 +195,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 }}
|
||||
>
|
||||
@ -220,7 +223,7 @@ export default function Header() {
|
||||
whileHover={{
|
||||
scale: 1.15,
|
||||
rotate: 5,
|
||||
transition: { duration: 0.3 }
|
||||
transition: { duration: 0.3 },
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
@ -244,10 +247,10 @@ export default function Header() {
|
||||
className="flex items-center space-x-1 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 }}
|
||||
aria-label="More options"
|
||||
@ -262,7 +265,12 @@ export default function Header() {
|
||||
whileHover={{ rotate: 180 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" />
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M19 9l-7 7-7-7"
|
||||
/>
|
||||
</motion.svg>
|
||||
</motion.button>
|
||||
|
||||
@ -272,8 +280,18 @@ export default function Header() {
|
||||
whileTap={{ scale: 0.95 }}
|
||||
aria-label="User account"
|
||||
>
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
|
||||
/>
|
||||
</svg>
|
||||
</motion.button>
|
||||
<motion.button
|
||||
@ -282,8 +300,18 @@ export default function Header() {
|
||||
whileTap={{ scale: 0.95 }}
|
||||
aria-label="Search"
|
||||
>
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
||||
/>
|
||||
</svg>
|
||||
</motion.button>
|
||||
<motion.button
|
||||
@ -292,8 +320,18 @@ export default function Header() {
|
||||
whileTap={{ scale: 0.95 }}
|
||||
aria-label="Shopping bag"
|
||||
>
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" />
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
|
||||
/>
|
||||
</svg>
|
||||
</motion.button>
|
||||
</div>
|
||||
@ -326,10 +364,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 +379,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 +394,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 }}
|
||||
@ -376,8 +414,18 @@ export default function Header() {
|
||||
whileTap={{ scale: 0.95 }}
|
||||
aria-label="Search"
|
||||
>
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
||||
/>
|
||||
</svg>
|
||||
</motion.button>
|
||||
<motion.button
|
||||
@ -386,8 +434,18 @@ export default function Header() {
|
||||
whileTap={{ scale: 0.95 }}
|
||||
aria-label="Shopping bag"
|
||||
>
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z" />
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
|
||||
/>
|
||||
</svg>
|
||||
</motion.button>
|
||||
<motion.button
|
||||
@ -396,8 +454,18 @@ export default function Header() {
|
||||
whileTap={{ scale: 0.95 }}
|
||||
aria-label="User account"
|
||||
>
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
|
||||
<svg
|
||||
className="w-5 h-5"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
|
||||
/>
|
||||
</svg>
|
||||
</motion.button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user