Commit Graph

602 Commits

Author SHA1 Message Date
flayks 4b05186662 Fix Shop product location switcher path 2021-11-16 14:53:38 +01:00
flayks bcc03459c6 Filter posters and locations by published 2021-11-16 10:44:48 +01:00
flayks 5080fadd60 Create a new cart if current cart is not active/has been paid 2021-11-15 17:02:44 +01:00
flayks c9c028118b Cleanup code
- Remove unused props
- Add alt to icon on BoxCTA
2021-11-14 19:56:11 +01:00
flayks 8dd59e74d4 Check for illustration on location page 2021-11-14 19:52:46 +01:00
flayks b835d0f5f6 Add photo's city on Photo viewer 2021-11-14 19:52:30 +01:00
flayks cf6afd832e Add photo's city to Postcard on Photos grid 2021-11-14 19:51:58 +01:00
flayks db7307669d Change Discover text 2021-11-14 19:51:02 +01:00
flayks c0bd1ac516 🔥 Make the photo viewer completely working
Merci Grafikart 🙏
A whole bunch of headaches and challenges to load prev and next photos depending on the current one, while animating everything nicely.
Added lots of comments to document the logic and fetching.
2021-11-11 23:32:41 +01:00
flayks 7daf97ba1c Only aggregate photos/locations/countries that are published 2021-11-11 23:05:04 +01:00
flayks 52c1916c27 Rename Lerp function amount argument 2021-11-11 23:03:51 +01:00
flayks 57fa3304f0 Fix Location page description buttons font-size 2021-11-11 00:01:11 +01:00
flayks f7af2aa8f3 Add city to House info if existing 2021-11-10 23:55:48 +01:00
flayks a8b76e2702 Make buttons larger on medium screen 2021-11-10 23:11:00 +01:00
flayks b0e4351b05 Fix Shop product data finding
Use location slug from API product
2021-11-10 23:10:18 +01:00
flayks 17af949e8e Add Shop poster link on location page 2021-11-10 22:58:07 +01:00
flayks 73c9e80a21 Use SVG icons from global symbols
Allow to change color and avoid code duplication
2021-11-10 22:57:50 +01:00
flayks f1be0b719e Fix Cart issue by using PosterLayout on each shop page and not layout 2021-11-09 22:41:36 +01:00
flayks 0475e3f61e Go to new page when changing location on the Shop switcher 2021-11-08 14:37:36 +01:00
flayks 11ff9291d2 Destructure Shop stylesheets 2021-11-08 14:37:16 +01:00
flayks 27daa26fd9 Cleanup Shop layout 2021-11-08 14:03:21 +01:00
flayks f133c00522 Change Shop About section layout 2021-11-08 14:03:00 +01:00
flayks 75f3e5f1d1 Get a category of products from Swell 2021-11-08 13:53:06 +01:00
flayks 378a64f2b0 Add product to cart from anywhere
Make a global function that adds a product to the current cart
2021-11-08 13:00:31 +01:00
flayks 571f5d0a6d Use sveltekit:noscroll on Button link 2021-11-08 12:56:58 +01:00
flayks a88359c468 Fix pink light buttons 2021-11-08 12:14:53 +01:00
flayks 5141198167 Move functions to directory 2021-11-08 12:14:39 +01:00
flayks 7242027be9 Fix Shop intro responsive 2021-11-07 23:12:48 +01:00
flayks 5229105e5d Fix Cart checkout Button hover
It was disabled 🤦
2021-11-07 22:41:34 +01:00
flayks 84395e43e5 Make Cart scrollable for small screens 2021-11-07 22:41:02 +01:00
flayks 5923afed3b Make Shop location switcher a component using a global store
Using two switchers (one in the shop nav and the other in the cart) makes possible to have the switcher over the Cart overlay (over intro)
2021-11-07 22:40:52 +01:00
flayks 3198fd8545 Move Shop store into separate file 2021-11-07 22:38:23 +01:00
flayks f7457b5f8d 🔥 Finish Cart implementation
- Use Select component in CartItem to change quantity
- Visual update when removing or changing an item quantity
- API: Remove Cart item action
- API: Handle Cart item adding and updating (quantity)
2021-11-07 20:21:20 +01:00
flayks e1c259164f Show a notification when adding a product to Cart 2021-11-07 20:18:19 +01:00
flayks 03cc79da69 Add transition to ButtonCart quantity label 2021-11-07 20:08:45 +01:00
flayks ffc26877c8 Merge branch 'v2' into v2-shop
# Conflicts:
#	src/components/molecules/PosterCart.svelte
#	src/routes/shop/__layout.svelte
#	src/style/atoms/_button-circle.scss
#	src/style/organisms/_cart.scss
#	src/style/pages/_shop.scss
#	src/style/style.scss
2021-11-07 12:07:18 +01:00
flayks a3ead40a6d Cleanup shop 2021-11-07 11:59:14 +01:00
flayks f58db34e41 Add hover on purple ButtonCircle 2021-11-07 11:53:48 +01:00
flayks f88639a2e6 Define when Button url is external 2021-11-07 11:53:48 +01:00
flayks 910d973678 Reveal Shop header when scrolling past Intro block 2021-11-07 11:53:48 +01:00
flayks da58e09b21 [chore] Update npm packages 2021-11-07 11:53:48 +01:00
flayks d68353cf18 Change Cart button icon and size 2021-11-07 11:53:48 +01:00
flayks d087a58f36 Change Cart button naming 2021-11-07 11:53:48 +01:00
flayks f82505a54e Use an atom for the Cart button 2021-11-07 11:53:18 +01:00
flayks bd74f5612c [wip] 🔥 Integrate Swell into the shop
Create a custom and internal API for fetching and updating content to Swell Admin API (using swell-node)
2021-11-07 11:51:01 +01:00
flayks 2f043af38e Add hover on purple ButtonCircle 2021-11-07 11:48:16 +01:00
flayks 380cb3e7d4 Define when Button url is external 2021-11-07 11:48:01 +01:00
flayks 60f2ee526d Reveal Shop header when scrolling past Intro block 2021-11-07 11:47:51 +01:00
flayks 70c0165cf9 [chore] Update npm packages 2021-11-07 11:46:31 +01:00
flayks 8062987bb3 Change Cart button icon and size 2021-11-07 11:44:47 +01:00