@jetshop/template-trend 5.8.3 → 5.11.0

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.
Files changed (235) hide show
  1. package/.linaria-cache/packages/template-trend/src/components/Auth/LogInPage.linaria.css +4 -4
  2. package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/Address.linaria.css +1 -1
  3. package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/CustomerType.linaria.css +1 -1
  4. package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/LoginFields.linaria.css +1 -1
  5. package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/SignUpPage.linaria.css +2 -2
  6. package/.linaria-cache/packages/template-trend/src/components/Auth/UI/Form.linaria.css +2 -2
  7. package/.linaria-cache/packages/template-trend/src/components/Cart/CartButton.linaria.css +2 -2
  8. package/.linaria-cache/packages/template-trend/src/components/Cart/CartFlyout.linaria.css +7 -7
  9. package/.linaria-cache/packages/template-trend/src/components/Cart/CartItem.linaria.css +7 -7
  10. package/.linaria-cache/packages/template-trend/src/components/Cart/FreeShipping.linaria.css +2 -2
  11. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/CategoryHeader.linaria.css +8 -8
  12. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/ActiveFilters.linaria.css +6 -6
  13. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Filter.linaria.css +4 -4
  14. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDrawer.linaria.css +4 -4
  15. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDropdownMenu.linaria.css +1 -1
  16. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ActiveCarot.linaria.css +1 -1
  17. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/FilterButton.linaria.css +5 -5
  18. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ListAccordion.linaria.css +1 -1
  19. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/shared/styles.linaria.css +1 -1
  20. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/RangeFilters.linaria.css +2 -2
  21. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductCard.linaria.css +1 -1
  22. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGrid.linaria.css +2 -2
  23. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGridWindow.linaria.css +2 -2
  24. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/StandardCategoryPage.linaria.css +2 -2
  25. package/.linaria-cache/packages/template-trend/src/components/CategoryPage/WindowedCategoryPage.linaria.css +3 -3
  26. package/.linaria-cache/packages/template-trend/src/components/ContentPage/ContentPage.linaria.css +3 -3
  27. package/.linaria-cache/packages/template-trend/src/components/CookieConsent.linaria.css +1 -1
  28. package/.linaria-cache/packages/template-trend/src/components/Forms/GlobalError.linaria.css +1 -1
  29. package/.linaria-cache/packages/template-trend/src/components/Forms/Input.linaria.css +4 -4
  30. package/.linaria-cache/packages/template-trend/src/components/Forms/InputStatus.linaria.css +3 -3
  31. package/.linaria-cache/packages/template-trend/src/components/Forms/Success.linaria.css +1 -1
  32. package/.linaria-cache/packages/template-trend/src/components/Layout/Container.linaria.css +1 -1
  33. package/.linaria-cache/packages/template-trend/src/components/Layout/Content/index.linaria.css +1 -1
  34. package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/Footer.linaria.css +3 -3
  35. package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/SocialLinks.linaria.css +2 -2
  36. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Categories/MobileCategories.linaria.css +6 -6
  37. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenu.linaria.css +1 -1
  38. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.linaria.css +2 -2
  39. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuSection.linaria.css +1 -1
  40. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.linaria.css +5 -5
  41. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelector.linaria.css +2 -2
  42. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.linaria.css +2 -2
  43. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/Selector.linaria.css +5 -5
  44. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Header.linaria.css +7 -7
  45. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Logo.linaria.css +1 -1
  46. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/LogoSearchBar.linaria.css +1 -1
  47. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/MobileMenu.linaria.css +6 -6
  48. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/ChannelBanner.linaria.css +5 -5
  49. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.linaria.css +9 -9
  50. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchBar.linaria.css +3 -3
  51. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchButton.linaria.css +1 -1
  52. package/.linaria-cache/packages/template-trend/src/components/Layout/Header/TopNav.linaria.css +1 -1
  53. package/.linaria-cache/packages/template-trend/src/components/Layout/MaxWidth.linaria.css +1 -1
  54. package/.linaria-cache/packages/template-trend/src/components/Layout/Notifications.linaria.css +1 -1
  55. package/.linaria-cache/packages/template-trend/src/components/LoadingPage.linaria.css +1 -1
  56. package/.linaria-cache/packages/template-trend/src/components/MyPages/CustomerNameHeader.linaria.css +1 -1
  57. package/.linaria-cache/packages/template-trend/src/components/MyPages/DeleteAccount.linaria.css +1 -1
  58. package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPages.linaria.css +1 -1
  59. package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesSidebar.linaria.css +1 -1
  60. package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesStartPage.linaria.css +2 -2
  61. package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/ListOrder.linaria.css +1 -1
  62. package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ListDetail.linaria.css +4 -4
  63. package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/OrderTotals.linaria.css +1 -1
  64. package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ShippingPayment.linaria.css +1 -1
  65. package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderListPage.linaria.css +1 -1
  66. package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfileDeliveryAddresses.linaria.css +1 -1
  67. package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfilePage.linaria.css +4 -4
  68. package/.linaria-cache/packages/template-trend/src/components/NavigationTree/NavTree.linaria.css +2 -2
  69. package/.linaria-cache/packages/template-trend/src/components/Newsletter/NewsletterField.linaria.css +3 -3
  70. package/.linaria-cache/packages/template-trend/src/components/NotFoundPage.linaria.css +1 -1
  71. package/.linaria-cache/packages/template-trend/src/components/Pagination/Pagination.linaria.css +1 -1
  72. package/.linaria-cache/packages/template-trend/src/components/ProductList/AddToCart.linaria.css +1 -1
  73. package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourite.linaria.css +1 -1
  74. package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourites.linaria.css +2 -2
  75. package/.linaria-cache/packages/template-trend/src/components/ProductList/Product.linaria.css +2 -2
  76. package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/AddToCartForm.linaria.css +3 -3
  77. package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/ProductToast.linaria.css +9 -9
  78. package/.linaria-cache/packages/template-trend/src/components/ProductPage/Campaigns.linaria.css +2 -2
  79. package/.linaria-cache/packages/template-trend/src/components/ProductPage/ConfigurationSelector.linaria.css +1 -1
  80. package/.linaria-cache/packages/template-trend/src/components/ProductPage/Images/ImageContainer.linaria.css +1 -1
  81. package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/IncludedInPackages.linaria.css +1 -1
  82. package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProduct.linaria.css +2 -2
  83. package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProductItem.linaria.css +1 -1
  84. package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfo.linaria.css +3 -3
  85. package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfoAccordion.linaria.css +3 -3
  86. package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPage.linaria.css +1 -1
  87. package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPageLoadingState.linaria.css +3 -3
  88. package/.linaria-cache/packages/template-trend/src/components/ProductPage/RelatedProducts.linaria.css +1 -1
  89. package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/NotifyWhenBack.linaria.css +5 -5
  90. package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockOrb.linaria.css +1 -1
  91. package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockStatusIndicator.linaria.css +1 -1
  92. package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/WarehouseStock.linaria.css +2 -2
  93. package/.linaria-cache/packages/template-trend/src/components/ProductPage/VariantSelector.linaria.css +3 -3
  94. package/.linaria-cache/packages/template-trend/src/components/ProductPage/styledComponents.linaria.css +1 -1
  95. package/.linaria-cache/packages/template-trend/src/components/SearchPage/CategoryList.linaria.css +7 -0
  96. package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchMeta.linaria.css +1 -1
  97. package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchPage.linaria.css +3 -3
  98. package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchResults.linaria.css +3 -3
  99. package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchTerm.linaria.css +1 -1
  100. package/.linaria-cache/packages/template-trend/src/components/SearchPage/WindowedSearchResults.linaria.css +4 -4
  101. package/.linaria-cache/packages/template-trend/src/components/StartPage/CategoryList.linaria.css +6 -6
  102. package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/Row.linaria.css +3 -3
  103. package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCampaign.linaria.css +7 -7
  104. package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCategories.linaria.css +3 -3
  105. package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHTMLContent.linaria.css +1 -1
  106. package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHero.linaria.css +6 -6
  107. package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageProductGrid.linaria.css +2 -2
  108. package/.linaria-cache/packages/template-trend/src/components/StartPage/StartPage.linaria.css +2 -2
  109. package/.linaria-cache/packages/template-trend/src/components/Store/Store.linaria.css +1 -1
  110. package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreList.linaria.css +5 -5
  111. package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreLocator.linaria.css +5 -5
  112. package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMap.linaria.css +1 -1
  113. package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMarker.linaria.css +1 -1
  114. package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreSearch.linaria.css +1 -1
  115. package/.linaria-cache/packages/template-trend/src/components/StoreLocator/UserLocation.linaria.css +1 -1
  116. package/.linaria-cache/packages/template-trend/src/components/ui/Badge.linaria.css +1 -1
  117. package/.linaria-cache/packages/template-trend/src/components/ui/Button.linaria.css +3 -3
  118. package/.linaria-cache/packages/template-trend/src/components/ui/CloseButton.linaria.css +1 -1
  119. package/.linaria-cache/packages/template-trend/src/components/ui/Headings.linaria.css +2 -2
  120. package/.linaria-cache/packages/template-trend/src/components/ui/Spinner.linaria.css +1 -1
  121. package/.linaria-cache/packages/ui/Breadcrumbs/Breadcrumbs.linaria.css +2 -2
  122. package/.linaria-cache/packages/ui/Button/Button.linaria.css +2 -2
  123. package/.linaria-cache/packages/ui/Button/SecondaryButton.linaria.css +1 -1
  124. package/.linaria-cache/packages/ui/Button/TrendButton.linaria.css +1 -1
  125. package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelector.linaria.css +1 -1
  126. package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelectorButtons.linaria.css +2 -2
  127. package/.linaria-cache/packages/ui/ChannelSelector/LargeSelector.linaria.css +1 -1
  128. package/.linaria-cache/packages/ui/ChannelSelector/MiniSelector.linaria.css +1 -1
  129. package/.linaria-cache/packages/ui/ChannelSelector/Region.linaria.css +3 -0
  130. package/.linaria-cache/packages/ui/Checkbox/Checkbox.linaria.css +4 -4
  131. package/.linaria-cache/packages/ui/Checkbox/CheckboxGroup.linaria.css +2 -2
  132. package/.linaria-cache/packages/ui/DropdownMenu/DropdownMenu.linaria.css +2 -2
  133. package/.linaria-cache/packages/ui/ErrorBoundary/Generic.linaria.css +1 -1
  134. package/.linaria-cache/packages/ui/Gallery/Gallery.linaria.css +2 -2
  135. package/.linaria-cache/packages/ui/JetshopText.linaria.css +1 -1
  136. package/.linaria-cache/packages/ui/Loading/LoadingBar.linaria.css +2 -2
  137. package/.linaria-cache/packages/ui/Modal/Drawer/Drawer.linaria.css +1 -1
  138. package/.linaria-cache/packages/ui/Modal/ModalRoot.linaria.css +1 -1
  139. package/.linaria-cache/packages/ui/Modal/TargetWrapper.linaria.css +1 -1
  140. package/.linaria-cache/packages/ui/Pagination/Pagination.linaria.css +1 -1
  141. package/.linaria-cache/packages/ui/PreOrderDateSelector/PreOrderDateSelector.linaria.css +1 -1
  142. package/.linaria-cache/packages/ui/Price/Price.linaria.css +1 -1
  143. package/.linaria-cache/packages/ui/ProductList/Badges.linaria.css +7 -7
  144. package/.linaria-cache/packages/ui/ProductSpecifications/ProductSpecifications.linaria.css +1 -1
  145. package/.linaria-cache/packages/ui/Search/SearchField.linaria.css +5 -5
  146. package/.linaria-cache/packages/ui/Search/SearchPage/SearchMeta.linaria.css +1 -1
  147. package/.linaria-cache/packages/ui/Select/Components.linaria.css +8 -8
  148. package/README.md +118 -1944
  149. package/cypress/integration/essentials.spec.js +50 -0
  150. package/package.json +5 -5
  151. package/schema.graphql +22 -8
  152. package/src/components/Auth/ForgotPassword.js +3 -8
  153. package/src/components/Auth/README.md +5 -0
  154. package/src/components/Cart/CartButton.js +40 -44
  155. package/src/components/Cart/CartFlyout.js +8 -5
  156. package/src/components/Cart/CartItem.js +12 -15
  157. package/src/components/Cart/{addMultipleToCart.gql → queries/addMultipleToCart.gql} +1 -1
  158. package/src/components/Cart/{addToCart.gql → queries/addToCart.gql} +1 -1
  159. package/src/components/Cart/{CartFragment.gql → queries/cartFragment.gql} +9 -0
  160. package/src/components/Cart/{CartQuery.gql → queries/cartQuery.gql} +1 -1
  161. package/src/components/Cart/{decrementQuantity.gql → queries/decrementQuantity.gql} +1 -1
  162. package/src/components/Cart/{incrementQuantity.gql → queries/incrementQuantity.gql} +1 -1
  163. package/src/components/Cart/{removeFromCart.gql → queries/removeFromCart.gql} +1 -1
  164. package/src/components/CategoryPage/CategoryPage.js +1 -0
  165. package/src/components/CategoryPage/Filters/ListFilters.js +1 -2
  166. package/src/components/CategoryPage/ProductCard.js +2 -0
  167. package/src/components/CategoryPage/ProductGrid.js +5 -0
  168. package/src/components/CategoryPage/ProductGridFragment.gql +8 -0
  169. package/src/components/CategoryPage/ProductGridWindow.js +19 -12
  170. package/src/components/CategoryPage/README.md +11 -0
  171. package/src/components/CategoryPage/WindowedCategoryPage.js +6 -5
  172. package/src/components/Forms/Input.js +3 -6
  173. package/src/components/Layout/Header/ChannelSelector/ChannelSelector.js +3 -0
  174. package/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js +4 -3
  175. package/src/components/Layout/Header/ChannelSelector/Selector.js +2 -0
  176. package/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js +3 -1
  177. package/src/components/Layout/Header/TopNav.js +13 -11
  178. package/src/components/LogOut.loadable.js +10 -0
  179. package/src/components/MyPages/MyPagesSidebar.js +0 -1
  180. package/src/components/PreviewRoute.loadable.js +10 -0
  181. package/src/components/ProductList/AddToCart.js +8 -5
  182. package/src/components/ProductList/Favourite.js +2 -2
  183. package/src/components/ProductList/FavouriteCount.js +2 -2
  184. package/src/components/ProductList/Favourites.js +17 -12
  185. package/src/components/ProductList/Lister.js +44 -0
  186. package/src/components/ProductList/Product.js +5 -4
  187. package/src/components/ProductList/ProductLists.gql +33 -5
  188. package/src/components/ProductList/SelectVariant.js +6 -10
  189. package/src/components/ProductList/productListQueries.js +3 -0
  190. package/src/components/ProductPage/AddToCart/AddToCartForm.js +19 -18
  191. package/src/components/ProductPage/AddToCart/ProductToast.js +7 -4
  192. package/src/components/ProductPage/PackageProduct/PackageProduct.js +8 -6
  193. package/src/components/ProductPage/VariantSelector.js +1 -1
  194. package/src/components/{StartPage → SearchPage}/CategoryList.js +6 -4
  195. package/src/components/SearchPage/EmptySearchResults.js +1 -1
  196. package/src/components/Shop.js +52 -76
  197. package/src/components/StartPage/Content/Row.js +0 -37
  198. package/src/components/StartPage/Content/StartPageHero.js +9 -1
  199. package/src/components/StartPage/StartPage.js +0 -13
  200. package/src/components/StartPage/StartPageProductGridFragment.gql +8 -0
  201. package/.vscode/launch.json +0 -11
  202. package/cypress/constants.js +0 -5
  203. package/cypress/integration/addToCart/addToCart.spec.js +0 -27
  204. package/cypress/integration/addToCart/disabledVariations.spec.js +0 -17
  205. package/cypress/integration/addToCart/newslettersubscriber.spec.js +0 -24
  206. package/cypress/integration/addToCart/notifyWhenBackInStock.spec.js +0 -20
  207. package/cypress/integration/addToCart/productConfigurations.spec.js +0 -35
  208. package/cypress/integration/addToCart/productVariations.spec.js +0 -42
  209. package/cypress/integration/addToCart/sizePriceChange.spec.js +0 -20
  210. package/cypress/integration/analytics/gtag.spec.js +0 -90
  211. package/cypress/integration/analytics/releware.spec.js +0 -95
  212. package/cypress/integration/auth/login.spec.js +0 -18
  213. package/cypress/integration/auth/signup.spec.js +0 -98
  214. package/cypress/integration/category_page_spec.js +0 -73
  215. package/cypress/integration/filters.spec.js +0 -103
  216. package/cypress/integration/getbyarticlenumber.spec.js +0 -28
  217. package/cypress/integration/packages.spec.js +0 -85
  218. package/cypress/integration/prefetch_headers_spec.js +0 -26
  219. package/cypress/integration/product_browsing_spec.js +0 -17
  220. package/cypress/integration/search/autocomplete.spec.js +0 -28
  221. package/cypress/integration/search/search_page.spec.js +0 -39
  222. package/cypress/integration/ssr/categorySSR.js +0 -9
  223. package/cypress/integration/ssr/productSSR.js +0 -9
  224. package/cypress/integration/ssr/startPageSSR.js +0 -5
  225. package/cypress/integration/start_page_spec.js +0 -5
  226. package/cypress/integration/stores_page.spec.js +0 -5
  227. package/src/components/StartPage/Campaign.js +0 -162
  228. package/src/components/StartPage/CampaignHeader.js +0 -101
  229. package/src/components/StartPage/ExtraDetails.js +0 -72
  230. package/src/components/StartPage/Readme.md +0 -88
  231. package/src/components/StartPage/campaign.json +0 -20
  232. package/src/components/StartPage/campaignHeader.json +0 -5
  233. package/src/components/StartPage/categoryList.json +0 -65
  234. package/src/components/StartPage/extraDetails.json +0 -6
  235. package/src/components/StartPage/title.json +0 -3
