@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,407 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import Image from "next/image"
|
|
4
|
+
import LocalizedClientLink from "@modules/common/components/localized-client-link"
|
|
5
|
+
import { HttpTypes } from "@medusajs/types"
|
|
6
|
+
import ProductCard from "@theme/slots/product/ProductCard"
|
|
7
|
+
|
|
8
|
+
type LovedByMomsProps = {
|
|
9
|
+
products: HttpTypes.StoreProduct[]
|
|
10
|
+
region: HttpTypes.StoreRegion
|
|
11
|
+
ratings?: any[]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const LovedByMoms = ({ products, region, ratings }: LovedByMomsProps) => {
|
|
15
|
+
const safeProducts = products || []
|
|
16
|
+
|
|
17
|
+
if (safeProducts.length === 0) {
|
|
18
|
+
return null
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<style dangerouslySetInnerHTML={{
|
|
24
|
+
__html: `
|
|
25
|
+
@media (min-width: 340px) and (max-width: 419px) {
|
|
26
|
+
.loved-by-moms-banner {
|
|
27
|
+
padding: 1rem !important;
|
|
28
|
+
min-height: auto !important;
|
|
29
|
+
border-radius: 1rem !important;
|
|
30
|
+
}
|
|
31
|
+
.loved-by-moms-left-section {
|
|
32
|
+
width: 100% !important;
|
|
33
|
+
margin-bottom: 1rem !important;
|
|
34
|
+
}
|
|
35
|
+
.loved-by-moms-title {
|
|
36
|
+
font-size: 1.25rem !important;
|
|
37
|
+
margin-bottom: 0.5rem !important;
|
|
38
|
+
}
|
|
39
|
+
.loved-by-moms-text {
|
|
40
|
+
font-size: 0.75rem !important;
|
|
41
|
+
margin-bottom: 0.375rem !important;
|
|
42
|
+
}
|
|
43
|
+
.loved-by-moms-button {
|
|
44
|
+
padding: 0.5rem 1rem !important;
|
|
45
|
+
font-size: 0.75rem !important;
|
|
46
|
+
}
|
|
47
|
+
.loved-by-moms-cards-container {
|
|
48
|
+
width: 100% !important;
|
|
49
|
+
max-width: 100% !important;
|
|
50
|
+
overflow-x: auto !important;
|
|
51
|
+
overflow-y: hidden !important;
|
|
52
|
+
-webkit-overflow-scrolling: touch !important;
|
|
53
|
+
scrollbar-width: thin !important;
|
|
54
|
+
scrollbar-color: rgba(139, 90, 177, 0.3) transparent !important;
|
|
55
|
+
padding-left: 0 !important;
|
|
56
|
+
padding-right: 0 !important;
|
|
57
|
+
}
|
|
58
|
+
.loved-by-moms-cards-container::-webkit-scrollbar {
|
|
59
|
+
height: 4px !important;
|
|
60
|
+
}
|
|
61
|
+
.loved-by-moms-cards-container::-webkit-scrollbar-track {
|
|
62
|
+
background: transparent !important;
|
|
63
|
+
}
|
|
64
|
+
.loved-by-moms-cards-container::-webkit-scrollbar-thumb {
|
|
65
|
+
background-color: rgba(139, 90, 177, 0.3) !important;
|
|
66
|
+
border-radius: 2px !important;
|
|
67
|
+
}
|
|
68
|
+
.loved-by-moms-cards-flex {
|
|
69
|
+
gap: 0.75rem !important;
|
|
70
|
+
padding-left: 0.5rem !important;
|
|
71
|
+
padding-right: 0.5rem !important;
|
|
72
|
+
}
|
|
73
|
+
.loved-by-moms-card {
|
|
74
|
+
width: 140px !important;
|
|
75
|
+
min-width: 140px !important;
|
|
76
|
+
max-width: 140px !important;
|
|
77
|
+
height: auto !important;
|
|
78
|
+
min-height: 200px !important;
|
|
79
|
+
}
|
|
80
|
+
.loved-by-moms-image {
|
|
81
|
+
width: 120px !important;
|
|
82
|
+
height: 120px !important;
|
|
83
|
+
}
|
|
84
|
+
.loved-by-moms-star {
|
|
85
|
+
width: 0.625rem !important;
|
|
86
|
+
height: 0.625rem !important;
|
|
87
|
+
}
|
|
88
|
+
.loved-by-moms-card-title {
|
|
89
|
+
font-size: 0.75rem !important;
|
|
90
|
+
margin-bottom: 0.375rem !important;
|
|
91
|
+
}
|
|
92
|
+
.loved-by-moms-price {
|
|
93
|
+
font-size: 0.8125rem !important;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
@media (min-width: 420px) and (max-width: 549px) {
|
|
97
|
+
.loved-by-moms-banner {
|
|
98
|
+
padding: 1.25rem !important;
|
|
99
|
+
min-height: auto !important;
|
|
100
|
+
border-radius: 1.125rem !important;
|
|
101
|
+
}
|
|
102
|
+
.loved-by-moms-left-section {
|
|
103
|
+
width: 100% !important;
|
|
104
|
+
margin-bottom: 1.25rem !important;
|
|
105
|
+
}
|
|
106
|
+
.loved-by-moms-title {
|
|
107
|
+
font-size: 1.375rem !important;
|
|
108
|
+
margin-bottom: 0.625rem !important;
|
|
109
|
+
}
|
|
110
|
+
.loved-by-moms-text {
|
|
111
|
+
font-size: 0.8125rem !important;
|
|
112
|
+
margin-bottom: 0.5rem !important;
|
|
113
|
+
}
|
|
114
|
+
.loved-by-moms-button {
|
|
115
|
+
padding: 0.5625rem 1.125rem !important;
|
|
116
|
+
font-size: 0.8125rem !important;
|
|
117
|
+
}
|
|
118
|
+
.loved-by-moms-cards-container {
|
|
119
|
+
width: 100% !important;
|
|
120
|
+
max-width: 100% !important;
|
|
121
|
+
overflow-x: auto !important;
|
|
122
|
+
overflow-y: hidden !important;
|
|
123
|
+
-webkit-overflow-scrolling: touch !important;
|
|
124
|
+
scrollbar-width: thin !important;
|
|
125
|
+
scrollbar-color: rgba(139, 90, 177, 0.3) transparent !important;
|
|
126
|
+
padding-left: 0 !important;
|
|
127
|
+
padding-right: 0 !important;
|
|
128
|
+
}
|
|
129
|
+
.loved-by-moms-cards-container::-webkit-scrollbar {
|
|
130
|
+
height: 4px !important;
|
|
131
|
+
}
|
|
132
|
+
.loved-by-moms-cards-container::-webkit-scrollbar-track {
|
|
133
|
+
background: transparent !important;
|
|
134
|
+
}
|
|
135
|
+
.loved-by-moms-cards-container::-webkit-scrollbar-thumb {
|
|
136
|
+
background-color: rgba(139, 90, 177, 0.3) !important;
|
|
137
|
+
border-radius: 2px !important;
|
|
138
|
+
}
|
|
139
|
+
.loved-by-moms-cards-flex {
|
|
140
|
+
gap: 0.875rem !important;
|
|
141
|
+
padding-left: 0.75rem !important;
|
|
142
|
+
padding-right: 0.75rem !important;
|
|
143
|
+
}
|
|
144
|
+
.loved-by-moms-card {
|
|
145
|
+
width: 150px !important;
|
|
146
|
+
min-width: 150px !important;
|
|
147
|
+
max-width: 150px !important;
|
|
148
|
+
height: auto !important;
|
|
149
|
+
min-height: 210px !important;
|
|
150
|
+
}
|
|
151
|
+
.loved-by-moms-image {
|
|
152
|
+
width: 130px !important;
|
|
153
|
+
height: 130px !important;
|
|
154
|
+
}
|
|
155
|
+
.loved-by-moms-star {
|
|
156
|
+
width: 0.6875rem !important;
|
|
157
|
+
height: 0.6875rem !important;
|
|
158
|
+
}
|
|
159
|
+
.loved-by-moms-card-title {
|
|
160
|
+
font-size: 0.78125rem !important;
|
|
161
|
+
margin-bottom: 0.4375rem !important;
|
|
162
|
+
}
|
|
163
|
+
.loved-by-moms-price {
|
|
164
|
+
font-size: 0.84375rem !important;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
@media (min-width: 550px) and (max-width: 767px) {
|
|
168
|
+
.loved-by-moms-banner-inner {
|
|
169
|
+
flex-direction: row !important;
|
|
170
|
+
align-items: center !important;
|
|
171
|
+
}
|
|
172
|
+
.loved-by-moms-banner {
|
|
173
|
+
padding: 1.25rem !important;
|
|
174
|
+
min-height: auto !important;
|
|
175
|
+
max-width: 100% !important;
|
|
176
|
+
}
|
|
177
|
+
.loved-by-moms-left-section {
|
|
178
|
+
width: 280px !important;
|
|
179
|
+
flex-shrink: 0 !important;
|
|
180
|
+
text-align: left !important;
|
|
181
|
+
margin-bottom: 0 !important;
|
|
182
|
+
}
|
|
183
|
+
.loved-by-moms-title {
|
|
184
|
+
font-size: 1.375rem !important;
|
|
185
|
+
text-align: left !important;
|
|
186
|
+
margin-bottom: 0.625rem !important;
|
|
187
|
+
}
|
|
188
|
+
.loved-by-moms-text {
|
|
189
|
+
font-size: 0.8125rem !important;
|
|
190
|
+
text-align: left !important;
|
|
191
|
+
margin-bottom: 0.375rem !important;
|
|
192
|
+
}
|
|
193
|
+
.loved-by-moms-button {
|
|
194
|
+
padding: 0.5rem 1.25rem !important;
|
|
195
|
+
font-size: 0.8125rem !important;
|
|
196
|
+
}
|
|
197
|
+
.loved-by-moms-cards-wrapper {
|
|
198
|
+
flex: 1 !important;
|
|
199
|
+
min-width: 0 !important;
|
|
200
|
+
}
|
|
201
|
+
.loved-by-moms-cards-container {
|
|
202
|
+
width: 100% !important;
|
|
203
|
+
max-width: 100% !important;
|
|
204
|
+
overflow-x: auto !important;
|
|
205
|
+
overflow-y: hidden !important;
|
|
206
|
+
-webkit-overflow-scrolling: touch !important;
|
|
207
|
+
}
|
|
208
|
+
.loved-by-moms-cards-flex {
|
|
209
|
+
gap: 0.625rem !important;
|
|
210
|
+
justify-content: flex-start !important;
|
|
211
|
+
}
|
|
212
|
+
.loved-by-moms-card {
|
|
213
|
+
width: 165px !important;
|
|
214
|
+
min-width: 165px !important;
|
|
215
|
+
max-width: 165px !important;
|
|
216
|
+
height: auto !important;
|
|
217
|
+
min-height: 230px !important;
|
|
218
|
+
}
|
|
219
|
+
.loved-by-moms-image {
|
|
220
|
+
width: 150px !important;
|
|
221
|
+
height: 150px !important;
|
|
222
|
+
}
|
|
223
|
+
.loved-by-moms-star {
|
|
224
|
+
width: 0.8125rem !important;
|
|
225
|
+
height: 0.8125rem !important;
|
|
226
|
+
}
|
|
227
|
+
.loved-by-moms-card-title {
|
|
228
|
+
font-size: 0.8125rem !important;
|
|
229
|
+
text-align: left !important;
|
|
230
|
+
margin-bottom: 0.375rem !important;
|
|
231
|
+
}
|
|
232
|
+
.loved-by-moms-price {
|
|
233
|
+
font-size: 0.9375rem !important;
|
|
234
|
+
text-align: left !important;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
@media (min-width: 768px) and (max-width: 1440px) {
|
|
238
|
+
.loved-by-moms-banner {
|
|
239
|
+
padding: 2rem !important;
|
|
240
|
+
min-height: auto !important;
|
|
241
|
+
max-width: 100% !important;
|
|
242
|
+
}
|
|
243
|
+
.loved-by-moms-left-section {
|
|
244
|
+
width: 350px !important;
|
|
245
|
+
flex-shrink: 0 !important;
|
|
246
|
+
text-align: left !important;
|
|
247
|
+
}
|
|
248
|
+
.loved-by-moms-title {
|
|
249
|
+
font-size: 2rem !important;
|
|
250
|
+
text-align: left !important;
|
|
251
|
+
margin-bottom: 1rem !important;
|
|
252
|
+
}
|
|
253
|
+
.loved-by-moms-text {
|
|
254
|
+
font-size: 1rem !important;
|
|
255
|
+
text-align: left !important;
|
|
256
|
+
margin-bottom: 0.5rem !important;
|
|
257
|
+
}
|
|
258
|
+
.loved-by-moms-button {
|
|
259
|
+
padding: 0.75rem 2rem !important;
|
|
260
|
+
font-size: 1rem !important;
|
|
261
|
+
}
|
|
262
|
+
.loved-by-moms-cards-wrapper {
|
|
263
|
+
flex: 1 !important;
|
|
264
|
+
min-width: 0 !important;
|
|
265
|
+
}
|
|
266
|
+
.loved-by-moms-cards-container {
|
|
267
|
+
width: 100% !important;
|
|
268
|
+
max-width: 723px !important;
|
|
269
|
+
overflow-x: auto !important;
|
|
270
|
+
overflow-y: hidden !important;
|
|
271
|
+
-webkit-overflow-scrolling: touch !important;
|
|
272
|
+
scrollbar-width: thin !important;
|
|
273
|
+
scrollbar-color: rgba(139, 90, 177, 0.3) transparent !important;
|
|
274
|
+
}
|
|
275
|
+
.loved-by-moms-cards-container::-webkit-scrollbar {
|
|
276
|
+
height: 4px !important;
|
|
277
|
+
}
|
|
278
|
+
.loved-by-moms-cards-container::-webkit-scrollbar-track {
|
|
279
|
+
background: transparent !important;
|
|
280
|
+
}
|
|
281
|
+
.loved-by-moms-cards-container::-webkit-scrollbar-thumb {
|
|
282
|
+
background-color: rgba(139, 90, 177, 0.3) !important;
|
|
283
|
+
border-radius: 2px !important;
|
|
284
|
+
}
|
|
285
|
+
.loved-by-moms-card {
|
|
286
|
+
width: 220px !important;
|
|
287
|
+
min-width: 220px !important;
|
|
288
|
+
height: 282px !important;
|
|
289
|
+
}
|
|
290
|
+
.loved-by-moms-image {
|
|
291
|
+
width: 200px !important;
|
|
292
|
+
height: 200px !important;
|
|
293
|
+
}
|
|
294
|
+
.loved-by-moms-star {
|
|
295
|
+
width: 1rem !important;
|
|
296
|
+
height: 1rem !important;
|
|
297
|
+
}
|
|
298
|
+
.loved-by-moms-card-title {
|
|
299
|
+
font-size: 1rem !important;
|
|
300
|
+
text-align: left !important;
|
|
301
|
+
margin-bottom: 0.5rem !important;
|
|
302
|
+
}
|
|
303
|
+
.loved-by-moms-price {
|
|
304
|
+
font-size: 1.125rem !important;
|
|
305
|
+
text-align: left !important;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
@media (min-width: 1441px) {
|
|
309
|
+
.loved-by-moms-banner {
|
|
310
|
+
max-width: 1360px !important;
|
|
311
|
+
}
|
|
312
|
+
.loved-by-moms-left-section {
|
|
313
|
+
width: 400px !important;
|
|
314
|
+
flex-shrink: 0 !important;
|
|
315
|
+
}
|
|
316
|
+
.loved-by-moms-cards-wrapper {
|
|
317
|
+
flex: 1 !important;
|
|
318
|
+
min-width: 0 !important;
|
|
319
|
+
}
|
|
320
|
+
.loved-by-moms-cards-container {
|
|
321
|
+
width: 100% !important;
|
|
322
|
+
max-width: 723px !important;
|
|
323
|
+
overflow-x: auto !important;
|
|
324
|
+
overflow-y: hidden !important;
|
|
325
|
+
-webkit-overflow-scrolling: touch !important;
|
|
326
|
+
}
|
|
327
|
+
.loved-by-moms-card {
|
|
328
|
+
width: 220px !important;
|
|
329
|
+
min-width: 220px !important;
|
|
330
|
+
height: 282px !important;
|
|
331
|
+
}
|
|
332
|
+
.loved-by-moms-image {
|
|
333
|
+
width: 200px !important;
|
|
334
|
+
height: 200px !important;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
`
|
|
338
|
+
}} />
|
|
339
|
+
<div className="w-full py-8 sm:py-12 md:py-14 lg:py-16 bg-page-bg">
|
|
340
|
+
<div className="w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16">
|
|
341
|
+
<div className="w-full flex justify-center">
|
|
342
|
+
<div className="bg-gradient-to-r from-purple-100 to-pink-100 rounded-2xl sm:rounded-3xl p-6 sm:p-8 md:p-10 lg:p-12 w-full loved-by-moms-banner" style={{ maxWidth: '1360px', minHeight: 'auto' }}>
|
|
343
|
+
<div className="flex flex-col md:flex-row items-start md:items-center justify-between gap-4 sm:gap-6 md:gap-8 lg:gap-10 h-full loved-by-moms-banner-inner">
|
|
344
|
+
{/* Left Section - Text Content */}
|
|
345
|
+
<div className="w-full md:w-[400px] flex-shrink-0 loved-by-moms-left-section text-center md:text-left">
|
|
346
|
+
<h2 className="text-2xl sm:text-3xl md:text-3xl lg:text-4xl font-bold mb-3 sm:mb-4 loved-by-moms-title text-heading">
|
|
347
|
+
Loved by Moms
|
|
348
|
+
</h2>
|
|
349
|
+
<p className="text-sm sm:text-base md:text-lg text-gray-700 mb-2 loved-by-moms-text">
|
|
350
|
+
Top-rated styles loved by parents and kids alike.
|
|
351
|
+
</p>
|
|
352
|
+
<p className="text-sm sm:text-base md:text-lg text-gray-700 mb-4 sm:mb-6 loved-by-moms-text">
|
|
353
|
+
5-star comfort guaranteed!
|
|
354
|
+
</p>
|
|
355
|
+
<LocalizedClientLink
|
|
356
|
+
href="/store?sortBy=bestsellers"
|
|
357
|
+
data-ga-event="shop_bestsellers_click"
|
|
358
|
+
data-ga-label="Shop Bestsellers Banner"
|
|
359
|
+
className="inline-flex items-center gap-2 px-6 sm:px-8 py-2.5 sm:py-3 rounded-full text-white text-sm sm:text-base font-medium transition-colors duration-200 hover:opacity-90 loved-by-moms-button bg-brand-accent"
|
|
360
|
+
>
|
|
361
|
+
Shop Bestsellers
|
|
362
|
+
<svg
|
|
363
|
+
className="w-4 h-4 sm:w-5 sm:h-5"
|
|
364
|
+
fill="none"
|
|
365
|
+
stroke="currentColor"
|
|
366
|
+
viewBox="0 0 24 24"
|
|
367
|
+
>
|
|
368
|
+
<path
|
|
369
|
+
strokeLinecap="round"
|
|
370
|
+
strokeLinejoin="round"
|
|
371
|
+
strokeWidth={2}
|
|
372
|
+
d="M9 5l7 7-7 7"
|
|
373
|
+
/>
|
|
374
|
+
</svg>
|
|
375
|
+
</LocalizedClientLink>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
{/* Right Section - Product Cards */}
|
|
379
|
+
<div className="w-full md:flex-1 min-w-0 loved-by-moms-cards-wrapper">
|
|
380
|
+
<div className="loved-by-moms-cards-container overflow-x-auto no-scrollbar">
|
|
381
|
+
<div className="flex gap-4 pb-2 sm:pb-4 justify-start loved-by-moms-cards-flex">
|
|
382
|
+
{safeProducts.map((product) => (
|
|
383
|
+
<div
|
|
384
|
+
key={product.id}
|
|
385
|
+
className="flex-shrink-0 loved-by-moms-card w-[160px] sm:w-[200px] md:w-[240px]"
|
|
386
|
+
>
|
|
387
|
+
<ProductCard
|
|
388
|
+
product={product}
|
|
389
|
+
region={region}
|
|
390
|
+
rating={ratings?.find((r) => r.product_id === product.id)}
|
|
391
|
+
/>
|
|
392
|
+
</div>
|
|
393
|
+
))}
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
</div>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
</div>
|
|
402
|
+
</>
|
|
403
|
+
)
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export default LovedByMoms
|
|
407
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { HttpTypes } from "@medusajs/types"
|
|
4
|
+
import ProductCard from "@theme/slots/product/ProductCard"
|
|
5
|
+
|
|
6
|
+
type NewArrivalsProps = {
|
|
7
|
+
products: HttpTypes.StoreProduct[]
|
|
8
|
+
region: HttpTypes.StoreRegion
|
|
9
|
+
ratings?: any[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const NewArrivals = ({ products, region, ratings }: NewArrivalsProps) => {
|
|
13
|
+
const safeProducts = (products || []).slice(0, 8) // Show only first 8 products
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div className="w-full py-8 sm:py-12 md:py-14 lg:py-16 bg-page-bg">
|
|
17
|
+
<div className="w-full px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16">
|
|
18
|
+
<div className="mx-auto" style={{ maxWidth: '1360px' }}>
|
|
19
|
+
<div className="flex items-center justify-between mb-8 md:mb-10">
|
|
20
|
+
<h2 className="font-display text-2xl md:text-3xl text-heading">
|
|
21
|
+
New Arrivals
|
|
22
|
+
</h2>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 md:gap-6 lg:gap-8">
|
|
26
|
+
{safeProducts.length > 0 ? (
|
|
27
|
+
safeProducts.map((product) => (
|
|
28
|
+
<ProductCard
|
|
29
|
+
key={product.id}
|
|
30
|
+
product={product}
|
|
31
|
+
region={region}
|
|
32
|
+
rating={ratings?.find((r) => r.product_id === product.id)}
|
|
33
|
+
/>
|
|
34
|
+
))
|
|
35
|
+
) : (
|
|
36
|
+
<div className="col-span-2 md:col-span-4 text-center py-12">
|
|
37
|
+
<p className="text-gray-500">No new arrivals at the moment. Check back soon!</p>
|
|
38
|
+
</div>
|
|
39
|
+
)}
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default NewArrivals
|
|
48
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import Image from "next/image"
|
|
2
|
+
import LocalizedClientLink from "@modules/common/components/localized-client-link"
|
|
3
|
+
import { HttpTypes } from "@medusajs/types"
|
|
4
|
+
import PlaceholderImage from "@modules/common/icons/placeholder-image"
|
|
5
|
+
|
|
6
|
+
type ShopByAgeProps = {
|
|
7
|
+
collections: HttpTypes.StoreCollection[]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const getIconForCollection = (collection: HttpTypes.StoreCollection): string | null => {
|
|
11
|
+
// First try to get icon from metadata
|
|
12
|
+
const metadata = (collection as any)?.metadata || {}
|
|
13
|
+
const collectionIcon = metadata.collection_icon || null
|
|
14
|
+
|
|
15
|
+
if (collectionIcon) {
|
|
16
|
+
return collectionIcon
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Fallback to hardcoded logic if metadata doesn't have icon
|
|
20
|
+
const handle = collection.handle?.toLowerCase() || ""
|
|
21
|
+
const title = collection.title?.toLowerCase() || ""
|
|
22
|
+
const searchText = `${handle} ${title}`
|
|
23
|
+
|
|
24
|
+
if (searchText.includes("newborn") || searchText.includes("new-born") || searchText.includes("0-12")) {
|
|
25
|
+
return "/Newborn.svg"
|
|
26
|
+
}
|
|
27
|
+
if (searchText.includes("toddler") || searchText.includes("1-3")) {
|
|
28
|
+
return "/Toddler.svg"
|
|
29
|
+
}
|
|
30
|
+
if (searchText.includes("kids") || searchText.includes("kid") || searchText.includes("4-7")) {
|
|
31
|
+
return "/Kids.svg"
|
|
32
|
+
}
|
|
33
|
+
if (searchText.includes("juniors") || searchText.includes("junior") || searchText.includes("8-12")) {
|
|
34
|
+
return "/Juniors.svg"
|
|
35
|
+
}
|
|
36
|
+
if (searchText.includes("teens") || searchText.includes("teen") || searchText.includes("13-15")) {
|
|
37
|
+
return "/Teens.svg"
|
|
38
|
+
}
|
|
39
|
+
return null
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const ShopByAge = ({ collections }: ShopByAgeProps) => {
|
|
43
|
+
if (!collections || collections.length === 0) {
|
|
44
|
+
return null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Reverse collections so that last added appears last (API returns newest first)
|
|
48
|
+
const reversedCollections = [...collections].reverse()
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<div className="w-full py-8 sm:py-10 md:py-12 lg:py-16 px-4 sm:px-5 md:px-6">
|
|
52
|
+
<div className="max-w-[1440px] mx-auto">
|
|
53
|
+
<h2 className="text-xl sm:text-2xl md:text-3xl font-bold text-center mb-6 sm:mb-8 md:mb-10 lg:mb-12 text-gray-900">
|
|
54
|
+
Shop By Age
|
|
55
|
+
</h2>
|
|
56
|
+
<div className="grid grid-cols-2 min-[500px]:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 sm:gap-5 md:gap-6 lg:gap-8 xl:gap-12 justify-items-center">
|
|
57
|
+
{reversedCollections.map((collection) => {
|
|
58
|
+
const metadata = (collection as any)?.metadata || {}
|
|
59
|
+
const collectionImage = metadata.image || (collection as any)?.thumbnail || null
|
|
60
|
+
const iconPath = getIconForCollection(collection)
|
|
61
|
+
const collectionAge = metadata.collection_age || null
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<LocalizedClientLink
|
|
65
|
+
key={collection.id}
|
|
66
|
+
href={`/store?collection=${collection.id}`}
|
|
67
|
+
data-ga-event="shop_by_age_click"
|
|
68
|
+
data-ga-label={collection.title || "Collection"}
|
|
69
|
+
data-ga-collection-name={collection.title || ""}
|
|
70
|
+
data-ga-collection-handle={collection.handle || ""}
|
|
71
|
+
data-ga-collection-id={collection.id || ""}
|
|
72
|
+
data-ga-collection-age={collectionAge || ""}
|
|
73
|
+
data-ga-section="Shop by Age"
|
|
74
|
+
className="flex flex-col items-center group transition-transform duration-200 hover:scale-105 w-full"
|
|
75
|
+
>
|
|
76
|
+
{/* Wrap all content in a div with pointer-events-none to force GTM to target the Link */}
|
|
77
|
+
<div className="flex flex-col items-center pointer-events-none">
|
|
78
|
+
<div className="relative w-24 h-24 sm:w-28 sm:h-28 md:w-32 md:h-32 lg:w-40 lg:h-40 xl:w-[180px] xl:h-[180px] mb-2 sm:mb-3 md:mb-4 rounded-full overflow-hidden bg-gray-100 flex items-center justify-center">
|
|
79
|
+
{collectionImage ? (
|
|
80
|
+
<Image
|
|
81
|
+
src={collectionImage}
|
|
82
|
+
alt={collection.title || "Collection"}
|
|
83
|
+
fill
|
|
84
|
+
sizes="(max-width: 640px) 50vw, (max-width: 1024px) 25vw, 20vw"
|
|
85
|
+
className="w-full h-full object-cover"
|
|
86
|
+
/>
|
|
87
|
+
) : iconPath ? (
|
|
88
|
+
<Image
|
|
89
|
+
src={iconPath}
|
|
90
|
+
alt={collection.title || "Collection"}
|
|
91
|
+
fill
|
|
92
|
+
sizes="(max-width: 640px) 50vw, (max-width: 1024px) 25vw, 20vw"
|
|
93
|
+
className="w-full h-full object-contain"
|
|
94
|
+
/>
|
|
95
|
+
) : (
|
|
96
|
+
<div className="w-full h-full flex items-center justify-center">
|
|
97
|
+
<PlaceholderImage size={80} />
|
|
98
|
+
</div>
|
|
99
|
+
)}
|
|
100
|
+
</div>
|
|
101
|
+
<h3 className="text-xs sm:text-sm md:text-base lg:text-lg font-semibold text-gray-900 mb-0.5 sm:mb-1 group-hover:text-pink-500 transition-colors text-center px-1">
|
|
102
|
+
{collection.title}
|
|
103
|
+
</h3>
|
|
104
|
+
{collectionAge && (
|
|
105
|
+
<p className="text-[10px] sm:text-xs md:text-sm text-gray-600 text-center mb-0.5 sm:mb-1 px-1">
|
|
106
|
+
{collectionAge}
|
|
107
|
+
</p>
|
|
108
|
+
)}
|
|
109
|
+
{collection.handle && !collectionAge && (
|
|
110
|
+
<p className="text-[10px] sm:text-xs md:text-sm text-gray-600 text-center px-1">
|
|
111
|
+
{collection.handle
|
|
112
|
+
.split(" ")
|
|
113
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
114
|
+
.join(" ")}
|
|
115
|
+
</p>
|
|
116
|
+
)}
|
|
117
|
+
</div>
|
|
118
|
+
</LocalizedClientLink>
|
|
119
|
+
)
|
|
120
|
+
})}
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export default ShopByAge
|
|
128
|
+
|