Commit Graph

966 Commits

Author SHA1 Message Date
3270ad70f0 Adjust sides offset for Switcher and Viewer buttons 2022-06-14 13:23:10 +02:00
2831600f57 Return destructured data only if existing on layout 2022-06-14 11:58:54 +02:00
6873ad6a66 Make aspect-ratio fallback work properly on Location page House photo 2022-06-13 23:46:12 +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
b649187365 [chore] Update npm packages 2022-06-13 16:00:06 +02:00
d90152a928 Revert smooth scroll on html
Scrolls back to top with animation when changing page
2022-06-13 15:59:57 +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
2a3c73f6ea Move CSS variables to base file 2022-06-13 15:27:11 +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
9a63338c92 [chore] Update npm packages 2022-06-07 23:22:32 +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
abeebc94ae Add min height to Shop nav to avoid vertical scroll 2022-06-07 16:37:13 +02:00
f36cb93820 Reorganize typography styles 2022-06-07 16:36:54 +02:00
29cb3a30ba Add error page on Shop 2022-06-07 16:36:39 +02:00
dbf586618d [chore] Update npm packages 2022-06-07 16:36:25 +02:00
29165717fc Rename Shop and Newsletter modules files 2022-06-07 16:36:08 +02:00
2659131112 Add smooth scroll to anchors 2022-06-07 14:55:32 +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
85aacf12e3 Code optimizations 2022-06-07 14:54:28 +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
e1379402e8 Use adapter-auto and cleanup 2022-05-31 18:34:17 +02:00
ecc051a439 Update Homepage query
Filter published photos only
2022-05-31 18:34:07 +02:00
8010ea024d [chore] Update npm packages 2022-05-31 10:10:51 +02:00
758c3548d7 Change some $$props.class to shorthands 2022-05-31 10:10:41 +02:00
1a0370b0cd Fix tsconfig typo 2022-05-31 10:10:23 +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
7062c59fb1 [chore] Update npm packages and config 2022-05-30 20:51:36 +02:00
c2dc2bf2fb [chore] Fix TS 2022-05-30 20:50:23 +02:00
c406278baf [chore] Switch Homepage and Photos to page endpoints 2022-05-30 20:47:31 +02:00
9792165272 [chore] Update npm packages and Svelte alias config 2022-05-23 23:10:42 +02:00
ed4dcd6051 Update favicon and cleanup images 2022-05-23 14:16:55 +02:00
f417b80aab Disable lazyloaded images for Collage 2022-05-23 12:24:59 +02:00
5b3fbb7ece Add async decoding for lazy loaded images 2022-05-23 12:08:05 +02:00
53764abd74 [chore] Fix and update npm packages 2022-05-21 00:13: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
4edf5226f9 Keep Switcher on left on Photo Viewer 2022-05-20 22:34:30 +02:00
7a6046c0c4 Remove About section on Shop 2022-05-20 22:30:11 +02:00
f06239fcb9 Add cursor on Cart overlay for closing 2022-05-20 22:28:55 +02:00