Commit Graph

1037 Commits

Author SHA1 Message Date
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 dc4eaca312 Revert and fix location page styling (woops)
Forgot that one! 🫢
2022-06-23 20:08:10 +02:00
flayks c66fe85879 Add Analytics 2022-06-23 19:07:31 +02:00
flayks aea65da747 Fix Subscribe page gap between Issues and globe margin 2022-06-23 14:26:17 +02:00
flayks b6af9a9a52 Fix ButtonCircle sizes? 2022-06-23 14:25:54 +02:00
flayks 46fae80137 Fix alt tag on Shop module images and SEO for link 2022-06-22 23:41:35 +02:00
flayks 13a77d1de7 Use PostCSS 2022-06-22 23:32:39 +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 4f81640b61 [chore] Update npm packages 2022-06-22 23:22:48 +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 255b00ab66 Add delay on SiteTitle reveal animation 2022-06-22 23:17:56 +02:00
flayks 33487cba5c Use svelte:element to avoid tag conditions 2022-06-22 23:17:37 +02:00
flayks cce0e5d9c2 Fix ScrollingTitle animation by increasing from value 2022-06-22 23:17:19 +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 deb0c1d708 Remove lazy loading on location illustration 2022-06-20 16:39:19 +02:00
flayks e1db876993 Use linear gradient mask for fading location illustration on bottom 2022-06-20 14:57:09 +02:00
flayks f824eb3016 Don't round all corners on Location's page description block 2022-06-14 23:15:03 +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 9801fec217 Clean CSS 2022-06-14 23:11:24 +02:00
flayks 3270ad70f0 Adjust sides offset for Switcher and Viewer buttons 2022-06-14 13:23:10 +02:00
flayks 2831600f57 Return destructured data only if existing on layout 2022-06-14 11:58:54 +02:00
flayks 6873ad6a66 Make aspect-ratio fallback work properly on Location page House photo 2022-06-13 23:46: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 b649187365 [chore] Update npm packages 2022-06-13 16:00:06 +02:00
flayks d90152a928 Revert smooth scroll on html
Scrolls back to top with animation when changing page
2022-06-13 15:59:57 +02:00
flayks 157b50f36c Use House component 2022-06-13 15:59:34 +02:00
flayks 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
flayks 2a3c73f6ea Move CSS variables to base file 2022-06-13 15:27:11 +02:00
flayks cfd6173baf Rename getRandomElement function to getRandomItem 2022-06-13 15:26:53 +02:00
flayks 622e304efa Store previous page globally from beforeNavigate 2022-06-13 14:21:23 +02:00
flayks 9a63338c92 [chore] Update npm packages 2022-06-07 23:22:32 +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 152961996d Get rid of stuff 2022-06-07 16:51:45 +02:00
flayks abeebc94ae Add min height to Shop nav to avoid vertical scroll 2022-06-07 16:37:13 +02:00
flayks f36cb93820 Reorganize typography styles 2022-06-07 16:36:54 +02:00
flayks 29cb3a30ba Add error page on Shop 2022-06-07 16:36:39 +02:00
flayks dbf586618d [chore] Update npm packages 2022-06-07 16:36:25 +02:00
flayks 29165717fc Rename Shop and Newsletter modules files 2022-06-07 16:36:08 +02:00
flayks 2659131112 Add smooth scroll to anchors 2022-06-07 14:55:32 +02:00
flayks bd8c4e590f Add types to Swell route api 2022-06-07 14:55:20 +02:00
flayks ce25f9314b Add global error page 2022-06-07 14:55:05 +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 9ac9301540 Cleanup GraphQL query and add types 2022-06-01 20:10:59 +02:00
flayks e1d9e0bd50 Switch subscribe query to page endpoint 2022-06-01 00:44:34 +02:00
flayks e1379402e8 Use adapter-auto and cleanup 2022-05-31 18:34:17 +02:00