Commit Graph

108 Commits

Author SHA1 Message Date
flayks 5e5c08ddd1 🚧 Migrate to new SvelteKit routing system
A bit annoying but for the best I guess?
2022-08-16 15:54:15 +02:00
flayks 57f1dca240 Remove unused code 2022-08-14 22:59:28 +02:00
flayks fd6fc20b13 Finish to replace Anime with Motion One for page animations
Page intro animation and reveal that has now been simplified as Motion One manages an inView option (that uses IntersectionObserver)
2022-08-14 20:24:28 +02:00
flayks f771a73b67 [wip] Switch from Anime to Motion One for page animations 2022-08-14 00:45:44 +02:00
flayks 4a83ade94b [wip] Create cropped version of Globe2?
Probably not ideal as the canvas is still bigger, mostly styling for now
2022-08-11 23:28:43 +02:00
flayks 8ac95dc6a9 [wip] Add option to enable markers on Globe2 2022-08-11 23:08:25 +02:00
flayks d5ae25a87b Push ShopModule button to bottom if it has no bottom text 2022-08-11 23:05:27 +02:00
flayks 2215b1329c Disconnect observers instead of unobserve 2022-08-02 00:07:17 +02:00
flayks 8584095f33 Change Shop module title level 2022-08-02 00:06:01 +02:00
flayks c91166d548 Use Svelte shorthand for CSS variables declaration 2022-08-01 21:00:08 +02:00
flayks b058963b79 Add Shop module at end of Location page
With linked poster if existing, otherwise with all products
2022-07-30 13:49:29 +02:00
flayks 31351ae095 Create props for ShopModule content
Allows to customize content if for a specific one for instance
2022-07-30 10:28:07 +02:00
flayks efb6183706 Fix Globe popin transition 2022-07-20 15:41:00 +02:00
flayks 6a66cdaf22 Use options parameters with types and default on smoothScroll function 2022-07-19 13:43:25 +02:00
flayks 978db8f76d Make cluster button more accessible 2022-07-19 12:37:02 +02:00
flayks fa056d0933 Update resize method and debounce it on component 2022-07-19 12:36:51 +02:00
flayks 543d2e5c8b Change locations anchor on Homepage 2022-07-19 11:55:16 +02:00
flayks a4176fed3b Update Globe and add comments 2022-07-19 11:54:50 +02:00
flayks 5d7d4896fe Filter empty continents directly in GraphQL query 2022-07-18 17:26:06 +02:00
flayks 4f274e52ce [WIP] Started new Globe from scratch using OGL 2022-07-16 18:55:47 +02:00
flayks 310f7e5a44 Show cross to active Locations continent and change buttons behaviours
Active filtered continent stays pink instead of using opacity on the other ones
2022-07-11 21:40:25 +02:00
flayks ae4ea7f4fa Use smooth scroll function to navigate to anchor
Using a eased RAF function to scroll to a specific target
Avoid using `scrollIntoView` or smooth behavior as it doesn't work on Safari and others.
2022-07-11 16:42:34 +02:00
flayks 120771efa1 Fix Shop issues
- Move ButtonCart from nav to position it on top right
- ButtonCart amount indicator position (center left => top left)
- Bring back updating label when changing cart (+ other transitions)
- Make ShopHeader picture gradient a bit bigger
2022-07-11 12:30:42 +02:00
flayks 18c2b1b16d Fix Globe appearing when changing page?!
Apparently the globe was running too early and would not show up from a page to another
Waiting for the page transition is helping
Thanks Baptiste!
2022-07-10 12:51:22 +02:00
flayks b46df04258 Fix Error page styles and ListCTAs 2022-06-24 12:03:51 +02:00
flayks a9869b72be Implement newsletter subscription form using API
Switch from SendInBlue to EmailOctopus for newsletter. Now uses their API through the form to handle subscription.
2022-06-23 20:10:55 +02:00
flayks 46fae80137 Fix alt tag on Shop module images and SEO for link 2022-06-22 23:41:35 +02:00
flayks 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
flayks 565c1c2be9 Cleanup some (unused) code 2022-06-22 23:22:16 +02:00
flayks 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
flayks f0173bb828 Remove unused code and refactor types importing 2022-06-22 23:16:34 +02:00
flayks 23b0035272 Fix current product detection on Shop location switcher select 2022-06-21 13:38:55 +02:00
flayks cfd6173baf Rename getRandomElement function to getRandomItem 2022-06-13 15:26:53 +02:00
flayks 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
flayks 29165717fc Rename Shop and Newsletter modules files 2022-06-07 16:36:08 +02:00
flayks 85aacf12e3 Code optimizations 2022-06-07 14:54:28 +02:00
flayks 218676b9ca Add rotating images to Shop module 2022-06-01 20:11:11 +02:00
flayks 758c3548d7 Change some $$props.class to shorthands 2022-05-31 10:10:41 +02:00
flayks c2dc2bf2fb [chore] Fix TS 2022-05-30 20:50:23 +02:00
flayks f417b80aab Disable lazyloaded images for Collage 2022-05-23 12:24:59 +02:00
flayks 91510df410 Fix Homepage collage's active photo effect while hover
- Change method and use a class on collage itself fading all photos, then highlight the one being hovered
- For some reason the content inside was conflicting the mouseenter event
2022-03-21 14:04:52 +01:00
flayks 21b5eefce2 Temp fix for carousels types 2022-03-21 13:42:14 +01:00
flayks 8047ffe034 Isolate Homepage collage component and add hover effect on other photos 2022-03-21 11:03:05 +01:00
flayks 482b62da0e Re-implement close state to Globe marker 2022-03-01 12:48:10 +01:00
flayks 551991d407 Fix accessibility issues 2021-12-15 22:31:49 +01:00
flayks 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
flayks ac03348349 Fix style and responsive issues 2021-12-14 23:19:46 +01:00
flayks 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
flayks e920a162f8 Add TS interface for location on Shop module 2021-12-06 15:05:23 +01:00
flayks 8ac954b1a2 Add tabindex to elements for better keyboard navigation 2021-12-06 15:03:41 +01:00