@@ -1,162 +0,0 @@
1
- import React from 'react';
2
- import { styled } from 'linaria/react';
3
- import { theme } from '../Theme';
4
-
5
- import Image from '@jetshop/ui/Image';
6
- import { MainSectionWrapper } from './StartPage';
7
- import { TrendLink } from '../ui/Button';
8
-
9
- const Container = styled('div')`
10
- margin-bottom: 24px;
11
- `;
12
- const DescriptionBlock = styled('div')`
13
- line-height: 1.25;
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- flex-direction: column;
18
-
19
- padding: 24px;
20
-
21
- ${theme.above.sm} {
22
- max-width: 60vw;
23
- padding: 32px;
24
- }
25
- ${theme.above.md} {
26
- max-width: 50vw;
27
- padding: 48px;
28
- }
29
- `;
30
-
31
- const Row = styled('div')`
32
- display: flex;
33
- flex-direction: row;
34
- align-items: stretch;
35
- justify-content: stretch;
36
- position: relative;
37
- margin-bottom: 1rem;
38
- ${theme.below.sm} {
39
- flex-direction: column;
40
- }
41
- `;
42
-
43
- const NewProductImage = styled('div')`
44
- width: 50%;
45
- ${theme.below.sm} {
46
- width: 100%;
47
- }
48
- `;
49
- const NewProductText = styled(DescriptionBlock)`
50
- width: 50%;
51
- ${theme.below.sm} {
52
- width: 100%;
53
- }
54
- `;
55
- const News = styled('h3')`
56
- font-size: 60px;
57
- text-align: center;
58
- margin-bottom: 32px;
59
- ${theme.below.sm} {
60
- margin-bottom: 24px;
61
- }
62
- `;
63
- const SubtitleText = styled('p')`
64
- color: black;
65
- max-width: 420px;
66
- font-size: 30px;
67
- text-align: center;
68
- margin-bottom: 32px;
69
- ${theme.below.sm} {
70
- font-size: 22px;
71
- margin-bottom: 24px;
72
- }
73
- `;
74
-
75
- const AmbassadorImage = styled('div')`
76
- width: 50%;
77
-
78
- ${theme.below.sm} {
79
- width: 100%;
80
- }
81
- `;
82
- const AmbassadorText = styled(DescriptionBlock)`
83
- background-color: #000000;
84
- width: 50%;
85
- color: white;
86
- ${theme.below.sm} {
87
- width: 100%;
88
- }
89
- `;
90
- const Ambassadors = styled('h3')`
91
- margin-bottom: 32px;
92
- color: #ffffff;
93
- font-size: 40px;
94
- ${theme.below.sm} {
95
- margin-bottom: 24px;
96
- }
97
- `;
98
- const LearnMore = styled('p')`
99
- color: white;
100
- font-size: 22px;
101
- font-weight: bold;
102
- margin-bottom: 32px;
103
- text-align: center;
104
- width: 360px;
105
-
106
- ${theme.below.sm} {
107
- font-size: 18px;
108
- margin-bottom: 24px;
109
- width: auto;
110
- }
111
- `;
112
- const GetInspiredButton = styled(TrendLink)`
113
- margin: 4px;
114
- width: 100%;
115
- max-width: 300px;
116
- `;
117
-
118
- const FirstImage = ({ src }) => (
119
- <NewProductImage>
120
- <Image src={src} aspect="4:5" cover sizes={[1, 1 / 2]} quality={80} />
121
- </NewProductImage>
122
- );
123
- const FirstSquare = ({ mainText, subtitleText, buttonText, buttonUrl }) => (
124
- <NewProductText>
125
- <News>{mainText}</News>
126
- <SubtitleText>{subtitleText}</SubtitleText>
127
- <GetInspiredButton to={buttonUrl || '/'}>{buttonText}</GetInspiredButton>
128
- </NewProductText>
129
- );
130
-
131
- const SecondImage = ({ src }) => (
132
- <AmbassadorImage>
133
- <Image src={src} aspect="5:4" cover sizes={[1, 1 / 2]} quality={80} />
134
- </AmbassadorImage>
135
- );
136
-
137
- const SecondSquare = ({ mainText, subtitleText, buttonText, buttonUrl }) => (
138
- <AmbassadorText>
139
- <Ambassadors>{mainText}</Ambassadors>
140
- <LearnMore>{subtitleText}</LearnMore>
141
- <GetInspiredButton to={buttonUrl || '/'}>{buttonText}</GetInspiredButton>
142
- </AmbassadorText>
143
- );
144
-
145
- const Campaign = ({ firstImage, firstSquare, secondImage, secondSquare }) => {
146
- return (
147
- <MainSectionWrapper>
148
- <Container>
149
- <Row>
150
- <FirstImage {...firstImage} />
151
- <FirstSquare {...firstSquare} />
152
- </Row>
153
- <Row>
154
- <SecondSquare {...secondSquare} />
155
- <SecondImage {...secondImage} />
156
- </Row>
157
- </Container>
158
- </MainSectionWrapper>
159
- );
160
- };
161
-
162
- export default Campaign;
@@ -1,101 +0,0 @@
1
- import React from 'react';
2
- import { styled } from 'linaria/react';
3
- import { css } from 'linaria';
4
- import MaxWidth from '../Layout/MaxWidth';
5
- import { theme } from '../Theme';
6
- import Image from '@jetshop/ui/Image';
7
- import { TrendLink } from '../ui/Button';
8
-
9
- const Background = styled('div')`
10
- background-color: #000000;
11
- width: 100%;
12
- margin-bottom: 32px;
13
-
14
- display: flex;
15
- flex: 1 1 50vh;
16
- height: 100%;
17
- min-height: 360px;
18
- `;
19
-
20
- const Content = styled(MaxWidth)``;
21
- const heroStyles = css`
22
- height: 100%;
23
- background-size: cover;
24
- background-position: 50% 25%;
25
-
26
- ${theme.above.lg} {
27
- margin: 0 -2rem;
28
- }
29
- `;
30
-
31
- const Overlay = styled('div')`
32
- display: flex;
33
- width: 100%;
34
- height: 100%;
35
- flex-direction: column;
36
- padding: 1.5rem;
37
- color: white;
38
- align-items: center;
39
- ${theme.below.sm} {
40
- padding: 8px;
41
- }
42
-
43
- ${theme.above.lg} {
44
- padding-left: 3.5rem;
45
- padding-right: 3.5rem;
46
-
47
- background: linear-gradient(
48
- to right,
49
- #000,
50
- rgba(0, 0, 0, 0) 10%,
51
- rgba(0, 0, 0, 0) 90%,
52
- #000
53
- );
54
- }
55
- `;
56
-
57
- const CampaignText = styled('h2')`
58
- font-size: 5rem;
59
- max-width: 50rem;
60
- margin-top: auto;
61
- font-family: 'Source Sans Pro';
62
- font-style: normal;
63
- font-weight: bold;
64
- line-height: 105px;
65
- font-size: 76px;
66
- text-align: center;
67
-
68
- ${theme.below.sm} {
69
- font-size: 2.875rem;
70
- max-width: 100;
71
- text-align: center;
72
- }
73
- `;
74
-
75
- const HeaderButton = styled(TrendLink)`
76
- margin: 2.5rem 0;
77
- width: 14rem;
78
- font-size: 1rem;
79
- text-transform: uppercase;
80
- `;
81
-
82
- export default ({ imageSrc, text, buttonText, buttonUrl }) => {
83
- return (
84
- <Background>
85
- <Content>
86
- <Image
87
- src={imageSrc}
88
- aspect={null}
89
- cover={true}
90
- quality={80}
91
- className={heroStyles}
92
- >
93
- <Overlay>
94
- <CampaignText>{text}</CampaignText>
95
- <HeaderButton to={buttonUrl || '/'}>{buttonText}</HeaderButton>
96
- </Overlay>
97
- </Image>
98
- </Content>
99
- </Background>
100
- );
101
- };
@@ -1,72 +0,0 @@
1
- import React from 'react';
2
- import { styled } from 'linaria/react';
3
- import MaxWidth from '../Layout/MaxWidth';
4
- import { theme } from '../Theme';
5
-
6
- const ExtraDetailsWrapper = styled('div')`
7
- background-color: #f7f7f7;
8
- width: 100%;
9
-
10
- ${theme.below.md} {
11
- margin-bottom: 2rem;
12
- }
13
- `;
14
-
15
- const MainContentWrapper = styled('div')`
16
- display: flex;
17
- justify-content: space-around;
18
- padding: 3rem 0;
19
-
20
- ${theme.below.sm} {
21
- flex-wrap: wrap;
22
- align-items: flex-start;
23
- padding: 1.5rem 0.5rem;
24
- height: auto;
25
- }
26
- `;
27
-
28
- const IconTextWrapper = styled('div')`
29
- width: 160px;
30
- display: flex;
31
- flex-direction: column;
32
- align-items: center;
33
- justify-content: flex-start;
34
- text-align: center;
35
- line-height: 18px;
36
- font-size: 14px;
37
-
38
- > svg {
39
- height: 32px;
40
- margin-bottom: 16px;
41
- }
42
-
43
- ${theme.below.sm} {
44
- width: 50%;
45
- padding: 1rem 0.5rem;
46
- }
47
- `;
48
-
49
- const ExtraDetails = ({ deliveryText, heartText, paymentText, giftText }) => {
50
- return (
51
- <ExtraDetailsWrapper>
52
- <MaxWidth>
53
- <MainContentWrapper>
54
- <IconTextWrapper>
55
- <p>{deliveryText}</p>
56
- </IconTextWrapper>
57
- <IconTextWrapper>
58
- <p>{heartText}</p>
59
- </IconTextWrapper>
60
- <IconTextWrapper>
61
- <p>{paymentText}</p>
62
- </IconTextWrapper>
63
- <IconTextWrapper>
64
- <p>{giftText}</p>
65
- </IconTextWrapper>
66
- </MainContentWrapper>
67
- </MaxWidth>
68
- </ExtraDetailsWrapper>
69
- );
70
- };
71
-
72
- export default ExtraDetails;
@@ -1,88 +0,0 @@
1
- # Northern Spirit Start Page
2
-
3
- In this folder you will find several start page components wih their associated JSON files. To learn how to work with these components please read the Start Page documentation [here](docs.jesthop.tech/#startpagerenderer)
4
-
5
- ## Ambassador List
6
-
7
- Renders a black box with a list of ambassadors. See ambassadors.json for an example
8
-
9
- ### Properties
10
-
11
- - listTitle: Title of the ambassadors list. Appears on the top
12
- - ambassadors: Array of names
13
- - buttonText: Text to go on the call to action button
14
- - url: relative url to go to when the button is clicked
15
-
16
- ## Campaign
17
-
18
- Renders 2 images and 2 Campaign boxes with text and a CTA button
19
-
20
- ### Properties
21
-
22
- - firstImage: First Image has only one property
23
- - src: Url for the top left image to be rendered
24
- - firstSquare: First Square has four properties
25
- - mainText: The largest text in the square
26
- - subtitleText: Text that appears below the mainText
27
- - buttonText: Text that appears on the button in this square
28
- - buttonUrl: relative url to go to when the button is clicked
29
- - secondImage: First Image has only one property
30
- - src: Url for the top left image to be rendered
31
- - secondSquare: First Square has four properties
32
- - mainText: The largest text in the square
33
- - subtitleText: Text that appears below the mainText
34
- - buttonText: Text that appears on the button in this square
35
- - buttonUrl: relative url to go to when the button is clicked
36
-
37
- ## Campaign Header
38
-
39
- Renders a large full width Campaign image with text
40
-
41
- ### Properties
42
-
43
- - text: Text to show in large font on the campaign header
44
- - buttonText: Text to go on the call to action button
45
- - buttonUrl: relative url to go to when the button is clicked
46
-
47
- ## Category List
48
-
49
- Renders a list of categories with a title
50
-
51
- ### Properties
52
-
53
- - title: Text to render for the title of this list of categories
54
- - categories: Array of Category objects
55
- - Category Object:
56
- - name: Name of the Category
57
- - images: Array of images. Currently only the first image will be used
58
- - url: url for the image of the category
59
- - primaryRoute: Object containing a path
60
- - path: Path for this category
61
- - id: Id of the category
62
-
63
- ## Extra Details
64
-
65
- Component that shows some text underneath icons
66
-
67
- ### Properties
68
-
69
- - deliveryText: Text to go under the delivery icon
70
- - heartText: Text to go under the heart icon
71
- - paymentText: Text to go under the credit card icon
72
- - giftText: Text to go under the gift icon
73
-
74
- ## Title
75
-
76
- A simple title component
77
-
78
- ### Properties
79
-
80
- - text: text to render
81
-
82
- ## Feed
83
-
84
- Renders the instagram feed
85
-
86
- ### Properties
87
-
88
- - title: Title to render before the instagram feed
@@ -1,20 +0,0 @@
1
- {
2
- "firstImage": {
3
- "src": "/pub_docs/files/Custom_Item_Images/brand-photo-1.jpeg"
4
- },
5
- "firstSquare": {
6
- "mainText": "NEWS!",
7
- "subtitleText": "Muscle tanks, tights, bras, shorts and hoodies",
8
- "buttonText": "Shop new products",
9
- "buttonUrl": "/news"
10
- },
11
- "secondImage": {
12
- "src": "/pub_docs/files/Custom_Item_Images/brand-photo-2.jpeg"
13
- },
14
- "secondSquare": {
15
- "mainText": "Ambassadors",
16
- "subtitleText": "Learn more about the ambassadors of Northern Spirit",
17
- "buttonText": "Get Inspired",
18
- "buttonUrl": "/ambassadors"
19
- }
20
- }
@@ -1,5 +0,0 @@
1
- {
2
- "text": "NEW MUSCLE TANKS",
3
- "buttonText": "Shop Now",
4
- "buttonUrl": "/"
5
- }
@@ -1,65 +0,0 @@
1
- {
2
- "title": "SHOP BY CATEGORY",
3
- "categories": [
4
- {
5
- "name": "News!",
6
- "images": [
7
- {
8
- "url": "/pub_docs/files/Custom_Item_Images/news.jpeg"
9
- }
10
- ],
11
- "primaryRoute": {
12
- "path": "/news"
13
- },
14
- "id": 159
15
- },
16
- {
17
- "name": "Tights",
18
- "images": [
19
- {
20
- "url": "/pub_docs/files/Custom_Item_Images/tights.jpeg"
21
- }
22
- ],
23
- "primaryRoute": {
24
- "path": "/ladies/tights"
25
- },
26
- "id": 181
27
- },
28
- {
29
- "name": "Long Sleves",
30
- "images": [
31
- {
32
- "url": "/pub_docs/files/Custom_Item_Images/long-sleves.jpeg"
33
- }
34
- ],
35
- "primaryRoute": {
36
- "path": "/ladies/womens-longsleeve"
37
- },
38
- "id": 218
39
- },
40
- {
41
- "name": "T-Shirts",
42
- "images": [
43
- {
44
- "url": "/pub_docs/files/Custom_Item_Images/t-shirts.jpeg"
45
- }
46
- ],
47
- "primaryRoute": {
48
- "path": "/ladies/t-shirts"
49
- },
50
- "id": 177
51
- },
52
- {
53
- "name": "Hoodies & SweatShirts",
54
- "images": [
55
- {
56
- "url": "/pub_docs/files/Custom_Item_Images/hoodies.jpeg"
57
- }
58
- ],
59
- "primaryRoute": {
60
- "path": "/ladies/hoodies-sweatshirts"
61
- },
62
- "id": 184
63
- }
64
- ]
65
- }
@@ -1,6 +0,0 @@
1
- {
2
- "deliveryText": "Express delivery in Sweden 1–3 days",
3
- "heartText": "Designed with love for the people in the box",
4
- "paymentText": "Safe payment with Klarna",
5
- "giftText": "Make someone happy with a gift voucher"
6
- }
@@ -1,3 +0,0 @@
1
- {
2
- "text": "Chosen For You"
3
- }