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
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
d3f74be59e
Run page animations onMount instead of browser
2022-05-30 21:57:04 +02:00
cffef1835f
Fix Page transitions by using a hacky FOUC trick
...
Seems to work though!
2022-01-18 14:22:38 +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
02f0815751
Store previous page for photo Viewer close button
2021-11-29 23:52:40 +01:00
7169faa3aa
Fix getRandomElement function
...
Now return an array item instead of an index
2021-11-28 23:06:22 +01:00
43708399e4
Send tap event if swipe is not detected
2021-11-23 12:01:08 +01:00
ded276b8a0
✨ Add swipe gesture on photo Viewer
2021-11-22 23:21:51 +01:00
4c43e1458e
Don't scroll back to top when changing Photos and Shop products pages
2021-11-21 22:43:24 +01:00
8b4070aeb2
🐛 Setup page transitions
...
Bugged for some reason, the old page stays before the new page loading at the end
2021-11-17 21:54:22 +01:00
52c1916c27
Rename Lerp function amount argument
2021-11-11 23:03:51 +01:00
75f3e5f1d1
Get a category of products from Swell
2021-11-08 13:53:06 +01:00
378a64f2b0
✨ Add product to cart from anywhere
...
Make a global function that adds a product to the current cart
2021-11-08 13:00:31 +01:00
5141198167
Move functions to directory
2021-11-08 12:14:39 +01:00
3198fd8545
Move Shop store into separate file
2021-11-07 22:38:23 +01:00
f7457b5f8d
🔥 Finish Cart implementation
...
- Use Select component in CartItem to change quantity
- Visual update when removing or changing an item quantity
- API: Remove Cart item action
- API: Handle Cart item adding and updating (quantity)
2021-11-07 20:21:20 +01:00
e1c259164f
✨ Show a notification when adding a product to Cart
2021-11-07 20:18:19 +01:00
bd74f5612c
[wip] 🔥 Integrate Swell into the shop
...
Create a custom and internal API for fetching and updating content to Swell Admin API (using swell-node)
2021-11-07 11:51:01 +01:00
b8d1d6334c
Add Cart button and opening/closing transition
2021-11-05 12:45:30 +01:00
99fe09c4fd
✨ Add data to Shop page
2021-10-31 19:38:08 +01:00
eb026cabad
Fix Photos page reactivity when changing country
2021-10-23 15:34:28 +02:00
691e499e9e
Add SplitText component
2021-10-18 16:18:41 +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
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
c45136beb0
Fixes here and there
2021-10-13 23:32:09 +02:00
db8f984739
[wip] Add reducing side margin effect on Photos when scrolling
2021-10-12 22:12:24 +02:00
f6da3c4b55
Implement Interactive Globe on Homepage
2021-10-03 13:56:11 +02:00
7777d26907
Add hover effect on Location
2021-09-30 23:30:18 +02:00
c2ce89f049
Create helper function for getting asset URL from API
2021-09-26 23:37:33 +02:00
ac538692b9
Update config
2021-09-24 11:03:38 +02:00
bdbf511a75
☠️ RESET for v2
2021-09-14 13:00:48 +02:00
b990f944ca
Add City field to photos
...
Used for regions/wider locations
2020-08-22 19:53:50 +02:00
6a04e1568f
My bad
continuous-integration/drone/push Build is passing
2020-06-16 17:05:22 +02:00
4eb0ddb501
Don't offset relative time
2020-06-16 17:00:43 +02:00
3f506681b0
Add 2h offset on relative time
2020-06-02 14:54:39 +02:00
cd609cd710
Add a badge on locations for new photos
...
- The last updated date is taken from the latest photo of each location (without any other API call, just some data manipulation)
- Manipulation of data in the preload request instead of the code
2020-05-06 17:12:07 +02:00
c43b888d25
Fix the transition as it would get stuck sometimes
...
continuous-integration/drone/push Build is passing
- Reproduction: Open two tabs, one would load, the other one would stay on the transition while the content of the page was ready and animated
2020-04-23 11:06:41 +02:00
17feb712b9
Fix API calls using a bearer auth token
2020-04-22 09:17:30 +02:00
ecc69e3206
TitleSite: Fix longer delay after first transition
continuous-integration/drone/push Build is passing
2020-04-21 15:05:33 +02:00
bdf93e89fb
Last little fixes and debugging
2020-04-21 13:09:11 +02:00
302af713d0
Globe: Add more props settings, Randomly position globe to a continent
...
- Add a little delay before restarting the rotation when hovering a marker
2020-04-19 17:34:51 +02:00
094614f83c
Globe edits WIP
...
continuous-integration/drone/push Build is passing
- Added visible continents to options
2020-04-19 14:49:52 +02:00
3c05d6d222
Performances optimizations WIP
continuous-integration/drone/push Build is passing
2020-04-17 14:33:49 +02:00
b0b20da89b
WIP performances
continuous-integration/drone/push Build is passing
2020-04-16 17:40:18 +02:00
7f3f2ac3ba
WIP on performances
continuous-integration/drone/push Build is passing
2020-04-16 16:40:33 +02:00
2ef3ad838c
Nah, but keep the client load only
continuous-integration/drone/push Build is passing
2020-04-13 10:50:10 +02:00
5a00c6f552
Disable Google Analytics tracker for dev and Google PageSpeed bot
continuous-integration/drone/push Build is passing
2020-04-13 10:38:52 +02:00