Commit Graph

437 Commits

Author SHA1 Message Date
7c4d890706 Add hover effect on Homepage collage PhotoCard 2021-10-25 23:44:45 +02:00
450ceb2bfa Hide Footer on Photo viewer 2021-10-25 15:45:19 +02:00
adc395b3f7 Finish Photo viewer styling with responsive 2021-10-25 15:45:12 +02:00
e830a18454 Use total photos count from global data 2021-10-24 22:20:01 +02:00
04a0b2bec5 Fix Location page photos overflow hiding its index 2021-10-24 22:03:18 +02:00
726aa60a06 Cleanup Photos page code 2021-10-24 15:30:06 +02:00
fd04d98463 Change max sides margin depending on window width when scrolling
Running it on window scroll avoids a flash effect on and is more optimized as it is not ran every time scrollY changes
2021-10-24 15:29:57 +02:00
18726f6798 Define small PostCard from photo index 2021-10-24 15:10:59 +02:00
eb026cabad Fix Photos page reactivity when changing country 2021-10-23 15:34:28 +02:00
ecacc0c1a1 Rework buttons classes and variants
Add a conditional class and list props as BEM class modifiers
2021-10-19 17:19:53 +02:00
ab9b0e1a59 Add style to Photo Viewer page 2021-10-19 12:22:20 +02:00
d9648f7513 Add large size buttons variant and make disabled state global 2021-10-18 11:14:02 +02:00
7ca8366cd5 Use map function to define the side margins on Photos page
Also defines the amount of viewport from the screen width to height ratio for small screens

Merci @sixclones et @raphael! (devs slack)
2021-10-18 11:13:55 +02:00
dfb019493e Redefine Location's new status from latest photo's creation date 2021-10-17 23:01:34 +02:00
38006355db Add Metas on Location page 2021-10-17 22:18:03 +02:00
f29b4c3bb0 🔥 Use Directus Storage Assets Presets only for images
Block the generation of other image sizes from the URL

TODO: Block the access to root asset url as it still displays the original file
2021-10-17 22:17:52 +02:00
56857fe30d Don't put Globe above everything 2021-10-17 19:50:50 +02:00
ea2162c2b9 Fix Location page total photos amount 2021-10-17 13:41:38 +02:00
62ddc32795 [wip] Create photo detail page with informations 2021-10-16 22:32:13 +02:00
818e1cfad4 Add link to photo on Homepage collage 2021-10-16 22:30:56 +02:00
3e358843fd 🔥 Filter locations from clicked continent on Locations 2021-10-16 15:41:26 +02:00
8b07352431 Make newsletter form a reusable component 2021-10-16 13:25:26 +02:00
a2d1a4c64c Add target on newsletter issue link and complete styling with hover 2021-10-16 13:14:55 +02:00
7384088388 Use Newsletter data from API 2021-10-15 22:34:36 +02:00
99cc1bc661 Add option to enable or disable Shop button 2021-10-15 22:20:12 +02:00
2ea5cbecda Make PostCard content dynamic 2021-10-14 23:19:09 +02:00
2ed411a94e 🔥 Implement sizes with Image component and webp loading with source 2021-10-13 23:33:07 +02:00
f9937f6c9a [bug] Import dayjs plugins with js extension 2021-10-12 23:01:55 +02:00
2193d95c5c Merge branch 'v2' of https://git.server.flayks.com/cetrucflotte/housesof into v2 2021-10-12 22:41:59 +02:00
ef9bda3708 Add Heading component to Locations page 2021-10-12 22:41:24 +02:00
3ccfb63188 Create Subscribe page
Create issue css component for past newsletter
2021-10-12 22:41:09 +02:00
db8f984739 [wip] Add reducing side margin effect on Photos when scrolling 2021-10-12 22:12:24 +02:00
56c523679b Show message when no photos are available on Location 2021-10-12 17:12:33 +02:00
a92d5465e6 Check for when there are no photos 2021-10-12 15:09:20 +02:00
ee851f2cfa 🔥 Make Photos page completely dynamic with filters
- The page now reacts properly with default Select options (`default` was used to set current instead of `selected`)
- Make `filtered` variable reactive from filterCountry/filterSort
- Reset link goes to parameters and not just `/photos`
- Show latest updated date from first photo of the `photos` data
- Display the total of photo depending on the country (calculated from `__layout`)
2021-10-12 00:17:04 +02:00
80747ffaf4 🤪 Process data to count photos per location and country 2021-10-12 00:11:58 +02:00
dd0e820b83 Set reusable global data on server side through stuff
https://kit.svelte.dev/docs#loading-input-stuff
2021-10-12 00:08:56 +02:00
ab6227b7e6 Use aggregated data from Directus to count photos on Location page 2021-10-12 00:06:55 +02:00
80a972253f Use stuff on page load function 2021-10-12 00:06:14 +02:00
cd2b234728 Rename global data arrays as plural by default
Easier for each loop and maps as to use singular
2021-10-12 00:05:35 +02:00
b6686d3ef3 Add World title on Homepage and fix some styling
- Fix photos collage positioning
- Remove Houses title centering
2021-10-11 20:25:01 +02:00
bda355d608 Fix Pagination and Newsletter module on Location page 2021-10-10 21:40:50 +02:00
51dc9650ec Add dynamic photo's index on Location page 2021-10-10 21:40:30 +02:00
e44f51c0c4 Add Newsletter module when reached end on Location page 2021-10-10 14:20:21 +02:00
49b6e5eb55 Make Shop module content dynamic 2021-10-10 14:07:09 +02:00
8aa3ddfe35 🔥 Load new photos on Location page 2021-10-09 22:24:37 +02:00
dd760ebf89 Use env settings for default filters 2021-10-09 21:35:47 +02:00
6ef8e41c80 🔥 Update Photos content when changing filters 2021-10-09 19:20:41 +02:00
fd150e252c [wip] Implement photos loading and make everything dynamic
- Handle what happens when we click on Load more photos (detect if can load next or if reached the end)
- Show the current and total amount of photos (WIP as it apparently can't be filtered for aggregated)
- See filtered photos from URL when coming directly
- Disable button when all photos has been seen
- Show message if location doesn't exist
2021-10-09 18:59:45 +02:00
5e790ad68c Show dynamic locations with a poster on Shop module 2021-10-09 16:49:29 +02:00