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
- 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.
- 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.
- 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.
- 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.
- - 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.
- 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.
- 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!
- 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.
- 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.
${item.unit_price}
+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) returnLoading 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 ( -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'}
- -- ${selectedVariant?.calculated_price?.toFixed(2)} -
+${selectedVariant?.calculated_price?.calculated_amount?.toFixed(2)}
{product.description}
- This chocolate is absolutely divine! The rich flavor and - smooth texture make it a perfect treat for any chocolate - lover. I especially love the 85% cocoa variant for its intense - flavor. + This chocolate is absolutely divine! The rich flavor and smooth texture make it a perfect treat for + any chocolate lover. I especially love the 85% cocoa variant for its intense flavor.
@@ -240,14 +220,12 @@ const ProductDetails: FC- Smooth, creamy milk chocolate truffles -
+Smooth, creamy milk chocolate truffles
$9.99
diff --git a/src/app/(storefront)/products/[handle]/page.tsx b/src/app/(storefront)/products/[handle]/page.tsx index 1c42a9a..78796eb 100644 --- a/src/app/(storefront)/products/[handle]/page.tsx +++ b/src/app/(storefront)/products/[handle]/page.tsx @@ -1,3 +1,4 @@ +import { HttpTypes } from '@medusajs/types'; import { FC } from 'react'; import ProductDetails from './ProductDetails'; @@ -7,24 +8,15 @@ interface ProductPageProps { handle: string; }; } -interface Product { - handle: string; -} - export async function generateStaticParams() { // Fetch the list of products - const products: Product[] = await fetch( - `http://localhost:9000/store/products`, - { - credentials: 'include', - headers: { - 'Content-Type': 'application/json', - 'x-publishable-api-key': - process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || - 'pk_6c28ea35a3372ba52adabcd91a000151e139de469fd340743cc0d20fe3b9df97', - }, + const products: HttpTypes.StoreProduct[] = await fetch(`${process.env.NEXT_PUBLIC_BASE_URL}/store/products`, { + credentials: 'include', + headers: { + 'Content-Type': 'application/json', + 'x-publishable-api-key': process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY as string, }, - ) + }) .then((res) => res.json()) .then((data) => data.products); diff --git a/src/app/(storefront)/products/page.tsx b/src/app/(storefront)/products/page.tsx index 0f3fe34..738812e 100644 --- a/src/app/(storefront)/products/page.tsx +++ b/src/app/(storefront)/products/page.tsx @@ -15,16 +15,15 @@ export default function ProductsPage() { return; } const params = new URLSearchParams({ - fields: `*variants.calculated_price`, - region_id: 'reg_01J9412Z2W1GV785DV2E4X6NSE', + // fields: `*variants.calculated_price`, + fields: `*variants.prices.*`, + region_id: 'reg_01J988N552JQQZAJ7QJ3Y873QD', }); - fetch(`http://localhost:9000/store/products?${params}`, { + fetch(`${process.env.NEXT_PUBLIC_BASE_URL}/store/products?${params}`, { credentials: 'include', headers: { 'Content-Type': 'application/json', - 'x-publishable-api-key': - process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || - 'pk_6c28ea35a3372ba52adabcd91a000151e139de469fd340743cc0d20fe3b9df97', + 'x-publishable-api-key': process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY as string, }, }) .then((res) => res.json()) @@ -43,7 +42,7 @@ export default function ProductsPage() {- Smooth, creamy milk chocolate truffles -
+Smooth, creamy milk chocolate truffles
$9.99
diff --git a/src/components/spotlight.tsx b/src/components/spotlight.tsx index 0c44d54..50a346d 100644 --- a/src/components/spotlight.tsx +++ b/src/components/spotlight.tsx @@ -18,13 +18,7 @@ export function Spotlight() { {logos.map((logo, index) => (