diff --git a/.eslintrc.json b/.eslintrc.json index 74b2c9c..29b9fe9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,13 +1,14 @@ { "extends": [ + "prettier", "next/core-web-vitals", "next/typescript", "eslint:recommended", + "plugin:@typescript-eslint/recommended", "plugin:react/recommended", - "prettier", "plugin:@next/next/recommended" ], - "plugins": ["prettier", "eslint-plugin-import"], + "plugins": ["prettier", "eslint-plugin-import", "@typescript-eslint"], "rules": { "lines-between-class-members": [ "error", @@ -31,7 +32,9 @@ "react/no-unescaped-entities": "error", "react/react-in-jsx-scope": "off", "react/prop-types": [2, { "ignore": ["className", "position"] }], - "import/no-deprecated": "warn" + "import/no-deprecated": "warn", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] }, "env": { "browser": true, diff --git a/.prettierrc b/.prettierrc index 276e2c8..bada979 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "semi": true, "singleQuote": true, - "jsxSingleQuote": true -} \ No newline at end of file + "jsxSingleQuote": true, + "printWidth": 120 +} diff --git a/next.config.mjs b/next.config.mjs index c05102f..8dae4f2 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,6 +7,10 @@ const nextConfig = { protocol: 'https', hostname: '**.amazonaws.com', }, + { + protocol: 'http', + hostname: 'localhost', + }, ], unoptimized: true, }, diff --git a/package.json b/package.json index 0f849e8..46747e3 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@radix-ui/react-label": "^2.1.0", "@radix-ui/react-radio-group": "^1.2.1", "@radix-ui/react-select": "^2.1.2", + "@radix-ui/react-separator": "^1.1.0", "@radix-ui/react-slider": "^1.2.1", "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-tabs": "^1.1.1", @@ -43,6 +44,8 @@ "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", + "@typescript-eslint/eslint-plugin": "^8.8.1", + "@typescript-eslint/parser": "^8.8.1", "eslint": "^8", "eslint-config-next": "14.2.13", "eslint-config-prettier": "^9.1.0", diff --git a/src/app/(static)/about-us/page.tsx b/src/app/(static)/about-us/page.tsx index 70c5def..f229def 100644 --- a/src/app/(static)/about-us/page.tsx +++ b/src/app/(static)/about-us/page.tsx @@ -17,13 +17,10 @@ export default function AboutUsPage() { Welcome to the World of Mozimo Magic
- Indulge in the Luxurious. Immerse in the Captivating. Savor the Fresh. - At Mozimo, we curate a chocolate experience that transports you to a - world of opulence, captivates your senses with mesmerizing aromas and - visuals, and delights your taste buds with the vibrant flavors of - freshly crafted chocolates. Join us on a journey of pure luxury, - captivating moments, and a fresh perspective on the art of - chocolate-making. + Indulge in the Luxurious. Immerse in the Captivating. Savor the Fresh. At Mozimo, we curate a chocolate + experience that transports you to a world of opulence, captivates your senses with mesmerizing aromas and + visuals, and delights your taste buds with the vibrant flavors of freshly crafted chocolates. Join us on a + journey of pure luxury, captivating moments, and a fresh perspective on the art of chocolate-making.
{/* Left Column - Image */}
- +
{/* Right Column - Text with Header */}
-

- Our Founders Priyanka and Amritanshu -

+

Our Founders Priyanka and Amritanshu

- are the proud founders of Mozimo, a bean-to-bar chocolate shop - that celebrates the rich and distinctive flavors of single origin - cocoa beans. Their journey with Mozimo has been a passionate - pursuit of creating exceptional chocolate that tantalizes the - taste buds and tells the unique story of each cocoa bean's + are the proud founders of Mozimo, a bean-to-bar chocolate shop that celebrates the rich and distinctive + flavors of single origin cocoa beans. Their journey with Mozimo has been a passionate pursuit of creating + exceptional chocolate that tantalizes the taste buds and tells the unique story of each cocoa bean's origin.

