Commit Graph

42 Commits

Author SHA1 Message Date
bb9eafc358 Remove Shop about field from data query 2022-08-03 12:49:42 +02:00
cdabe6935b 🔥 Huge style refactoring by using SvelteKit built-in style tag
It's been tricky but got there finally! Hello `:global`
- Avoid using one global CSS file containing everything
- Import the component SCSS file in a script tag from the component file to allow style scoping and including it only when used
2022-06-22 23:26:00 +02:00
565c1c2be9 Cleanup some (unused) code 2022-06-22 23:22:16 +02:00
3bd7061cd2 Rework Shop pages and switch to page endpoints
- Create ShopHeader component to reuse on pages
- Use page endpoints to query data from API and Swell
- Remove use of `stuff`
2022-06-07 16:58:57 +02:00
2ec810b932 Misc fixes 2022-01-18 17:05:11 +01:00
729138cffb [chore] Update npm packages and fix errors/run migrations 2022-01-03 20:12:22 +01:00
82f5dd4727 [wip] Rework Shop
- Change strategy for content fetching
- Add a route per page instead of using __layout for all
- Change the behaviors of the posters section (add a carousel on small screens)
- Change Poster buttons styling and make interactions only for desktop
2021-12-14 23:23:12 +01:00
06db598b90 Use PageTransition component on every route
- Scrolls back to top when mounting new page with a timeout of the delay
- Rename photo Viewer class
- Change Shop posters section text from p to label
2021-12-07 21:58:17 +01:00
f15a2f2e47 Add entering transition on Shop and fix some styling
- Center intro title vertically
- Cart item styling tweaks
- Add cart button quantity label inside of button so it's clickable
2021-12-06 22:14:02 +01:00
8728d0f834 Fix again the Shop has_poster checking using true
Directus 9.2.0 uses booleans again now
2021-12-06 15:06:19 +01:00
f8fe141505 Use page transition component to avoid repetition on main 2021-11-30 00:23:36 +01:00
cf1ba3efec [temp] Fix Shop locations with poster only
Boolean considered as 0/1 now? Directus bug (https://github.com/directus/directus/issues/10065)
2021-11-28 23:13:04 +01:00
7169faa3aa Fix getRandomElement function
Now return an array item instead of an index
2021-11-28 23:06:22 +01:00
8b4070aeb2 🐛 Setup page transitions
Bugged for some reason, the old page stays before the new page loading at the end
2021-11-17 21:54:22 +01:00
ac40eedb2f Use sveltekit:noscroll/prefetch on internal links 2021-11-17 19:25:59 +01:00
bcc03459c6 Filter posters and locations by published 2021-11-16 10:44:48 +01:00
b0e4351b05 Fix Shop product data finding
Use location slug from API product
2021-11-10 23:10:18 +01:00
f1be0b719e Fix Cart issue by using PosterLayout on each shop page and not layout 2021-11-09 22:41:36 +01:00
11ff9291d2 Destructure Shop stylesheets 2021-11-08 14:37:16 +01:00
27daa26fd9 Cleanup Shop layout 2021-11-08 14:03:21 +01:00
f133c00522 Change Shop About section layout 2021-11-08 14:03:00 +01:00
75f3e5f1d1 Get a category of products from Swell 2021-11-08 13:53:06 +01:00
7242027be9 Fix Shop intro responsive 2021-11-07 23:12:48 +01:00
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
3198fd8545 Move Shop store into separate file 2021-11-07 22:38:23 +01:00
e1c259164f Show a notification when adding a product to Cart 2021-11-07 20:18:19 +01:00
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
a3ead40a6d Cleanup shop 2021-11-07 11:59:14 +01:00
910d973678 Reveal Shop header when scrolling past Intro block 2021-11-07 11:53:48 +01:00
d087a58f36 Change Cart button naming 2021-11-07 11:53:48 +01:00
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
60f2ee526d Reveal Shop header when scrolling past Intro block 2021-11-07 11:47:51 +01:00
460fe9420c Create notification for cart 2021-11-05 22:40:15 +01:00
35ba7f7c63 Change Cart button naming 2021-11-05 17:52:28 +01:00
b8d1d6334c Add Cart button and opening/closing transition 2021-11-05 12:45:30 +01:00
e7bfc6fc52 Add Nav to shop page for cart and shop city 2021-11-04 16:05:39 +01:00
cb175073d0 Add new variants for cart buttons 2021-11-04 16:05:39 +01:00
50835fa6f6 Create Aside for Cart
With Poster Cart component
2021-11-04 16:05:39 +01:00
439cdaee98 Add Poster image from Shop page 2021-11-03 22:01:38 +01:00
230a5568e8 Check if location has a poster on Shop 2021-11-03 22:01:21 +01:00
99fe09c4fd Add data to Shop page 2021-10-31 19:38:08 +01:00
e3fcfacdbe Add some data on Shop page 2021-10-29 23:47:40 +02:00