Commit Graph

68 Commits

Author SHA1 Message Date
719c7b6f87 Pass parameters to Swell fetch function 2022-09-18 21:48:41 +02:00
e01ba0d6c6 Create reusable Swell fetch functions 2022-09-18 19:57:19 +02:00
3ca8ed0d06 Use base64 library to encode basic auth 🤦
Buffer being not enabled on Vercel Edge Functions
2022-09-18 18:55:28 +02:00
c7b67b909c Use Swell REST API for fetching products 2022-09-18 17:10:06 +02:00
2393d28597 Fix Shop fetching on server side? 2022-09-18 12:52:48 +02:00
b66db25942 🚧 Switch to swell-js to handle Shop cart
swell-node was relying too much on Node packages like crypto or events to be used with Cloudflare Pages or Vercel Edge Functions
2022-09-18 12:14:43 +02:00
fd5d20422f Update metas 2022-09-13 10:25:43 +02:00
e9fa0d3532 Rename Shop header component to fit new Banner 2022-09-07 23:17:36 +02:00
945d7f09d7 Add any types for getContext data 2022-09-01 10:57:45 +02:00
ec2d27f62c Fix current location in switcher on Product page 2022-08-26 10:03:09 +02:00
0e6aaaa4e2 Make GraphQL queries more compact 2022-08-16 21:17:14 +02:00
52e0407700 Why an error again…? 2022-08-16 20:48:01 +02:00
42e9029da8 Switch back to VITE env variable for API token
Can't find a way around… but this works!
2022-08-16 20:40:57 +02:00
4a79015ec4 Remove errors on pages 2022-08-16 20:32:14 +02:00
93a50770d0 Move API fetch data to different file
Sharing multiple exportable functions in one file impacts the use of private env variables 🤷
2022-08-16 20:00:52 +02:00
5e5c08ddd1 🚧 Migrate to new SvelteKit routing system
A bit annoying but for the best I guess?
2022-08-16 15:54:15 +02:00
bb9eafc358 Remove Shop about field from data query 2022-08-03 12:49:42 +02:00
56118d611d Rename methods to match HTTP requests 2022-07-15 20:44:06 +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
6d4224abea Use global value to check for current Shop product
Also add other stores types to hint on expected values
2022-06-22 23:20:52 +02:00
f0173bb828 Remove unused code and refactor types importing 2022-06-22 23:16:34 +02:00
cfd6173baf Rename getRandomElement function to getRandomItem 2022-06-13 15:26:53 +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
29cb3a30ba Add error page on Shop 2022-06-07 16:36:39 +02:00
d3f74be59e Run page animations onMount instead of browser 2022-05-30 21:57:04 +02:00
7b43e50b6c Change default font weight and Fix copy 2022-05-21 00:04:04 +02:00
bf8b2f3ff3 Update Shop intro and poster layout 2022-05-20 23:21:24 +02:00
7a6046c0c4 Remove About section on Shop 2022-05-20 22:30:11 +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