@pradip1995/create-storefront 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-storefront.js +239 -0
- package/lib/kit-next-config.js +84 -0
- package/package.json +32 -0
- package/templates/storefront/.eslintrc.json +3 -0
- package/templates/storefront/README.md +35 -0
- package/templates/storefront/check-env-variables.js +51 -0
- package/templates/storefront/kit-next-config.js +71 -0
- package/templates/storefront/next-env.d.ts +5 -0
- package/templates/storefront/next.config.js +25 -0
- package/templates/storefront/package.json +56 -0
- package/templates/storefront/postcss.config.js +6 -0
- package/templates/storefront/public/favicon.png +0 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/checkout/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/checkout/payment/page.tsx +47 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/layout.tsx +31 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/not-found.tsx +19 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsx +31 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/loading.tsx +9 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsx +35 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/exchange/[id]/page.tsx +47 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/page.tsx +28 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/return/[id]/page.tsx +66 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/page.tsx +22 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/payment-methods/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/profile/page.tsx +43 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@login/default.tsx +11 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@login/page.tsx +18 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/guest-orders/page.tsx +13 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/layout.tsx +22 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/loading.tsx +9 -0
- package/templates/storefront/src/app/[countryCode]/(main)/cart/loading.tsx +5 -0
- package/templates/storefront/src/app/[countryCode]/(main)/cart/not-found.tsx +21 -0
- package/templates/storefront/src/app/[countryCode]/(main)/cart/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(main)/categories/[...category]/page.tsx +11 -0
- package/templates/storefront/src/app/[countryCode]/(main)/collections/[handle]/page.tsx +11 -0
- package/templates/storefront/src/app/[countryCode]/(main)/contact/page.tsx +21 -0
- package/templates/storefront/src/app/[countryCode]/(main)/guest-orders/page.tsx +12 -0
- package/templates/storefront/src/app/[countryCode]/(main)/help/page.tsx +28 -0
- package/templates/storefront/src/app/[countryCode]/(main)/layout.tsx +21 -0
- package/templates/storefront/src/app/[countryCode]/(main)/not-found.tsx +20 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/confirmed/loading.tsx +5 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/confirmed/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/transfer/[token]/accept/page.tsx +41 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/transfer/[token]/decline/page.tsx +41 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/transfer/[token]/page.tsx +38 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/exchange/[id]/page.tsx +47 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/return/[id]/page.tsx +61 -0
- package/templates/storefront/src/app/[countryCode]/(main)/orders/[id]/page.tsx +33 -0
- package/templates/storefront/src/app/[countryCode]/(main)/page.tsx +24 -0
- package/templates/storefront/src/app/[countryCode]/(main)/privacy-policy/page.tsx +173 -0
- package/templates/storefront/src/app/[countryCode]/(main)/products/[handle]/page.tsx +193 -0
- package/templates/storefront/src/app/[countryCode]/(main)/reset-password/page.tsx +192 -0
- package/templates/storefront/src/app/[countryCode]/(main)/store/page.tsx +72 -0
- package/templates/storefront/src/app/[countryCode]/(main)/terms-of-use/page.tsx +179 -0
- package/templates/storefront/src/app/[countryCode]/(main)/wishlist/page.tsx +19 -0
- package/templates/storefront/src/app/api/meta/event/route.ts +63 -0
- package/templates/storefront/src/app/auth/customer/google/callback/page.tsx +126 -0
- package/templates/storefront/src/app/layout.tsx +104 -0
- package/templates/storefront/src/app/not-found.tsx +30 -0
- package/templates/storefront/src/app/opengraph-image.jpg +0 -0
- package/templates/storefront/src/app/robots.ts +15 -0
- package/templates/storefront/src/app/sitemap.ts +65 -0
- package/templates/storefront/src/app/twitter-image.jpg +0 -0
- package/templates/storefront/src/modules/account/components/account-deletion/index.tsx +160 -0
- package/templates/storefront/src/modules/account/components/account-info/index.tsx +145 -0
- package/templates/storefront/src/modules/account/components/account-nav/icons.tsx +43 -0
- package/templates/storefront/src/modules/account/components/account-nav/index.tsx +318 -0
- package/templates/storefront/src/modules/account/components/account-nav/logout-modal.tsx +92 -0
- package/templates/storefront/src/modules/account/components/account-nav/payment-methods-icon.tsx +9 -0
- package/templates/storefront/src/modules/account/components/address-book/index.tsx +47 -0
- package/templates/storefront/src/modules/account/components/address-card/add-address.tsx +377 -0
- package/templates/storefront/src/modules/account/components/address-card/edit-address-modal.tsx +468 -0
- package/templates/storefront/src/modules/account/components/deletion-pending-modal/index.tsx +213 -0
- package/templates/storefront/src/modules/account/components/forgot-password/index.tsx +1 -0
- package/templates/storefront/src/modules/account/components/login/index.tsx +1 -0
- package/templates/storefront/src/modules/account/components/order-card/index.tsx +221 -0
- package/templates/storefront/src/modules/account/components/order-overview/index.tsx +159 -0
- package/templates/storefront/src/modules/account/components/overview/index.tsx +189 -0
- package/templates/storefront/src/modules/account/components/profile-billing-address/index.tsx +447 -0
- package/templates/storefront/src/modules/account/components/profile-email/index.tsx +75 -0
- package/templates/storefront/src/modules/account/components/profile-form/index.tsx +416 -0
- package/templates/storefront/src/modules/account/components/profile-name/index.tsx +76 -0
- package/templates/storefront/src/modules/account/components/profile-password/index.tsx +70 -0
- package/templates/storefront/src/modules/account/components/profile-phone/index.tsx +185 -0
- package/templates/storefront/src/modules/account/components/register/index.tsx +1 -0
- package/templates/storefront/src/modules/account/components/return-item-selector/index.tsx +187 -0
- package/templates/storefront/src/modules/account/components/return-shipping-selector/index.tsx +118 -0
- package/templates/storefront/src/modules/account/components/transfer-request-form/index.tsx +81 -0
- package/templates/storefront/src/modules/account/templates/account-layout.tsx +38 -0
- package/templates/storefront/src/modules/account/templates/exchange-request-template.tsx +389 -0
- package/templates/storefront/src/modules/account/templates/guest-orders-template.tsx +123 -0
- package/templates/storefront/src/modules/account/templates/login-template.tsx +44 -0
- package/templates/storefront/src/modules/account/templates/payment-methods-template.tsx +478 -0
- package/templates/storefront/src/modules/account/templates/return-request-template.tsx +300 -0
- package/templates/storefront/src/modules/cart/components/abandoned-carts/ScrollToPendingOrdersButton.tsx +21 -0
- package/templates/storefront/src/modules/cart/components/abandoned-carts/index.tsx +335 -0
- package/templates/storefront/src/modules/cart/components/applied-promotions/index.tsx +121 -0
- package/templates/storefront/src/modules/cart/components/cart-delivery-selection/index.tsx +203 -0
- package/templates/storefront/src/modules/cart/components/cart-item-card/index.tsx +476 -0
- package/templates/storefront/src/modules/cart/components/cart-item-select/index.tsx +73 -0
- package/templates/storefront/src/modules/cart/components/cart-view-tracker/index.tsx +44 -0
- package/templates/storefront/src/modules/cart/components/delivery-information/index.tsx +89 -0
- package/templates/storefront/src/modules/cart/components/empty-cart-message/index.tsx +38 -0
- package/templates/storefront/src/modules/cart/components/item/index.tsx +150 -0
- package/templates/storefront/src/modules/cart/components/pincode-checker/index.tsx +174 -0
- package/templates/storefront/src/modules/cart/components/sign-in-prompt/index.tsx +26 -0
- package/templates/storefront/src/modules/cart/components/you-may-also-like/index.tsx +137 -0
- package/templates/storefront/src/modules/cart/templates/index.tsx +88 -0
- package/templates/storefront/src/modules/cart/templates/items.tsx +49 -0
- package/templates/storefront/src/modules/cart/templates/preview.tsx +51 -0
- package/templates/storefront/src/modules/cart/templates/summary.tsx +29 -0
- package/templates/storefront/src/modules/checkout/components/add-address-modal/index.tsx +390 -0
- package/templates/storefront/src/modules/checkout/components/address-card/index.tsx +135 -0
- package/templates/storefront/src/modules/checkout/components/address-select/index.tsx +116 -0
- package/templates/storefront/src/modules/checkout/components/addresses/index.tsx +605 -0
- package/templates/storefront/src/modules/checkout/components/back-link/index.tsx +32 -0
- package/templates/storefront/src/modules/checkout/components/billing_address/index.tsx +301 -0
- package/templates/storefront/src/modules/checkout/components/checkout-begin-tracker/index.tsx +45 -0
- package/templates/storefront/src/modules/checkout/components/checkout-leave-guard/index.tsx +109 -0
- package/templates/storefront/src/modules/checkout/components/checkout-shipping-tracker/index.tsx +45 -0
- package/templates/storefront/src/modules/checkout/components/country-select/index.tsx +50 -0
- package/templates/storefront/src/modules/checkout/components/discount-code/index.tsx +220 -0
- package/templates/storefront/src/modules/checkout/components/error-message/index.tsx +13 -0
- package/templates/storefront/src/modules/checkout/components/payment/index.tsx +572 -0
- package/templates/storefront/src/modules/checkout/components/payment-button/index.tsx +257 -0
- package/templates/storefront/src/modules/checkout/components/payment-button/razorpay-payment-button.tsx +136 -0
- package/templates/storefront/src/modules/checkout/components/payment-container/index.tsx +129 -0
- package/templates/storefront/src/modules/checkout/components/payment-test/index.tsx +12 -0
- package/templates/storefront/src/modules/checkout/components/payment-wrapper/index.tsx +50 -0
- package/templates/storefront/src/modules/checkout/components/payment-wrapper/stripe-wrapper.tsx +54 -0
- package/templates/storefront/src/modules/checkout/components/processing-overlay/index.tsx +83 -0
- package/templates/storefront/src/modules/checkout/components/review/index.tsx +60 -0
- package/templates/storefront/src/modules/checkout/components/select-address-modal/index.tsx +103 -0
- package/templates/storefront/src/modules/checkout/components/shipping/index.tsx +533 -0
- package/templates/storefront/src/modules/checkout/components/shipping-address/index.tsx +521 -0
- package/templates/storefront/src/modules/checkout/components/submit-button/index.tsx +32 -0
- package/templates/storefront/src/modules/checkout/templates/checkout-form/index.tsx +38 -0
- package/templates/storefront/src/modules/checkout/templates/checkout-summary/index.tsx +274 -0
- package/templates/storefront/src/modules/common/components/breadcrumb/index.tsx +43 -0
- package/templates/storefront/src/modules/common/components/cart-totals/index.tsx +473 -0
- package/templates/storefront/src/modules/common/components/checkbox/index.tsx +98 -0
- package/templates/storefront/src/modules/common/components/delete-button/index.tsx +156 -0
- package/templates/storefront/src/modules/common/components/divider/index.tsx +9 -0
- package/templates/storefront/src/modules/common/components/filter-checkbox-group/index.tsx +134 -0
- package/templates/storefront/src/modules/common/components/filter-radio-group/index.tsx +62 -0
- package/templates/storefront/src/modules/common/components/input/index.tsx +79 -0
- package/templates/storefront/src/modules/common/components/interactive-link/index.tsx +33 -0
- package/templates/storefront/src/modules/common/components/line-item-options/index.tsx +26 -0
- package/templates/storefront/src/modules/common/components/line-item-price/index.tsx +64 -0
- package/templates/storefront/src/modules/common/components/line-item-unit-price/index.tsx +61 -0
- package/templates/storefront/src/modules/common/components/localized-client-link/index.tsx +32 -0
- package/templates/storefront/src/modules/common/components/login-popup/index.tsx +78 -0
- package/templates/storefront/src/modules/common/components/modal/index.tsx +123 -0
- package/templates/storefront/src/modules/common/components/native-select/index.tsx +75 -0
- package/templates/storefront/src/modules/common/components/obfuscated-email/index.tsx +30 -0
- package/templates/storefront/src/modules/common/components/product/product-rating/index.tsx +172 -0
- package/templates/storefront/src/modules/common/components/product/review-modal/index.tsx +333 -0
- package/templates/storefront/src/modules/common/components/product/share-button/index.tsx +227 -0
- package/templates/storefront/src/modules/common/components/product/wishlist-icon/index.tsx +46 -0
- package/templates/storefront/src/modules/common/components/radio/index.tsx +27 -0
- package/templates/storefront/src/modules/common/components/select/index.tsx +164 -0
- package/templates/storefront/src/modules/common/components/side-panel/index.tsx +65 -0
- package/templates/storefront/src/modules/common/icons/arrow-left.tsx +36 -0
- package/templates/storefront/src/modules/common/icons/back.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/bancontact.tsx +26 -0
- package/templates/storefront/src/modules/common/icons/chevron-down.tsx +30 -0
- package/templates/storefront/src/modules/common/icons/delivered.tsx +29 -0
- package/templates/storefront/src/modules/common/icons/envelope.tsx +27 -0
- package/templates/storefront/src/modules/common/icons/eye-off.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/eye.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/fast-delivery.tsx +65 -0
- package/templates/storefront/src/modules/common/icons/ideal.tsx +26 -0
- package/templates/storefront/src/modules/common/icons/lock.tsx +31 -0
- package/templates/storefront/src/modules/common/icons/map-pin.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/medusa.tsx +27 -0
- package/templates/storefront/src/modules/common/icons/menu.tsx +45 -0
- package/templates/storefront/src/modules/common/icons/nextjs.tsx +27 -0
- package/templates/storefront/src/modules/common/icons/package.tsx +44 -0
- package/templates/storefront/src/modules/common/icons/paypal.tsx +30 -0
- package/templates/storefront/src/modules/common/icons/phone.tsx +30 -0
- package/templates/storefront/src/modules/common/icons/placeholder-image.tsx +44 -0
- package/templates/storefront/src/modules/common/icons/refresh.tsx +51 -0
- package/templates/storefront/src/modules/common/icons/spinner.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/trash.tsx +51 -0
- package/templates/storefront/src/modules/common/icons/user.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/x.tsx +37 -0
- package/templates/storefront/src/modules/contact/templates/index.tsx +272 -0
- package/templates/storefront/src/modules/help/templates/index.tsx +629 -0
- package/templates/storefront/src/modules/home/components/dynamic-banner/index.tsx +190 -0
- package/templates/storefront/src/modules/home/components/featured-products/index.tsx +16 -0
- package/templates/storefront/src/modules/home/components/featured-products/product-rail/index.tsx +51 -0
- package/templates/storefront/src/modules/home/components/features/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/hero/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/loved-by-moms/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/new-arrivals/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/shop-by-age/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/shop-by-category/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/testimonials/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/why-choose-us/dynamic-features.tsx +93 -0
- package/templates/storefront/src/modules/home/components/why-choose-us/index.tsx +1 -0
- package/templates/storefront/src/modules/layout/components/account-dropdown/index.tsx +56 -0
- package/templates/storefront/src/modules/layout/components/cart-button/index.tsx +8 -0
- package/templates/storefront/src/modules/layout/components/cart-dropdown/index.tsx +424 -0
- package/templates/storefront/src/modules/layout/components/cart-mismatch-banner/index.tsx +57 -0
- package/templates/storefront/src/modules/layout/components/cookie-consent/index.tsx +116 -0
- package/templates/storefront/src/modules/layout/components/country-select/index.tsx +135 -0
- package/templates/storefront/src/modules/layout/components/desktop-search/index.tsx +148 -0
- package/templates/storefront/src/modules/layout/components/dynamic-logo/index.tsx +27 -0
- package/templates/storefront/src/modules/layout/components/footer-categories/index.tsx +34 -0
- package/templates/storefront/src/modules/layout/components/footer-contact/index.tsx +87 -0
- package/templates/storefront/src/modules/layout/components/footer-description/index.tsx +12 -0
- package/templates/storefront/src/modules/layout/components/footer-logo/index.tsx +22 -0
- package/templates/storefront/src/modules/layout/components/footer-newsletter/index.tsx +100 -0
- package/templates/storefront/src/modules/layout/components/language-select/index.tsx +192 -0
- package/templates/storefront/src/modules/layout/components/medusa-cta/index.tsx +21 -0
- package/templates/storefront/src/modules/layout/components/mobile-menu/index.tsx +296 -0
- package/templates/storefront/src/modules/layout/components/nav-links/index.tsx +66 -0
- package/templates/storefront/src/modules/layout/components/nav-wrapper/index.tsx +14 -0
- package/templates/storefront/src/modules/layout/components/promo-bar/index.tsx +7 -0
- package/templates/storefront/src/modules/layout/components/promo-bar/promo-bar-content.tsx +174 -0
- package/templates/storefront/src/modules/layout/components/push-notification-manager/index.tsx +191 -0
- package/templates/storefront/src/modules/layout/components/search-panel/index.tsx +136 -0
- package/templates/storefront/src/modules/layout/components/side-menu/index.tsx +144 -0
- package/templates/storefront/src/modules/layout/components/verification-banner/index.tsx +217 -0
- package/templates/storefront/src/modules/layout/components/wishlist-counter/index.tsx +17 -0
- package/templates/storefront/src/modules/layout/templates/footer/index.tsx +7 -0
- package/templates/storefront/src/modules/layout/templates/nav/index.tsx +14 -0
- package/templates/storefront/src/modules/order/components/cancel-order-modal/index.tsx +168 -0
- package/templates/storefront/src/modules/order/components/help/index.tsx +25 -0
- package/templates/storefront/src/modules/order/components/item/index.tsx +62 -0
- package/templates/storefront/src/modules/order/components/items/index.tsx +44 -0
- package/templates/storefront/src/modules/order/components/onboarding-cta/index.tsx +28 -0
- package/templates/storefront/src/modules/order/components/order-confirmation-back-handler/index.tsx +28 -0
- package/templates/storefront/src/modules/order/components/order-details/index.tsx +63 -0
- package/templates/storefront/src/modules/order/components/order-purchase-tracker/index.tsx +48 -0
- package/templates/storefront/src/modules/order/components/order-redesign/index.tsx +887 -0
- package/templates/storefront/src/modules/order/components/order-summary/index.tsx +60 -0
- package/templates/storefront/src/modules/order/components/payment-details/index.tsx +63 -0
- package/templates/storefront/src/modules/order/components/shipping-details/index.tsx +73 -0
- package/templates/storefront/src/modules/order/components/transfer-actions/index.tsx +81 -0
- package/templates/storefront/src/modules/order/components/transfer-image/index.tsx +275 -0
- package/templates/storefront/src/modules/order/templates/order-completed-template.tsx +233 -0
- package/templates/storefront/src/modules/order/templates/order-details-template.tsx +128 -0
- package/templates/storefront/src/modules/products/components/image-gallery/index.tsx +297 -0
- package/templates/storefront/src/modules/products/components/product-actions/index.tsx +1400 -0
- package/templates/storefront/src/modules/products/components/product-actions/mobile-actions.tsx +217 -0
- package/templates/storefront/src/modules/products/components/product-actions/option-select.tsx +62 -0
- package/templates/storefront/src/modules/products/components/product-onboarding-cta/index.tsx +30 -0
- package/templates/storefront/src/modules/products/components/product-preview/index.tsx +5 -0
- package/templates/storefront/src/modules/products/components/product-preview/price.tsx +29 -0
- package/templates/storefront/src/modules/products/components/product-price/index.tsx +58 -0
- package/templates/storefront/src/modules/products/components/product-rating/index.tsx +1 -0
- package/templates/storefront/src/modules/products/components/product-tabs/accordion.tsx +100 -0
- package/templates/storefront/src/modules/products/components/product-tabs/index.tsx +127 -0
- package/templates/storefront/src/modules/products/components/product-tabs/ratings-tab.tsx +598 -0
- package/templates/storefront/src/modules/products/components/product-view-tracker/index.tsx +53 -0
- package/templates/storefront/src/modules/products/components/related-products/index.tsx +152 -0
- package/templates/storefront/src/modules/products/components/review-modal/index.tsx +1 -0
- package/templates/storefront/src/modules/products/components/share-button/index.tsx +1 -0
- package/templates/storefront/src/modules/products/components/thumbnail/index.tsx +91 -0
- package/templates/storefront/src/modules/products/components/wishlist-icon/index.tsx +1 -0
- package/templates/storefront/src/modules/products/context/product-context.tsx +52 -0
- package/templates/storefront/src/modules/products/templates/index.tsx +26 -0
- package/templates/storefront/src/modules/products/templates/product-actions-wrapper/index.tsx +1 -0
- package/templates/storefront/src/modules/products/templates/product-info/index.tsx +2 -0
- package/templates/storefront/src/modules/shipping/components/free-shipping-price-nudge/index.tsx +283 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-button/index.tsx +5 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-card-details/index.tsx +10 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-cart-item/index.tsx +35 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-cart-totals/index.tsx +30 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-code-form/index.tsx +13 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-line-item/index.tsx +35 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-confirmed-header/index.tsx +14 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-information/index.tsx +36 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-items/index.tsx +43 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-summary/index.tsx +15 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-product-preview/index.tsx +15 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-cart-page/index.tsx +65 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-order-confirmed/index.tsx +21 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-product-grid/index.tsx +23 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-related-products/index.tsx +25 -0
- package/templates/storefront/src/modules/store/components/client-paginated-products.tsx +108 -0
- package/templates/storefront/src/modules/store/components/mobile-filters/index.tsx +135 -0
- package/templates/storefront/src/modules/store/components/pagination/index.tsx +118 -0
- package/templates/storefront/src/modules/store/components/product-list-view-tracker/index.tsx +43 -0
- package/templates/storefront/src/modules/store/components/refinement-list/index.tsx +299 -0
- package/templates/storefront/src/modules/store/components/refinement-list/sort-products/index.tsx +120 -0
- package/templates/storefront/src/modules/store/components/store-header/index.tsx +67 -0
- package/templates/storefront/src/modules/store/templates/index.tsx +1 -0
- package/templates/storefront/src/modules/store/templates/paginated-products.tsx +175 -0
- package/templates/storefront/src/modules/wishlist/components/wishlist-item/index.tsx +797 -0
- package/templates/storefront/src/modules/wishlist/templates/index.tsx +176 -0
- package/templates/storefront/src/storefront.config.ts +12 -0
- package/templates/storefront/src/styles/globals.css +326 -0
- package/templates/storefront/src/theme/valero/blocks/home/Features/index.tsx +61 -0
- package/templates/storefront/src/theme/valero/blocks/home/Hero/index.tsx +102 -0
- package/templates/storefront/src/theme/valero/blocks/home/LovedByMoms/index.tsx +407 -0
- package/templates/storefront/src/theme/valero/blocks/home/NewArrivals/index.tsx +48 -0
- package/templates/storefront/src/theme/valero/blocks/home/ShopByAge/index.tsx +128 -0
- package/templates/storefront/src/theme/valero/blocks/home/ShopByCategory/index.tsx +409 -0
- package/templates/storefront/src/theme/valero/blocks/home/Testimonials/index.tsx +697 -0
- package/templates/storefront/src/theme/valero/blocks/home/WhyChooseUs/index.tsx +62 -0
- package/templates/storefront/src/theme/valero/layouts/MainLayoutShell.tsx +14 -0
- package/templates/storefront/src/theme/valero/primitives/Button.tsx +28 -0
- package/templates/storefront/src/theme/valero/primitives/Card.tsx +32 -0
- package/templates/storefront/src/theme/valero/primitives/index.ts +2 -0
- package/templates/storefront/src/theme/valero/slots/account/ForgotPassword/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/account/Login/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/account/LoginTemplate/index.tsx +44 -0
- package/templates/storefront/src/theme/valero/slots/account/Register/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/cart/CartItem/index.tsx +11 -0
- package/templates/storefront/src/theme/valero/slots/cart/CartSummary/index.tsx +13 -0
- package/templates/storefront/src/theme/valero/slots/checkout/CheckoutForm/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/checkout/CheckoutSummary/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/layout/Footer/index.tsx +104 -0
- package/templates/storefront/src/theme/valero/slots/layout/Nav/index.tsx +97 -0
- package/templates/storefront/src/theme/valero/slots/layout/PromoBar/index.tsx +19 -0
- package/templates/storefront/src/theme/valero/slots/layout/PromoBar/promo-bar-content.tsx +174 -0
- package/templates/storefront/src/theme/valero/slots/order/OrderDetails/index.tsx +12 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductCTASection.tsx +191 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductDetailsSection.tsx +137 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductFeaturePanel.tsx +245 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductHighlightsSection.tsx +98 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductOptionsSection.tsx +233 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductPriceSection.tsx +53 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductTrustSection.tsx +84 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/index.tsx +161 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductCard/index.tsx +132 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductInfo/index.tsx +40 -0
- package/templates/storefront/src/theme/valero/templates/StorePage/index.tsx +154 -0
- package/templates/storefront/src/theme/valero/tokens/colors.js +16 -0
- package/templates/storefront/src/theme/valero/tokens/colors.ts +21 -0
- package/templates/storefront/src/theme/valero/tokens/fonts.ts +13 -0
- package/templates/storefront/src/theme/valero/tokens/index.ts +3 -0
- package/templates/storefront/src/theme/valero/tokens/spacing.ts +9 -0
- package/templates/storefront/src/theme/valero/tokens/theme.css +91 -0
- package/templates/storefront/tailwind.config.js +221 -0
- package/templates/storefront/tsconfig.json +30 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { useState, useEffect } from "react"
|
|
4
|
+
import WishlistItem from "../components/wishlist-item"
|
|
5
|
+
import { HttpTypes } from "@medusajs/types"
|
|
6
|
+
import { getWishlist, removeFromWishlist } from "@core/data/wishlist"
|
|
7
|
+
import { useWishlist } from "@core/context/wishlist-context"
|
|
8
|
+
import { retrieveCart } from "@core/data/cart"
|
|
9
|
+
|
|
10
|
+
interface WishlistProduct {
|
|
11
|
+
id: string
|
|
12
|
+
product: HttpTypes.StoreProduct
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const WishlistTemplate = ({ countryCode }: { countryCode: string }) => {
|
|
16
|
+
const { refreshWishlist, count } = useWishlist()
|
|
17
|
+
const [wishlistItems, setWishlistItems] = useState<WishlistProduct[]>([])
|
|
18
|
+
const [cart, setCart] = useState<HttpTypes.StoreCart | null>(null)
|
|
19
|
+
const [loading, setLoading] = useState(true)
|
|
20
|
+
|
|
21
|
+
const loadWishlist = async () => {
|
|
22
|
+
try {
|
|
23
|
+
const [wishlistResult, cartResult] = await Promise.all([
|
|
24
|
+
getWishlist(true, countryCode),
|
|
25
|
+
retrieveCart().catch(() => null)
|
|
26
|
+
])
|
|
27
|
+
|
|
28
|
+
setCart(cartResult)
|
|
29
|
+
|
|
30
|
+
if (wishlistResult.success) {
|
|
31
|
+
// Transform the API response to match our WishlistProduct interface
|
|
32
|
+
const items: WishlistProduct[] = wishlistResult.data.map((item: any) => {
|
|
33
|
+
// Handle different response formats
|
|
34
|
+
if (item.product) {
|
|
35
|
+
// If item has a product property
|
|
36
|
+
return {
|
|
37
|
+
id: item.id || item.product.id,
|
|
38
|
+
product: item.product,
|
|
39
|
+
}
|
|
40
|
+
} else if (item.id && item.title) {
|
|
41
|
+
// If item is a product object directly
|
|
42
|
+
return {
|
|
43
|
+
id: item.id,
|
|
44
|
+
product: item as HttpTypes.StoreProduct,
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
// If it's just a product ID, we need to fetch product details
|
|
48
|
+
// For now, skip it or handle separately
|
|
49
|
+
return null
|
|
50
|
+
}
|
|
51
|
+
}).filter((item: WishlistProduct | null): item is WishlistProduct => item !== null)
|
|
52
|
+
|
|
53
|
+
setWishlistItems(items)
|
|
54
|
+
}
|
|
55
|
+
} catch (error) {
|
|
56
|
+
// Error silently handled
|
|
57
|
+
} finally {
|
|
58
|
+
setLoading(false)
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
loadWishlist()
|
|
64
|
+
}, [])
|
|
65
|
+
|
|
66
|
+
const handleRemoveItem = async (productId: string) => {
|
|
67
|
+
try {
|
|
68
|
+
const result = await removeFromWishlist(productId)
|
|
69
|
+
if (result.success) {
|
|
70
|
+
// Remove from local state
|
|
71
|
+
const updated = wishlistItems.filter((item) => item.product.id !== productId)
|
|
72
|
+
setWishlistItems(updated)
|
|
73
|
+
refreshWishlist()
|
|
74
|
+
} else {
|
|
75
|
+
// Still remove from UI for better UX, but show error
|
|
76
|
+
const updated = wishlistItems.filter((item) => item.product.id !== productId)
|
|
77
|
+
setWishlistItems(updated)
|
|
78
|
+
refreshWishlist()
|
|
79
|
+
}
|
|
80
|
+
} catch (error) {
|
|
81
|
+
// Error silently handled
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (loading) {
|
|
86
|
+
return (
|
|
87
|
+
<div className="min-h-screen" style={{ background: "#FFFAFE" }}>
|
|
88
|
+
<div className="w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 py-8 sm:py-12 md:py-14 lg:py-16">
|
|
89
|
+
<div className="mx-auto" style={{ maxWidth: '1360px' }}>
|
|
90
|
+
<div className="text-center text-sm sm:text-base">Loading...</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
<>
|
|
99
|
+
<style dangerouslySetInnerHTML={{
|
|
100
|
+
__html: `
|
|
101
|
+
@media (min-width: 340px) and (max-width: 638px) {
|
|
102
|
+
.wishlist-grid {
|
|
103
|
+
grid-template-columns: repeat(2, 1fr) !important;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@media (min-width: 639px) and (max-width: 767px) {
|
|
107
|
+
.wishlist-grid {
|
|
108
|
+
grid-template-columns: repeat(2, 1fr) !important;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
@media (min-width: 768px) and (max-width: 1023px) {
|
|
112
|
+
.wishlist-grid {
|
|
113
|
+
grid-template-columns: repeat(3, 1fr) !important;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
@media (min-width: 1024px) {
|
|
117
|
+
.wishlist-grid {
|
|
118
|
+
grid-template-columns: repeat(4, 1fr) !important;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`
|
|
122
|
+
}} />
|
|
123
|
+
<div className="min-h-screen" style={{ background: "#FFFAFE" }}>
|
|
124
|
+
<div className="w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 py-8 sm:py-12 md:py-14 lg:py-16">
|
|
125
|
+
<div className="mx-auto" style={{ maxWidth: '1360px' }}>
|
|
126
|
+
{/* Header */}
|
|
127
|
+
<div className="mb-6 sm:mb-8 md:mb-10 lg:mb-12">
|
|
128
|
+
<h1 className="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold text-gray-900 mb-1 pl-2 sm:pl-4 md:pl-6">My Wishlist</h1>
|
|
129
|
+
<p className="text-sm sm:text-base text-gray-500 pl-2 sm:pl-4 md:pl-6">
|
|
130
|
+
({count} {count === 1 ? "Item" : "Items"})
|
|
131
|
+
</p>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
{/* Wishlist Grid */}
|
|
135
|
+
{wishlistItems.length > 0 ? (
|
|
136
|
+
<div className="grid grid-cols-1 wishlist-grid gap-3 sm:gap-4 md:gap-5 lg:gap-6 justify-items-center">
|
|
137
|
+
{wishlistItems.map((item) => (
|
|
138
|
+
<WishlistItem
|
|
139
|
+
key={item.id}
|
|
140
|
+
product={item.product}
|
|
141
|
+
countryCode={countryCode}
|
|
142
|
+
cart={cart}
|
|
143
|
+
onRemove={() => handleRemoveItem(item.product.id || "")}
|
|
144
|
+
/>
|
|
145
|
+
))}
|
|
146
|
+
</div>
|
|
147
|
+
) : (
|
|
148
|
+
<div className="text-center py-12 sm:py-16 md:py-20">
|
|
149
|
+
<div className="mb-4 sm:mb-6">
|
|
150
|
+
<svg
|
|
151
|
+
className="mx-auto w-16 h-16 sm:w-20 sm:h-20 md:w-24 md:h-24 text-gray-300"
|
|
152
|
+
fill="none"
|
|
153
|
+
stroke="currentColor"
|
|
154
|
+
viewBox="0 0 24 24"
|
|
155
|
+
>
|
|
156
|
+
<path
|
|
157
|
+
strokeLinecap="round"
|
|
158
|
+
strokeLinejoin="round"
|
|
159
|
+
strokeWidth={1.5}
|
|
160
|
+
d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
|
|
161
|
+
/>
|
|
162
|
+
</svg>
|
|
163
|
+
</div>
|
|
164
|
+
<p className="text-base sm:text-lg md:text-xl text-gray-600 mb-2 font-semibold">Your wishlist is empty</p>
|
|
165
|
+
<p className="text-sm sm:text-base text-gray-500">Start adding items to your wishlist!</p>
|
|
166
|
+
</div>
|
|
167
|
+
)}
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</>
|
|
172
|
+
)
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export default WishlistTemplate
|
|
176
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-brand storefront config — override block order or disable slots here.
|
|
3
|
+
*/
|
|
4
|
+
import { storefrontConfig as baseConfig } from "@pradip1995/storefront-registry/storefront.config"
|
|
5
|
+
|
|
6
|
+
export const storefrontConfig = {
|
|
7
|
+
...baseConfig,
|
|
8
|
+
theme: "valero",
|
|
9
|
+
baseDir: "theme/valero",
|
|
10
|
+
} as const
|
|
11
|
+
|
|
12
|
+
export type { HomeBlockType } from "@pradip1995/storefront-registry/storefront.config"
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
@import "tailwindcss/base";
|
|
2
|
+
@import "tailwindcss/components";
|
|
3
|
+
@import "tailwindcss/utilities";
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
body {
|
|
7
|
+
background-color: var(--color-page-bg);
|
|
8
|
+
color: var(--color-text-body);
|
|
9
|
+
font-family: var(--font-sans);
|
|
10
|
+
line-height: var(--line-height-body);
|
|
11
|
+
letter-spacing: var(--letter-spacing-body);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h1,
|
|
15
|
+
h2,
|
|
16
|
+
h3,
|
|
17
|
+
h4,
|
|
18
|
+
h5,
|
|
19
|
+
h6 {
|
|
20
|
+
font-family: var(--font-heading);
|
|
21
|
+
line-height: var(--line-height-heading);
|
|
22
|
+
letter-spacing: var(--letter-spacing-heading);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@layer utilities {
|
|
27
|
+
/* Chrome, Safari and Opera */
|
|
28
|
+
.no-scrollbar::-webkit-scrollbar {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.no-scrollbar::-webkit-scrollbar-track {
|
|
33
|
+
background-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.no-scrollbar {
|
|
37
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
38
|
+
scrollbar-width: none; /* Firefox */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
input:focus ~ label,
|
|
42
|
+
input:not(:placeholder-shown) ~ label {
|
|
43
|
+
@apply -translate-y-2 text-xsmall-regular;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
input:focus ~ label {
|
|
47
|
+
@apply left-0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
input:-webkit-autofill,
|
|
51
|
+
input:-webkit-autofill:hover,
|
|
52
|
+
input:-webkit-autofill:focus,
|
|
53
|
+
textarea:-webkit-autofill,
|
|
54
|
+
textarea:-webkit-autofill:hover,
|
|
55
|
+
textarea:-webkit-autofill:focus,
|
|
56
|
+
select:-webkit-autofill,
|
|
57
|
+
select:-webkit-autofill:hover,
|
|
58
|
+
select:-webkit-autofill:focus {
|
|
59
|
+
border: 1px solid #212121;
|
|
60
|
+
-webkit-text-fill-color: #212121;
|
|
61
|
+
-webkit-box-shadow: 0 0 0px 1000px #fff inset;
|
|
62
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
input[type="search"]::-webkit-search-decoration,
|
|
66
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
67
|
+
input[type="search"]::-webkit-search-results-button,
|
|
68
|
+
input[type="search"]::-webkit-search-results-decoration {
|
|
69
|
+
-webkit-appearance: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@layer components {
|
|
74
|
+
.content-container {
|
|
75
|
+
@apply max-w-[1440px] w-full mx-auto px-6;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.contrast-btn {
|
|
79
|
+
@apply px-4 py-2 border border-black rounded-full hover:bg-black hover:text-white transition-colors duration-200 ease-in;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.text-xsmall-regular {
|
|
83
|
+
@apply text-[10px] leading-4 font-normal;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.text-small-regular {
|
|
87
|
+
@apply text-xs leading-5 font-normal;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.text-small-semi {
|
|
91
|
+
@apply text-xs leading-5 font-semibold;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.text-base-regular {
|
|
95
|
+
@apply text-sm leading-6 font-normal;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.text-base-semi {
|
|
99
|
+
@apply text-sm leading-6 font-semibold;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.text-large-regular {
|
|
103
|
+
@apply text-base leading-6 font-normal;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.text-large-semi {
|
|
107
|
+
@apply text-base leading-6 font-semibold;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.text-xl-regular {
|
|
111
|
+
@apply text-2xl leading-[36px] font-normal;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.text-xl-semi {
|
|
115
|
+
@apply text-2xl leading-[36px] font-semibold;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.text-2xl-regular {
|
|
119
|
+
@apply text-[30px] leading-[48px] font-normal;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.text-2xl-semi {
|
|
123
|
+
@apply text-[30px] leading-[48px] font-semibold;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.text-3xl-regular {
|
|
127
|
+
@apply text-[32px] leading-[44px] font-normal;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.text-3xl-semi {
|
|
131
|
+
@apply text-[32px] leading-[44px] font-semibold;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@keyframes progress-loading {
|
|
135
|
+
0% { width: 0%; }
|
|
136
|
+
100% { width: 100%; }
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.animate-progress {
|
|
140
|
+
animation: progress-loading 20s linear forwards;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Checkout — theme-aware surfaces & buttons */
|
|
144
|
+
.checkout-surface {
|
|
145
|
+
@apply bg-page-bg;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.checkout-panel {
|
|
149
|
+
@apply bg-page-bg border border-[var(--color-border)] shadow-brand-sm;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.checkout-btn-primary {
|
|
153
|
+
@apply bg-brand-accent text-inverse hover:bg-brand-accent-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.checkout-btn-outline {
|
|
157
|
+
@apply border-2 border-brand-accent text-brand-accent bg-surface hover:bg-brand-accent-muted transition-colors;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.checkout-modal-header {
|
|
161
|
+
@apply bg-brand-accent text-inverse;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.checkout-option-selected {
|
|
165
|
+
@apply bg-brand-accent-muted border-brand-accent;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.checkout-radio-dot {
|
|
169
|
+
@apply bg-brand-accent border-brand-accent;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Account & auth — same theme tokens as checkout */
|
|
173
|
+
.account-surface {
|
|
174
|
+
@apply bg-page-bg;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.account-panel {
|
|
178
|
+
@apply bg-surface border border-[var(--color-border)] shadow-brand-sm;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.account-btn-primary {
|
|
182
|
+
@apply bg-brand-accent text-inverse hover:bg-brand-accent-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.account-btn-outline {
|
|
186
|
+
@apply border border-brand-accent text-brand-accent bg-surface hover:bg-brand-accent-muted transition-colors;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.account-input {
|
|
190
|
+
@apply border border-[var(--color-border)] bg-surface focus:outline-none focus:ring-2 focus:ring-brand-accent focus:border-brand-accent transition-all;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.account-link {
|
|
194
|
+
@apply text-brand-accent font-semibold hover:underline;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.account-nav-active {
|
|
198
|
+
@apply text-brand-accent bg-page-bg;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.account-option-selected {
|
|
202
|
+
@apply border-brand-accent bg-brand-accent-muted;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Contact & Help pages */
|
|
206
|
+
.page-surface {
|
|
207
|
+
@apply bg-page-bg min-h-screen;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.help-badge {
|
|
211
|
+
background: var(--color-brand-accent-muted);
|
|
212
|
+
border: 1px solid var(--color-brand-accent-border);
|
|
213
|
+
color: var(--color-brand-accent);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.help-gradient-text {
|
|
217
|
+
background: var(--gradient-promo);
|
|
218
|
+
-webkit-background-clip: text;
|
|
219
|
+
-webkit-text-fill-color: transparent;
|
|
220
|
+
background-clip: text;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.help-btn-brand {
|
|
224
|
+
background: var(--gradient-promo);
|
|
225
|
+
color: var(--color-text-inverse);
|
|
226
|
+
box-shadow: var(--shadow-brand-sm);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.help-panel {
|
|
230
|
+
background: var(--color-surface);
|
|
231
|
+
border: 1px solid var(--color-brand-accent-border);
|
|
232
|
+
box-shadow: var(--shadow-card);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.help-panel-header {
|
|
236
|
+
background: var(--color-brand-accent-muted);
|
|
237
|
+
border-bottom: 1px solid var(--color-brand-accent-border);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.help-form-input {
|
|
241
|
+
background: var(--color-surface-muted);
|
|
242
|
+
border: 1.5px solid var(--color-brand-accent-border);
|
|
243
|
+
color: var(--color-text-heading);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.help-form-input:focus {
|
|
247
|
+
outline: none;
|
|
248
|
+
box-shadow: 0 0 0 3px rgba(var(--color-brand-accent-rgb), 0.15),
|
|
249
|
+
0 1px 3px rgba(0, 0, 0, 0.08);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.help-icon-circle {
|
|
253
|
+
background: var(--color-brand-accent-muted);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.help-tab-active {
|
|
257
|
+
background: var(--gradient-promo);
|
|
258
|
+
color: var(--color-text-inverse) !important;
|
|
259
|
+
border-color: transparent !important;
|
|
260
|
+
box-shadow: var(--shadow-brand-sm);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.help-faq-open {
|
|
264
|
+
background: var(--color-brand-accent-muted);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.help-accent-chip {
|
|
268
|
+
background: rgba(var(--color-brand-accent-rgb), 0.1);
|
|
269
|
+
color: var(--color-brand-accent);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.help-accent-chip-open {
|
|
273
|
+
background: var(--gradient-promo);
|
|
274
|
+
color: var(--color-text-inverse);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.help-accent-divider {
|
|
278
|
+
background: linear-gradient(
|
|
279
|
+
90deg,
|
|
280
|
+
rgba(var(--color-brand-accent-rgb), 0.2),
|
|
281
|
+
transparent
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.help-accent-underline {
|
|
286
|
+
background: linear-gradient(
|
|
287
|
+
90deg,
|
|
288
|
+
rgba(var(--color-brand-accent-rgb), 0.3),
|
|
289
|
+
rgba(var(--color-brand-accent-rgb), 0.05)
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.help-accent-glow {
|
|
294
|
+
background: radial-gradient(
|
|
295
|
+
circle,
|
|
296
|
+
rgba(var(--color-brand-accent-rgb), 0.08) 0%,
|
|
297
|
+
transparent 70%
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.help-dot-pattern {
|
|
302
|
+
background-image: radial-gradient(
|
|
303
|
+
circle,
|
|
304
|
+
var(--color-brand-accent) 1.5px,
|
|
305
|
+
transparent 1.5px
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.help-dot-pattern-sm {
|
|
310
|
+
background-image: radial-gradient(
|
|
311
|
+
circle,
|
|
312
|
+
var(--color-brand-accent) 1px,
|
|
313
|
+
transparent 1px
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.contact-card-themed {
|
|
318
|
+
background: var(--color-surface);
|
|
319
|
+
border: 1px solid rgba(var(--color-brand-accent-rgb), 0.08);
|
|
320
|
+
box-shadow: var(--shadow-card);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.contact-card-themed:hover {
|
|
324
|
+
box-shadow: 0 16px 48px rgba(var(--color-brand-accent-rgb), 0.15);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import Image from "next/image"
|
|
2
|
+
|
|
3
|
+
const features = [
|
|
4
|
+
{
|
|
5
|
+
name: "100% Secure",
|
|
6
|
+
icon: "/secure.svg",
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "Easy Exchanges",
|
|
10
|
+
icon: "/exchnage.svg",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "Fast Delivery",
|
|
14
|
+
icon: "/fast.svg",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "Cash On Delivery",
|
|
18
|
+
icon: "/cash.svg",
|
|
19
|
+
},
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
const Features = () => {
|
|
23
|
+
return (
|
|
24
|
+
<div className="w-full py-4 min-[350px]:py-5 sm:py-6 md:py-8 lg:py-10 px-3 min-[350px]:px-4 sm:px-6 md:px-8 lg:px-12 bg-page-bg">
|
|
25
|
+
<div className="max-w-[1360px] mx-auto w-full">
|
|
26
|
+
{/* Responsive Grid: 4 columns across all screens, but adjusted sizing/layout */}
|
|
27
|
+
<div className="grid grid-cols-4 gap-2 sm:gap-4 md:gap-6 lg:gap-8 items-start justify-items-center">
|
|
28
|
+
{features.map((feature, index) => (
|
|
29
|
+
<div
|
|
30
|
+
key={feature.name}
|
|
31
|
+
className={`
|
|
32
|
+
flex flex-col sm:flex-row items-center justify-start
|
|
33
|
+
w-full relative px-1 sm:px-2
|
|
34
|
+
${index < features.length - 1 ? 'sm:border-r border-gray-200' : ''}
|
|
35
|
+
`}
|
|
36
|
+
>
|
|
37
|
+
<div className="relative w-8 h-8 xs:w-10 xs:h-10 sm:w-10 sm:h-10 md:w-12 md:h-12 lg:w-14 lg:h-14 xl:w-20 xl:h-20 mb-1.5 sm:mb-0 sm:mr-2 md:mr-3 lg:mr-4 flex-shrink-0">
|
|
38
|
+
<Image
|
|
39
|
+
src={feature.icon}
|
|
40
|
+
alt={feature.name}
|
|
41
|
+
width={80}
|
|
42
|
+
height={80}
|
|
43
|
+
className="w-full h-full object-contain"
|
|
44
|
+
unoptimized
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
<div className="text-center sm:text-left min-w-0">
|
|
48
|
+
<h3 className="text-[8px] xs:text-[10px] sm:text-[11px] md:text-sm lg:text-base xl:text-lg font-semibold text-gray-800 leading-tight">
|
|
49
|
+
{feature.name}
|
|
50
|
+
</h3>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
))}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export default Features
|
|
61
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import Image from "next/image"
|
|
2
|
+
import LocalizedClientLink from "@modules/common/components/localized-client-link"
|
|
3
|
+
import type { HeroBlockData } from "@core/types/home"
|
|
4
|
+
|
|
5
|
+
const Hero = ({ homeBanner, appBanner }: HeroBlockData) => {
|
|
6
|
+
const desktopImage = homeBanner.image || "/newbanner.png"
|
|
7
|
+
const mobileImage = appBanner.image || desktopImage
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<section className="w-full">
|
|
11
|
+
{/* Desktop — Impulse full-bleed hero with overlay */}
|
|
12
|
+
<div className="hidden min-[551px]:block relative w-full min-h-[420px] md:min-h-[520px] lg:min-h-[600px]">
|
|
13
|
+
<Image
|
|
14
|
+
src={desktopImage}
|
|
15
|
+
alt={homeBanner.subtitle || homeBanner.title || "Hero banner"}
|
|
16
|
+
fill
|
|
17
|
+
priority
|
|
18
|
+
sizes="100vw"
|
|
19
|
+
className="object-cover"
|
|
20
|
+
/>
|
|
21
|
+
<div
|
|
22
|
+
className="absolute inset-0"
|
|
23
|
+
style={{ background: "var(--gradient-hero)" }}
|
|
24
|
+
/>
|
|
25
|
+
<div className="absolute inset-0 flex items-end">
|
|
26
|
+
<div
|
|
27
|
+
className="w-full mx-auto px-8 md:px-12 lg:px-16 pb-12 md:pb-16 lg:pb-20"
|
|
28
|
+
style={{ maxWidth: "var(--container-max)" }}
|
|
29
|
+
>
|
|
30
|
+
<div className="max-w-xl text-[var(--color-text-inverse)]">
|
|
31
|
+
{homeBanner.title && (
|
|
32
|
+
<p className="text-xs md:text-sm font-semibold uppercase tracking-[var(--letter-spacing-nav)] mb-3 opacity-90">
|
|
33
|
+
{homeBanner.title}
|
|
34
|
+
</p>
|
|
35
|
+
)}
|
|
36
|
+
{homeBanner.subtitle && (
|
|
37
|
+
<h1 className="font-display text-3xl md:text-5xl lg:text-6xl font-normal leading-heading mb-4">
|
|
38
|
+
{homeBanner.subtitle}
|
|
39
|
+
</h1>
|
|
40
|
+
)}
|
|
41
|
+
{homeBanner.description && (
|
|
42
|
+
<p className="text-sm md:text-base text-white/85 mb-8 max-w-md leading-relaxed">
|
|
43
|
+
{homeBanner.description}
|
|
44
|
+
</p>
|
|
45
|
+
)}
|
|
46
|
+
{homeBanner.buttonName && (
|
|
47
|
+
<LocalizedClientLink href={homeBanner.buttonLink || "/store"}>
|
|
48
|
+
<span
|
|
49
|
+
className="inline-block border-2 border-white text-white px-8 py-3 text-xs font-semibold uppercase tracking-[var(--letter-spacing-nav)] hover:bg-white hover:text-brand-accent transition-colors duration-300"
|
|
50
|
+
data-ga-event="hero_banner_click"
|
|
51
|
+
data-ga-label={homeBanner.buttonName}
|
|
52
|
+
>
|
|
53
|
+
{homeBanner.buttonName}
|
|
54
|
+
</span>
|
|
55
|
+
</LocalizedClientLink>
|
|
56
|
+
)}
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
{/* Mobile */}
|
|
63
|
+
<div className="block min-[551px]:hidden relative w-full min-h-[480px]">
|
|
64
|
+
<Image
|
|
65
|
+
src={mobileImage}
|
|
66
|
+
alt={appBanner.subtitle || appBanner.title || "Hero banner"}
|
|
67
|
+
fill
|
|
68
|
+
priority
|
|
69
|
+
sizes="100vw"
|
|
70
|
+
className="object-cover"
|
|
71
|
+
/>
|
|
72
|
+
<div
|
|
73
|
+
className="absolute inset-0"
|
|
74
|
+
style={{ background: "var(--gradient-hero)" }}
|
|
75
|
+
/>
|
|
76
|
+
<div className="absolute inset-0 flex items-end px-6 pb-10">
|
|
77
|
+
<div className="text-[var(--color-text-inverse)]">
|
|
78
|
+
{appBanner.title && (
|
|
79
|
+
<p className="text-xs font-semibold uppercase tracking-[var(--letter-spacing-nav)] mb-2 opacity-90">
|
|
80
|
+
{appBanner.title}
|
|
81
|
+
</p>
|
|
82
|
+
)}
|
|
83
|
+
{appBanner.subtitle && (
|
|
84
|
+
<h1 className="font-display text-2xl font-normal leading-heading mb-3">
|
|
85
|
+
{appBanner.subtitle}
|
|
86
|
+
</h1>
|
|
87
|
+
)}
|
|
88
|
+
{appBanner.buttonName && (
|
|
89
|
+
<LocalizedClientLink href={appBanner.buttonLink || "/store"}>
|
|
90
|
+
<span className="inline-block border-2 border-white text-white px-6 py-2.5 text-[11px] font-semibold uppercase tracking-[var(--letter-spacing-nav)]">
|
|
91
|
+
{appBanner.buttonName}
|
|
92
|
+
</span>
|
|
93
|
+
</LocalizedClientLink>
|
|
94
|
+
)}
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</section>
|
|
99
|
+
)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export default Hero
|