@@ -66,90 +54,53 @@ export default function AboutUsPage() {
-

- Capturing the essence of -

-

- Italian Chocolate -

+

Capturing the essence of

+

Italian Chocolate

- With over 15 years of hospitality experience, these avid travelers - scoured the globe for the finest cocoa beans and techniques. Deep - in remote cocoa farms, they cultivated relationships with farmers - committed to sustainability. Carefully selecting beans, they honor - each harvest's stories. In their cozy workshop, they roast, - crack, and refine beans with modern techniques, capturing their - essence in every Mozimo chocolate bar. + With over 15 years of hospitality experience, these avid travelers scoured the globe for the finest cocoa + beans and techniques. Deep in remote cocoa farms, they cultivated relationships with farmers committed to + sustainability. Carefully selecting beans, they honor each harvest's stories. In their cozy workshop, + they roast, crack, and refine beans with modern techniques, capturing their essence in every Mozimo + chocolate bar.

- +
{/* Fourth Three-Column Layout (Collections) */}
- +
- +
- Under the mentorship of the master chocolatier Gabriele Rinaudo, - Priyanka and Amritanshu dedicated themselves to mastering the - intricate art of chocolate making. With unwavering determination and a - thirst for knowledge, they immersed themselves in the world of cocoa, - learning the nuances of sourcing the finest ingredients and perfecting - the delicate techniques that transform raw beans into exquisite - chocolate creations. + Under the mentorship of the master chocolatier Gabriele Rinaudo, Priyanka and Amritanshu dedicated themselves + to mastering the intricate art of chocolate making. With unwavering determination and a thirst for knowledge, + they immersed themselves in the world of cocoa, learning the nuances of sourcing the finest ingredients and + perfecting the delicate techniques that transform raw beans into exquisite chocolate creations.
- In addition to their training under Gabriele Rinaudo, they embarked on - a transformative journey to Italy to further enrich their - understanding of the art of chocolate making. This immersive - experience in Italy not only broadened their knowledge but also - deepened their appreciation for the timeless artistry and dedication - that define the world of chocolate making. + In addition to their training under Gabriele Rinaudo, they embarked on a transformative journey to Italy to + further enrich their understanding of the art of chocolate making. This immersive experience in Italy not only + broadened their knowledge but also deepened their appreciation for the timeless artistry and dedication that + define the world of chocolate making.
- +
- Passionate about chocolate as a medium for creativity and exploration, - they view it not just as a confection but as a canvas for artistic - expression. Constantly seeking inspiration, they push the boundaries - of chocolate-making, committed to crafting sensory experiences that - delight the taste buds, eyes, and soul. Proud to be part of the global - craft chocolate revolution, they aim to inspire others while - championing cocoa diversity and sustainability. Back in the workshop, - cacao beans are roasted, cracked, and refined with modern techniques, - crafting each bar of Mozimo chocolate into a masterpiece, capturing - the essence of its origins. + Passionate about chocolate as a medium for creativity and exploration, they view it not just as a confection + but as a canvas for artistic expression. Constantly seeking inspiration, they push the boundaries of + chocolate-making, committed to crafting sensory experiences that delight the taste buds, eyes, and soul. Proud + to be part of the global craft chocolate revolution, they aim to inspire others while championing cocoa + diversity and sustainability. Back in the workshop, cacao beans are roasted, cracked, and refined with modern + techniques, crafting each bar of Mozimo chocolate into a masterpiece, capturing the essence of its origins.
diff --git a/src/app/(static)/festival/page.tsx b/src/app/(static)/festival/page.tsx index bb05501..91254b7 100644 --- a/src/app/(static)/festival/page.tsx +++ b/src/app/(static)/festival/page.tsx @@ -30,56 +30,36 @@ export default function FestivalPage() {
-

- Sweet Moments with Mozimo -

+

Sweet Moments with Mozimo

- “Transforming cacao beans sourced straight from the pod into rich, - velvety smooth chocolate is pure magic. This is why we take great - pride in being called the 'Alchemists of the Chocolate - World'.” + “Transforming cacao beans sourced straight from the pod into rich, velvety smooth chocolate is pure magic. + This is why we take great pride in being called the 'Alchemists of the Chocolate World'.”
{/* Left Column - Image */}
- +
{/* Right Column - Text with Header */}
- +

- Our journey at Mozimo has been a passionate pursuit of creating - exceptional chocolate that tantalizes the taste buds and tells - the unique story of each cocoa bean's origin. We traversed - the globe to search for the finest beans, equipment, and - techniques. We ventured deep into remote cocoa farms to select - the best beans as we cherished the stories and traditions behind - every harvest. + Our journey at Mozimo has been a passionate pursuit of creating exceptional chocolate that tantalizes + the taste buds and tells the unique story of each cocoa bean's origin. We traversed the globe to + search for the finest beans, equipment, and techniques. We ventured deep into remote cocoa farms to + select the best beans as we cherished the stories and traditions behind every harvest.

- +

- Beholding our vision, we started the meticulous process of - crafting rich, exquisite, delectable chocolates, ultimately - perfecting the art. As we continue our journey at Mozimo, we are - proud to be a part of the global craft chocolate revolution - celebrating the diversity of cocoa. + Beholding our vision, we started the meticulous process of crafting rich, exquisite, delectable + chocolates, ultimately perfecting the art. As we continue our journey at Mozimo, we are proud to be a + part of the global craft chocolate revolution celebrating the diversity of cocoa.

@@ -89,62 +69,36 @@ export default function FestivalPage() {
-

- Aritsan Craftmanship -

+

Aritsan Craftmanship

- +

- We are an atelier crafting chocolate from the finest - single-source beans. Our commitment to the art of making - chocolate ensures that each piece epitomizes supreme taste & - quality. + We are an atelier crafting chocolate from the finest single-source beans. Our commitment to the art of + making chocolate ensures that each piece epitomizes supreme taste & quality.

-

- Ethics and Sustainability -

+

Ethics and Sustainability

- +

- We are committed to sustainability and being ethical in all that - we do. From selecting ingredients from remote farmers to our - production practices, we prioritize sustainability and ethical - practices. + We are committed to sustainability and being ethical in all that we do. From selecting ingredients from + remote farmers to our production practices, we prioritize sustainability and ethical practices.

-

- Commitment to Excellence -

+

Commitment to Excellence

- +

- We are inspired to create the best-quality chocolate in our - pursuit of excellence. This involves refining ingredients, - updating processes, and continuously striving to become the best - in the game. + We are inspired to create the best-quality chocolate in our pursuit of excellence. This involves + refining ingredients, updating processes, and continuously striving to become the best in the game.

- +
{/* Fourth Three-Column Layout (Collections) */} @@ -152,78 +106,53 @@ export default function FestivalPage() {
Specimens of{' '} - - Exquisite Craftsmanship - + Exquisite Craftsmanship
- Every creation of Mozimo's chocolate is a specimen of - craftsmanship of the highest quality by the finest chocolatiers. + Every creation of Mozimo's chocolate is a specimen of craftsmanship of the highest quality by the + finest chocolatiers.
- +
- +

- - Immerse yourself in the - {' '} - - Italian Chocolate Experience - + Immerse yourself in the{' '} + Italian Chocolate Experience

- Indulge in the authentic artistry of the Cioccolaterias of Italy - with handcrafted artisanal chocolates by Mozimo. + Indulge in the authentic artistry of the Cioccolaterias of Italy with handcrafted artisanal chocolates by + Mozimo.

- + -

- Experience the art of gifting this Diwali +

Experience the art of gifting this Diwali

+
+ +

+ It’s time to celebrate the joy of togetherness, love, and the luxury of Mozimo’s chocolates. This Diwali, + let’s embrace the sweetness of life with our exquisite single-origin handcrafted chocolates, crafted to + elevate your festive moments.

- It’s time to celebrate the joy of togetherness, love, and the luxury - of Mozimo’s chocolates. This Diwali, let’s embrace the sweetness of - life with our exquisite single-origin handcrafted chocolates, - crafted to elevate your festive moments. -

-
- -

- Let our handcrafted chocolates be a part of your Diwali rituals. - Whether you’re enjoying them during family gatherings, using them as - a centerpiece for your celebrations, or gifting them to friends or - colleagues, they are sure to bring warmth and sweetness to every - moment. + Let our handcrafted chocolates be a part of your Diwali rituals. Whether you’re enjoying them during family + gatherings, using them as a centerpiece for your celebrations, or gifting them to friends or colleagues, + they are sure to bring warmth and sweetness to every moment.

diff --git a/src/app/(static)/page.tsx b/src/app/(static)/page.tsx index bad1bab..4203104 100644 --- a/src/app/(static)/page.tsx +++ b/src/app/(static)/page.tsx @@ -19,26 +19,19 @@ export default function HomePage() {
-

- Brand Story -

+

Brand Story

- +

- 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.

- 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.

- 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.

@@ -68,23 +61,14 @@ export default function HomePage() {
-

- Discover the delicate art of our -

-

- Chocolate Tempering -

+

Discover the delicate art of our

+

Chocolate Tempering

- +

- 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!

diff --git a/src/app/(static)/privacy-policy/page.tsx b/src/app/(static)/privacy-policy/page.tsx index 8c8d92f..b968d25 100644 --- a/src/app/(static)/privacy-policy/page.tsx +++ b/src/app/(static)/privacy-policy/page.tsx @@ -3,190 +3,158 @@ export default function TermsPage() {

Privacy Policy

- Mozimo.in recognizes the importance of maintaining your privacy. We - value your privacy and appreciate your trust in us. This Policy - describes how we treat user information we collect on - http://www.mozimo.in and other offline sources. This Privacy Policy - applies to current and former visitors to our website and to our online - customers. By visiting and/or using our website, you agree to this - Privacy Policy. + Mozimo.in recognizes the importance of maintaining your privacy. We value your privacy and appreciate your trust + in us. This Policy describes how we treat user information we collect on http://www.mozimo.in and other offline + sources. This Privacy Policy applies to current and former visitors to our website and to our online customers. + By visiting and/or using our website, you agree to this Privacy Policy.

Information We Collect

- Contact Information: We may collect - your name, email, mobile number, phone number, street, city, state, - pincode, country, and IP address. + Contact Information: We may collect your name, email, mobile number, phone + number, street, city, state, pincode, country, and IP address.

- Payment and Billing Information: We - may collect your billing name, billing address, and payment method when - you make a purchase. We NEVER collect your credit card number, credit - card expiry date, or other credit card details on our website. Credit - card information will be processed by our secure online payment partner. + Payment and Billing Information: We may collect your billing name, billing + address, and payment method when you make a purchase. We NEVER collect your credit card number, credit card + expiry date, or other credit card details on our website. Credit card information will be processed by our + secure online payment partner.

- Information You Post: We collect - information you post in a public space on our website or on a - third-party social media site related to Mozimo.in. + Information You Post: We collect information you post in a public space on + our website or on a third-party social media site related to Mozimo.in.

- Demographic Information: We may - collect demographic information about you, including products you like, - products you intend to purchase, and products you buy. This may be - collected through surveys or other means. + Demographic Information: We may collect demographic information about you, + including products you like, products you intend to purchase, and products you buy. This may be collected + through surveys or other means.

- Other Information: We may collect - information about your IP address, the browser you're using, the - website you came from, duration of time spent on our website, pages - accessed, or the website you visit when you leave us. We might also - collect information about your mobile device or the version of the - operating system you are using. How We Collect Information + Other Information: We may collect information about your IP address, the + browser you're using, the website you came from, duration of time spent on our website, pages accessed, or + the website you visit when you leave us. We might also collect information about your mobile device or the + version of the operating system you are using. How We Collect Information

- Direct Collection: We collect - information directly from you when you register on our website, make - purchases, post comments or queries, or contact us via phone or email. + Direct Collection: We collect information directly from you when you register + on our website, make purchases, post comments or queries, or contact us via phone or email.

- Passive Collection: We use tracking - tools like Google Analytics, cookies, and web beacons to collect - information about your usage of our website. + Passive Collection: We use tracking tools like Google Analytics, cookies, and + web beacons to collect information about your usage of our website.

- Third-Party Sources: We may receive - information from third parties, such as social media sites if you use - integrated social media features on our website. + Third-Party Sources: We may receive information from third parties, such as + social media sites if you use integrated social media features on our website.

Use of Your Personal Information

- Contact You: We may use your - information to contact you for purchase confirmations or promotional - purposes. + Contact You: We may use your information to contact you for purchase + confirmations or promotional purposes.

- Respond to Requests: We may use your - information to confirm purchases or respond to queries. + Respond to Requests: We may use your information to confirm purchases or + respond to queries.

- Improve Products and Services: We may - use your information to customize your experience and improve our - offerings. + Improve Products and Services: We may use your information to customize your + experience and improve our offerings.

- Site Trends and Customer Interests:{' '} - We may analyze your information to enhance our website and products. + Site Trends and Customer Interests: We may analyze your information to + enhance our website and products.

- Security: We may use your information - to protect our company, customers, or website. + Security: We may use your information to protect our company, customers, or + website.

- Marketing: We may send information - about special promotions, offers, new features, or products. If you make - a purchase, you may be enrolled in our newsletter. + Marketing: We may send information about special promotions, offers, new + features, or products. If you make a purchase, you may be enrolled in our newsletter.

- Transactional Communications: We may - send you emails or SMS regarding your account or purchases. + Transactional Communications: We may send you emails or SMS regarding your + account or purchases.

- Legal Compliance: We use information - as otherwise permitted by law. + Legal Compliance: We use information as otherwise permitted by law.

Cookies and Web Beacons - Like many websites, Mozimo.in uses 'cookies' to store - information about visitors' preferences and pages visited. This - helps us customize your experience based on browser type and other - information. + Like many websites, Mozimo.in uses 'cookies' to store information about visitors' preferences and + pages visited. This helps us customize your experience based on browser type and other information.

-

- Sharing of Information with Third Parties +

Sharing of Information with Third Parties

+ +

+ Service Providers: We share information with third parties who perform + services on our behalf, such as payment processors, delivery services, or transactional message processors. Some + vendors may be located outside of India.

- Service Providers: We share - information with third parties who perform services on our behalf, such - as payment processors, delivery services, or transactional message - processors. Some vendors may be located outside of India. + Legal Compliance: We may share information to comply with legal obligations + or protect ourselves, such as in response to court orders or government requests.

- Legal Compliance: We may share - information to comply with legal obligations or protect ourselves, such - as in response to court orders or government requests. + Business Transfers: If our business is sold or transferred, customer + information may be part of the transaction.

- Business Transfers: If our business - is sold or transferred, customer information may be part of the - transaction. + Other Sharing: We may share information for reasons not described in this + policy, with prior notice to you.

- Other Sharing: We may share - information for reasons not described in this policy, with prior notice - to you. + Email Opt-Out:  You can opt out of receiving our marketing emails by + emailing . Please allow up to ten days for processing. Even if you opt out of + marketing emails, we will continue to send transactional messages related to your purchases.

- Email Opt-Out:  You can opt out - of receiving our marketing emails by emailing{' '} - . Please allow up to ten days for processing. - Even if you opt out of marketing emails, we will continue to send - transactional messages related to your purchases. + Third-Party Sites We do not offer third-party products or services on our + website.

- Third-Party Sites We do not offer - third-party products or services on our website. + Grievance Officer In accordance with the Information Technology Act 2000 and + associated rules, the Grievance Officer's contact details are as follows: Chaman Lal +91 70874 99904

- Grievance Officer In accordance with - the Information Technology Act 2000 and associated rules, the Grievance - Officer's contact details are as follows: Chaman Lal +91 70874 - 99904 + Email: info@mozimo.in  For questions about this Policy or other privacy + concerns, you can also email us at info@mozimo.in.

- Email: info@mozimo.in  For - questions about this Policy or other privacy concerns, you can also - email us at info@mozimo.in. + Updates to This Policy  This Privacy Policy was last updated on + 05.09.24. We may change our privacy practices from time to time and will notify you of any material changes as + required by law. Updated policies will be posted on our website. Please check our site periodically for updates.

- Updates to This Policy  This - Privacy Policy was last updated on 05.09.24. We may change our privacy - practices from time to time and will notify you of any material changes - as required by law. Updated policies will be posted on our website. - Please check our site periodically for updates. -

- -

- Jurisdiction  By visiting our - website, any disputes over privacy are subject to this Policy and the - website's terms of use. Disputes arising under this Policy shall be - governed by the laws of India. + Jurisdiction  By visiting our website, any disputes over privacy are + subject to this Policy and the website's terms of use. Disputes arising under this Policy shall be governed + by the laws of India.

); diff --git a/src/app/(static)/terms/page.tsx b/src/app/(static)/terms/page.tsx index fc1eb38..d647456 100644 --- a/src/app/(static)/terms/page.tsx +++ b/src/app/(static)/terms/page.tsx @@ -3,142 +3,104 @@ export default function TermsPage() {

Terms and Conditions

- PLEASE READ THIS TERMS OF SERVICE AGREEMENT CAREFULLY. BY USING THIS - WEBSITE OR ORDERING PRODUCTS FROM THIS WEBSITE, YOU AGREE TO BE BOUND BY - ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. + PLEASE READ THIS TERMS OF SERVICE AGREEMENT CAREFULLY. BY USING THIS WEBSITE OR ORDERING PRODUCTS FROM THIS + WEBSITE, YOU AGREE TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT.

- This Terms of Service Agreement (the "Agreement") governs your - use of this website, Mozimo.in (the "Website"), and - Mozimo's offer of products for purchase on this Website. This - Agreement includes and incorporates by reference the policies and - guidelines referenced below. Mozimo reserves the right to change or - revise the terms and conditions of this Agreement at any time by posting - any changes or a revised Agreement on this Website. Mozimo will notify - you of changes or revisions by indicating the date on the top of this - Agreement. The revised Agreement will be effective immediately after it - is posted on this Website. Your use of the Website following any changes - or a revised Agreement will constitute your acceptance of those changes - or revisions. Mozimo encourages you to review this Agreement whenever - you visit the Website to ensure you understand the terms and conditions - governing its use. This Agreement does not alter any terms or conditions - of any other written agreement you may have with Mozimo for other - products or services. If you do not agree to this Agreement (including - any referenced policies or guidelines), please immediately discontinue - your use of the Website. To print this Agreement, click the print button - on your browser toolbar. + This Terms of Service Agreement (the "Agreement") governs your use of this website, Mozimo.in (the + "Website"), and Mozimo's offer of products for purchase on this Website. This Agreement includes + and incorporates by reference the policies and guidelines referenced below. Mozimo reserves the right to change + or revise the terms and conditions of this Agreement at any time by posting any changes or a revised Agreement + on this Website. Mozimo will notify you of changes or revisions by indicating the date on the top of this + Agreement. The revised Agreement will be effective immediately after it is posted on this Website. Your use of + the Website following any changes or a revised Agreement will constitute your acceptance of those changes or + revisions. Mozimo encourages you to review this Agreement whenever you visit the Website to ensure you + understand the terms and conditions governing its use. This Agreement does not alter any terms or conditions of + any other written agreement you may have with Mozimo for other products or services. If you do not agree to this + Agreement (including any referenced policies or guidelines), please immediately discontinue your use of the + Website. To print this Agreement, click the print button on your browser toolbar.

- Understanding Expiry and Best Before Dates: Our products are carefully - crafted and may be shipped in conditions to preserve their quality. The - shelf life printed on the packaging refers to the product’s life when - shipped. Upon arrival at our local stores, products may be defrosted, - and the expiry date of defrosted products will be indicated on the label - sticker on each box. Please refer to this expiry date when purchasing - products. + Understanding Expiry and Best Before Dates: Our products are carefully crafted and may be shipped in conditions + to preserve their quality. The shelf life printed on the packaging refers to the product’s life when shipped. + Upon arrival at our local stores, products may be defrosted, and the expiry date of defrosted products will be + indicated on the label sticker on each box. Please refer to this expiry date when purchasing products.

I. PRODUCTS

- Terms of Offer: This Website offers certain products (the - "Products") for sale. By placing an order through this - Website, you agree to the terms set forth in this Agreement. Customer - Solicitation: Unless you inform our representatives otherwise, you agree - to continue receiving emails and call solicitations from Mozimo and its - designated teams. Opt-Out Procedure: To opt out of future solicitations, - you can: Use the opt-out link found in any email solicitation. Send your - email address to info@moizmo.in. Proprietary Rights: Mozimo has - proprietary rights and trade secrets in the distribution of its - Products. You may not copy, reproduce, resell, or redistribute any - Product manufactured or distributed by Mozimo. Mozimo also owns all - trademarks and trade dress, including the layout of this webpage. Goods - and Service Tax (GST): If you purchase Products, you will be responsible - for any applicable taxes. + Terms of Offer: This Website offers certain products (the "Products") for sale. By placing an order + through this Website, you agree to the terms set forth in this Agreement. Customer Solicitation: Unless you + inform our representatives otherwise, you agree to continue receiving emails and call solicitations from Mozimo + and its designated teams. Opt-Out Procedure: To opt out of future solicitations, you can: Use the opt-out link + found in any email solicitation. Send your email address to info@moizmo.in. Proprietary Rights: Mozimo has + proprietary rights and trade secrets in the distribution of its Products. You may not copy, reproduce, resell, + or redistribute any Product manufactured or distributed by Mozimo. Mozimo also owns all trademarks and trade + dress, including the layout of this webpage. Goods and Service Tax (GST): If you purchase Products, you will be + responsible for any applicable taxes.

II. WEBSITE

- Content; Intellectual Property; Third-Party Links: This Website provides - information and marketing materials, some of which may be gathered from - other sources. Content created by Mozimo is protected by intellectual - property laws. Unauthorized use may violate copyright or trademark laws. - You use the content for personal, non-commercial purposes. Links to - third-party websites are provided for convenience only, and Mozimo does - not endorse or assume responsibility for their content. Use of Website: - You will use the Website legally and responsibly, and will not interfere - with others' use, engage in spam, or disrupt other users. License: - You are granted a limited, non-exclusive, non-transferable right to use - the Website content for personal, non-commercial use. Unauthorized - copying or distribution is prohibited. Posting: By posting content on - the Website, you grant Mozimo a perpetual, worldwide, non-exclusive, - royalty-free license to use and distribute that content. Mozimo is not - responsible for user-generated content or interactions between users. - Your Consent: By registering with us, you consent to the collection, - processing, storing, handling, and disclosure of your information as - detailed in our privacy policy, which complies with Indian data - protection laws. Alerts: We may contact you via email or phone to inform - you about new products and offerings. User Communications: - Communications sent to us may be retained to process inquiries and - improve our services. + Content; Intellectual Property; Third-Party Links: This Website provides information and marketing materials, + some of which may be gathered from other sources. Content created by Mozimo is protected by intellectual + property laws. Unauthorized use may violate copyright or trademark laws. You use the content for personal, + non-commercial purposes. Links to third-party websites are provided for convenience only, and Mozimo does not + endorse or assume responsibility for their content. Use of Website: You will use the Website legally and + responsibly, and will not interfere with others' use, engage in spam, or disrupt other users. License: You + are granted a limited, non-exclusive, non-transferable right to use the Website content for personal, + non-commercial use. Unauthorized copying or distribution is prohibited. Posting: By posting content on the + Website, you grant Mozimo a perpetual, worldwide, non-exclusive, royalty-free license to use and distribute that + content. Mozimo is not responsible for user-generated content or interactions between users. Your Consent: By + registering with us, you consent to the collection, processing, storing, handling, and disclosure of your + information as detailed in our privacy policy, which complies with Indian data protection laws. Alerts: We may + contact you via email or phone to inform you about new products and offerings. User Communications: + Communications sent to us may be retained to process inquiries and improve our services.

III. DISCLAIMER OF WARRANTIES

- Your use of the website and products is at your own risk. The website - and products are offered on an "as is" and "as - available" basis. Mozimo disclaims all warranties, express or - implied, including implied warranties of merchantability, fitness for a - particular purpose, and non-infringement. + Your use of the website and products is at your own risk. The website and products are offered on an "as + is" and "as available" basis. Mozimo disclaims all warranties, express or implied, including + implied warranties of merchantability, fitness for a particular purpose, and non-infringement.

IV. LIMITATION OF LIABILITY

- Mozimo’s liability is limited to the amount you paid for products - purchased through the website. Mozimo will not be liable for any direct, - indirect, incidental, special, or consequential damages. + Mozimo’s liability is limited to the amount you paid for products purchased through the website. Mozimo will not + be liable for any direct, indirect, incidental, special, or consequential damages.

V. INDEMNIFICATION

- You agree to indemnify and hold harmless Mozimo, its contractors, - agents, and affiliates from any claims, damages, costs, or expenses - arising out of your breach of this Agreement or use of the Website or - Products. Mozimo may participate in the defense of any third-party - claims at its own expense. + You agree to indemnify and hold harmless Mozimo, its contractors, agents, and affiliates from any claims, + damages, costs, or expenses arising out of your breach of this Agreement or use of the Website or Products. + Mozimo may participate in the defense of any third-party claims at its own expense.

VI. PRIVACY

- Mozimo is committed to protecting user privacy. Refer to our privacy - policy for details on how we handle your data. + Mozimo is committed to protecting user privacy. Refer to our privacy policy for details on how we handle your + data.

VII. AGREEMENT TO BE BOUND

- By using this Website or ordering Products, you acknowledge that you - have read and agree to this Agreement and all terms and conditions on - this Website. + By using this Website or ordering Products, you acknowledge that you have read and agree to this Agreement and + all terms and conditions on this Website.

VIII. GENERAL

- Force Majeure: Mozimo will not be liable for any delays or interruptions - caused by events beyond its control, such as natural disasters or acts - of war. + Force Majeure: Mozimo will not be liable for any delays or interruptions caused by events beyond its control, + such as natural disasters or acts of war.

- Cessation of Operation: Mozimo may cease operation of the Website and - distribution of Products at its discretion. Entire Agreement: This - Agreement constitutes the entire agreement between you and Mozimo and - supersedes any prior agreements. Effect of Waiver: Failure to enforce - any provision of this Agreement does not constitute a waiver. If any - provision is found invalid, the remaining provisions will remain in - effect. Governing Law; Jurisdiction: This Agreement is governed by the - laws of Maharashtra, India. Disputes will be resolved in courts located - in Maharashtra. Statute of Limitation: Claims must be filed within one - year of the cause of action or be barred. Waiver of Class Action Rights: - You waive any right to join claims with others in a class action. Claims - must be asserted individually. Termination: Mozimo may terminate your - access to the Website if you breach this Agreement, and may cancel any - outstanding orders. Domestic Use: Mozimo makes no representation that - the Website or Products are appropriate for use outside India. Users - outside India are responsible for compliance with local laws. - Assignment: You may not assign your rights under this Agreement. Mozimo - may assign its rights and obligations without notice. By using this - website or ordering products from this website, you agree to be bound by - all of the terms and conditions of this agreement. + Cessation of Operation: Mozimo may cease operation of the Website and distribution of Products at its + discretion. Entire Agreement: This Agreement constitutes the entire agreement between you and Mozimo and + supersedes any prior agreements. Effect of Waiver: Failure to enforce any provision of this Agreement does not + constitute a waiver. If any provision is found invalid, the remaining provisions will remain in effect. + Governing Law; Jurisdiction: This Agreement is governed by the laws of Maharashtra, India. Disputes will be + resolved in courts located in Maharashtra. Statute of Limitation: Claims must be filed within one year of the + cause of action or be barred. Waiver of Class Action Rights: You waive any right to join claims with others in a + class action. Claims must be asserted individually. Termination: Mozimo may terminate your access to the Website + if you breach this Agreement, and may cancel any outstanding orders. Domestic Use: Mozimo makes no + representation that the Website or Products are appropriate for use outside India. Users outside India are + responsible for compliance with local laws. Assignment: You may not assign your rights under this Agreement. + Mozimo may assign its rights and obligations without notice. By using this website or ordering products from + this website, you agree to be bound by all of the terms and conditions of this agreement.

); diff --git a/src/app/(storefront)/cart/page.tsx b/src/app/(storefront)/cart/page.tsx new file mode 100644 index 0000000..56ae175 --- /dev/null +++ b/src/app/(storefront)/cart/page.tsx @@ -0,0 +1,80 @@ +'use client'; + +import { Minus, Plus, Trash2 } from 'lucide-react'; + +import { Button } from '@/components/ui/button'; +import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'; +import { Separator } from '@/components/ui/separator'; +import { useCart } from '@/providers/cart'; + +export default function MyCartComponent() { + const { cart, updateQuantity, removeItem } = useCart(); + + return ( +
+

My Cart

+
+
+ {cart?.items?.map((item) => ( + + +
+ {/* {item.name} */} +
+

+ {item.product_title} ({item.variant_title}) +

+

${item.unit_price}

+
+
+ + {item.quantity} + +
+ +
+
+
+ ))} +
+
+ + + Order Summary + + +
+
+ Subtotal + ${cart?.subtotal} +
+
+ Tax + ${cart?.tax_total} +
+
+
+ + + Total + ${cart?.total} + +
+ +
+
+
+ ); +} diff --git a/src/app/(storefront)/cart/page.tsx.exclude b/src/app/(storefront)/cart/page.tsx.exclude deleted file mode 100644 index a3d4985..0000000 --- a/src/app/(storefront)/cart/page.tsx.exclude +++ /dev/null @@ -1,87 +0,0 @@ -'use client'; - -import { useCart, useUpdateLineItem, useDeleteLineItem } from 'medusa-react'; -import { useRouter } from 'next/navigation'; - -export default function CartPage() { - const { cart } = useCart(); - const router = useRouter(); - - // Ensure cart is loaded - if (!cart?.id) { - return

Loading cart...

; - } - - // Hook for updating a cart line item - const { - mutate: updateLineItem, - isLoading: isUpdating, - error: updateError, - } = useUpdateLineItem(cart.id); - // Hook for deleting a cart line item - const { - mutate: deleteLineItem, - isLoading: isDeleting, - error: deleteError, - } = useDeleteLineItem(cart?.id); - - if (!cart) return

Loading cart...

; - - const handleUpdateItem = (lineId: string, quantity: number) => { - updateLineItem( - { lineId, quantity }, - { - onSuccess: () => { - // Optionally refetch cart or show a success message - }, - }, - ); - }; - - const handleRemoveItem = (lineId: string) => { - deleteLineItem( - { lineId }, - { - onSuccess: () => { - // Optionally refetch cart or show a success message - }, - }, - ); - }; - - const proceedToCheckout = () => { - router.push('/checkout'); - }; - - return ( -
-

Your Cart

- {cart.items?.length ? ( - cart.items.map((item) => ( -
-

{item.title}

-

Quantity: {item.quantity}

- - - {updateError &&

Error updating item: {updateError.message}

} - {deleteError &&

Error removing item: {deleteError.message}

} -
- )) - ) : ( -

Your cart is empty.

- )} -

Total: {cart.total ? `$${(cart.total / 100).toFixed(2)}` : '$0.00'}

- -
- ); -} diff --git a/src/app/(storefront)/layout.tsx b/src/app/(storefront)/layout.tsx index 35b5de1..dff5b4e 100644 --- a/src/app/(storefront)/layout.tsx +++ b/src/app/(storefront)/layout.tsx @@ -2,9 +2,11 @@ import '../globals.css'; import { ReactNode } from 'react'; -import { Providers } from '@/app/providers'; import { Footer } from '@/components/footer'; import { Navbar } from '@/components/navbar'; +import { CartProvider } from '@/providers/cart'; +import { CustomerProvider } from '@/providers/customer'; +import { RegionProvider } from '@/providers/region'; interface RootLayoutProps { children: ReactNode; @@ -15,7 +17,11 @@ export default function RootLayout({ children }: RootLayoutProps) { - {children} + + + {children} + +