Commit Graph

106 Commits

Author SHA1 Message Date
flayks 5545871c85 Use page specific stale-while-revalidate Cache-Control headers 2022-09-20 00:20:18 +02:00
flayks f38a8fcdc7 Store location last seen date to check for New label
Stores the last location's page seeing date in localStorage to hide the Location's new label in list, on top of the date limit
2022-09-14 11:35:06 +02:00
flayks 683edc05fc Fix button prefetch values and remove unused IO rootMargin 2022-09-14 10:29:37 +02:00
shelbykay fd5d20422f Update metas 2022-09-13 10:25:43 +02:00
flayks 3d7b859d12 Move API fields to file 2022-09-06 14:51:47 +02:00
flayks 7e46350106 Make Location page changing data reactive 2022-08-31 18:47:28 +02:00
flayks 1de3c717b2 Move data-sveltekit-* attributes to parent level when possible 2022-08-31 12:41:16 +02:00
flayks 3618414aa0 Update stuff regarding to latest SvelteKit updates 2022-08-30 09:21:13 +02:00
flayks 21dd85940b Update SvelteKit and breaking imports 2022-08-27 23:16:34 +02:00
flayks a43c6393df Kill a bug 🐛 Checking for /api/data to only load photos on client
Server would also load an api route, which… does not really exist
2022-08-16 21:40:43 +02:00
flayks 0e6aaaa4e2 Make GraphQL queries more compact 2022-08-16 21:17:14 +02:00
flayks 52e0407700 Why an error again…? 2022-08-16 20:48:01 +02:00
flayks 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
flayks 4a79015ec4 Remove errors on pages 2022-08-16 20:32:14 +02:00
flayks 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
flayks 6e904850aa 🚧 Migrate env variables to use internal SvelteKit system
Some API fetching function rewriting needed as privates cannot be included into public code
2022-08-16 16:58:57 +02:00
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 fa74e5bf7f Move get asset function into same API file 2022-08-14 19:21:49 +02:00
flayks f771a73b67 [wip] Switch from Anime to Motion One for page animations 2022-08-14 00:45:44 +02:00
flayks c91166d548 Use Svelte shorthand for CSS variables declaration 2022-08-01 21:00:08 +02:00
flayks 4880483933 Add acknowledgement part at end of page
Specifically for Australia or other location needing an acknowledgement
2022-07-31 01:04:24 +02:00
flayks 39c8f6dd14 Update error messages 2022-07-30 17:03:12 +02:00
flayks cc3ddb2148 Location page product is not mandatory 2022-07-30 16:29:25 +02:00
flayks 38deb96197 Return specific error message if location doesn't exist 2022-07-30 15:16:19 +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 6a7c4a0c75 Restrict location page access to matching country slug from param
Location page would be accessible if the country page param was set to anything else than the country it should be linked to from the data
2022-07-29 23:46:03 +02:00
flayks 56118d611d Rename methods to match HTTP requests 2022-07-15 20:44:06 +02:00
flayks 9328b9d879 Fix location page error and message style 2022-07-15 20:43:22 +02:00
flayks c0a1514c57 Fix random things 2022-07-07 14:16:09 +02:00
flayks 91c55b46cf Fix some accessibility issues on links and buttons 2022-06-27 13:57:54 +02:00
flayks c9053f9757 👀 Rework how House index is displayed
Use grids to place the index instead of position absolute
Add a condition if the index starts with 1 as it has a quite smaller width
2022-06-27 13:28:58 +02:00
flayks 453583c189 Add link to see map on House location 2022-06-27 11:31:44 +02:00
flayks ea7360cae4 Fix location page Of animation timing 2022-06-24 12:28:10 +02:00
flayks 3e13a86581 Handle inexistant location page 2022-06-24 12:26:56 +02:00
flayks dc4eaca312 Revert and fix location page styling (woops)
Forgot that one! 🫢
2022-06-23 20:08:10 +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 f0173bb828 Remove unused code and refactor types importing 2022-06-22 23:16:34 +02:00
flayks deb0c1d708 Remove lazy loading on location illustration 2022-06-20 16:39:19 +02:00
flayks 7d4899fa48 Keep original photos ratio if not 3/2 on Viewer
- Fix previousPage usage
- Fix entering animation timings and previous photo navigation
- Add fade transition on fullscreen viewer for mobile
- Display date only if existing
2022-06-14 23:14:12 +02:00
flayks d5b860da03 Rework Location page photos ratio and hover
Defines if the photo is under 3/2 by calculating ratio from width and height
2022-06-13 23:34:33 +02:00
flayks 0272e7ed18 Various fixes for Location page 2022-06-13 18:30:42 +02:00
flayks 615f7df4a1 Force 3/2 format for non landscape photos on Location page
Center image on a background when square, portrait or other ratio
- Fix MutuationObserver for using components (would think a component is an item)
2022-06-13 18:30:26 +02:00
flayks 157b50f36c Use House component 2022-06-13 15:59:34 +02:00
flayks 622e304efa Store previous page globally from beforeNavigate 2022-06-13 14:21:23 +02:00
flayks 29165717fc Rename Shop and Newsletter modules files 2022-06-07 16:36:08 +02:00
flayks d3f74be59e Run page animations onMount instead of browser 2022-05-30 21:57:04 +02:00
flayks 7a165721d9 [chore] Switch rest of page endpoints 2022-05-30 21:54:43 +02:00