Commit Graph

418 Commits

Author SHA1 Message Date
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
dc4eaca312 Revert and fix location page styling (woops)
Forgot that one! 🫢
2022-06-23 20:08:10 +02:00
c66fe85879 Add Analytics 2022-06-23 19:07:31 +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
deb0c1d708 Remove lazy loading on location illustration 2022-06-20 16:39:19 +02:00
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
2831600f57 Return destructured data only if existing on layout 2022-06-14 11:58:54 +02:00
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
0272e7ed18 Various fixes for Location page 2022-06-13 18:30:42 +02:00
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
157b50f36c Use House component 2022-06-13 15:59:34 +02:00
b7a857e2e6 🔥 Get 11 random published photos on the Homepage collage
Thanks to Directus help, this works!
Concept: fetch all published photos IDs only, get 11 random items and query these 11 IDs
Only 2 queries, one for the IDs and one for the photos
2022-06-13 15:53:42 +02:00
cfd6173baf Rename getRandomElement function to getRandomItem 2022-06-13 15:26:53 +02:00
622e304efa Store previous page globally from beforeNavigate 2022-06-13 14:21:23 +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
152961996d Get rid of stuff 2022-06-07 16:51:45 +02:00
29cb3a30ba Add error page on Shop 2022-06-07 16:36:39 +02:00
29165717fc Rename Shop and Newsletter modules files 2022-06-07 16:36:08 +02:00
bd8c4e590f Add types to Swell route api 2022-06-07 14:55:20 +02:00
ce25f9314b Add global error page 2022-06-07 14:55:05 +02:00
218676b9ca Add rotating images to Shop module 2022-06-01 20:11:11 +02:00
9ac9301540 Cleanup GraphQL query and add types 2022-06-01 20:10:59 +02:00
e1d9e0bd50 Switch subscribe query to page endpoint 2022-06-01 00:44:34 +02:00
ecc051a439 Update Homepage query
Filter published photos only
2022-05-31 18:34:07 +02:00
d87ec1835a Remove unused global photos count 2022-05-30 22:07:20 +02:00
1126c1f76c Add SEO on some pages 2022-05-30 21:57:25 +02:00
d3f74be59e Run page animations onMount instead of browser 2022-05-30 21:57:04 +02:00
7a165721d9 [chore] Switch rest of page endpoints 2022-05-30 21:54:43 +02:00
c406278baf [chore] Switch Homepage and Photos to page endpoints 2022-05-30 20:47:31 +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
f178f504c9 Show only published linked location on credits 2022-03-21 18:45:59 +01:00
8047ffe034 Isolate Homepage collage component and add hover effect on other photos 2022-03-21 11:03:05 +01:00
482b62da0e Re-implement close state to Globe marker 2022-03-01 12:48:10 +01:00
bfe6a9cd8a Fix Homepage transition 2022-02-16 19:48:08 +01:00
1344f25092 Only use Month and Year for photo date 2022-01-31 19:04:45 +01:00
9e3a3be60b Use Switcher links from API and animate component 2022-01-24 22:19:25 +01:00
1a37a7d5b8 Update npm packages and code for newest SvelteKit updates 2022-01-24 22:18:09 +01:00
2ec810b932 Misc fixes 2022-01-18 17:05:11 +01:00
088e2454bc Add moving earth icon and Fix icons/buttons 2022-01-18 17:04:07 +01:00
cffef1835f Fix Page transitions by using a hacky FOUC trick
Seems to work though!
2022-01-18 14:22:38 +01:00
729138cffb [chore] Update npm packages and fix errors/run migrations 2022-01-03 20:12:22 +01:00
551991d407 Fix accessibility issues 2021-12-15 22:31:49 +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