flayks
b66db25942
🚧 Switch to swell-js to handle Shop cart
...
swell-node was relying too much on Node packages like crypto or events to be used with Cloudflare Pages or Vercel Edge Functions
2022-09-18 12:14:43 +02:00
flayks
1699203f02
Shorten Shop local storage store code
2022-09-14 22:15:44 +02:00
flayks
07060c8661
Use copy email to clipboard as an action
...
Returns an event with the email to detect for value and timeouts
2022-09-14 13:28:58 +02:00
flayks
f38a8fcdc7
✨ Store location last seen date to check for New label
...
Stores the last location's page seeing date in localStorage to hide the Location's new label in list, on top of the date limit
2022-09-14 11:35:06 +02:00
flayks
3d7b859d12
Move API fields to file
2022-09-06 14:51:47 +02:00
flayks
44bda1a939
Fix API url condition
2022-08-17 22:30:59 +02:00
flayks
42e9029da8
Switch back to VITE env variable for API token
...
Can't find a way around… but this works!
2022-08-16 20:40:57 +02:00
flayks
93a50770d0
Move API fetch data to different file
...
Sharing multiple exportable functions in one file impacts the use of private env variables 🤷
2022-08-16 20:00:52 +02:00
flayks
6e904850aa
🚧 Migrate env variables to use internal SvelteKit system
...
Some API fetching function rewriting needed as privates cannot be included into public code
2022-08-16 16:58:57 +02:00
flayks
5e5c08ddd1
🚧 Migrate to new SvelteKit routing system
...
A bit annoying but for the best I guess?
2022-08-16 15:54:15 +02:00
flayks
fa74e5bf7f
Move get asset function into same API file
2022-08-14 19:21:49 +02:00
flayks
8524a83199
Move easings into global file
2022-08-13 23:38:59 +02:00
flayks
222db0c478
Move types to global app file
2022-08-13 23:38:06 +02:00
flayks
5975c8e51a
Update Analytics
2022-07-31 19:45:33 +02:00
flayks
0dba9b78c3
Add smooth scroll globally
2022-07-27 18:17:36 +02:00
flayks
be0c58c744
Code cleanup and add types on stores
2022-07-26 23:42:41 +02:00
flayks
6a66cdaf22
Use options parameters with types and default on smoothScroll function
2022-07-19 13:43:25 +02:00
flayks
c2005bbac2
Use Vite dev process checking instead of NODE_ENV
2022-07-16 15:50:38 +02:00
flayks
ae4ea7f4fa
✨ Use smooth scroll function to navigate to anchor
...
Using a eased RAF function to scroll to a specific target
Avoid using `scrollIntoView` or smooth behavior as it doesn't work on Safari and others.
2022-07-11 16:42:34 +02:00
flayks
f81a468a04
Check for Countly before using it
2022-07-11 16:39:25 +02:00
flayks
c66fe85879
✨ Add Analytics
2022-06-23 19:07:31 +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
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
cfd6173baf
Rename getRandomElement function to getRandomItem
2022-06-13 15:26:53 +02:00
flayks
d3f74be59e
Run page animations onMount instead of browser
2022-05-30 21:57:04 +02:00
flayks
cffef1835f
Fix Page transitions by using a hacky FOUC trick
...
Seems to work though!
2022-01-18 14:22:38 +01:00
flayks
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
flayks
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
flayks
02f0815751
Store previous page for photo Viewer close button
2021-11-29 23:52:40 +01:00
flayks
7169faa3aa
Fix getRandomElement function
...
Now return an array item instead of an index
2021-11-28 23:06:22 +01:00
flayks
43708399e4
Send tap event if swipe is not detected
2021-11-23 12:01:08 +01:00
flayks
ded276b8a0
✨ Add swipe gesture on photo Viewer
2021-11-22 23:21:51 +01:00
flayks
4c43e1458e
Don't scroll back to top when changing Photos and Shop products pages
2021-11-21 22:43:24 +01:00
flayks
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
flayks
52c1916c27
Rename Lerp function amount argument
2021-11-11 23:03:51 +01:00
flayks
75f3e5f1d1
Get a category of products from Swell
2021-11-08 13:53:06 +01:00
flayks
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
flayks
5141198167
Move functions to directory
2021-11-08 12:14:39 +01:00
flayks
3198fd8545
Move Shop store into separate file
2021-11-07 22:38:23 +01:00
flayks
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
flayks
e1c259164f
✨ Show a notification when adding a product to Cart
2021-11-07 20:18:19 +01:00
flayks
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
flayks
b8d1d6334c
Add Cart button and opening/closing transition
2021-11-05 12:45:30 +01:00
flayks
99fe09c4fd
✨ Add data to Shop page
2021-10-31 19:38:08 +01:00
flayks
eb026cabad
Fix Photos page reactivity when changing country
2021-10-23 15:34:28 +02:00
flayks
691e499e9e
Add SplitText component
2021-10-18 16:18:41 +02:00
flayks
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
flayks
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
flayks
c45136beb0
Fixes here and there
2021-10-13 23:32:09 +02:00
flayks
db8f984739
[wip] Add reducing side margin effect on Photos when scrolling
2021-10-12 22:12:24 +02:00