Commit Graph

500 Commits

Author SHA1 Message Date
c5791fa07c Name action?! 2022-12-23 20:50:12 +01:00
9a7ad40401 🤦 Disable crsf for now to reenable the newsletter form 2022-12-23 19:50:57 +01:00
4230cd8854 Use layout groups 2022-11-22 17:34:17 +01:00
cac0d434bb Use sveltekit-prefetch globally and update template 2022-11-16 12:12:20 +01:00
225cd6fe00 Put wait cursor globally when page is loading
don't use a div over everything as it interacts with the current hover state of elements
instead force a cursor on every element in body when the body has a loading class
2022-11-13 23:16:54 +01:00
0d321d318b Use API share image for Homepage 2022-11-03 22:49:14 +01:00
1d49313ee2 Encode & in products feel 2022-11-02 19:33:18 +01:00
25f62c0df0 Switch to Plausible analytics
Detects automatically route changes

- use provided script
- specify domain
- send event name with optional props
2022-10-25 16:45:15 +02:00
5c4337a9a6 Use layout server types 2022-10-25 16:31:24 +02:00
993dc90739 Switch newsletter form to SvelteKit Form Actions
- remove api endpoint and use latest SK form actions
- create reusable server page function for form handling
- handling the errors in the server function
2022-10-16 00:11:30 +02:00
5ae812f9b4 Add products source
for Google and Pinterest
2022-10-12 11:02:02 +02:00
dd57ea968e Fix Page transitions and scroll back to top
Might fix all the issues so far!
- start page loading on entering page transition start
- scroll back to top on leaving page transition end
2022-10-11 23:53:03 +02:00
bfcdd53d94 Rename constants files 🤦 2022-10-11 21:12:21 +02:00
d8237bfbdc Add line break to pages content 2022-10-11 14:41:43 +02:00
a927b358d7 Only fetch published photos on location page 2022-10-10 17:45:24 +02:00
4b984fa078 Add Shop product page share image 2022-10-09 15:37:31 +02:00
35fb29da44 Change ProcessStep access and displaying
- make if condition in page and not with visible prop in component
- don't use hash as it was bugging the step 4 for some reason and also was not scrolling to it with hash
- send event when switching a step
2022-10-09 15:06:40 +02:00
fd37c36595 🚧 Use PageTransition as a div and switch
- use a page classed div for PageTransition which avoids to make global style for the page
- fix the loading spinner that was too short and would come and go before arriving on the page, now fades out when changing page as pageLoading is defined on the PageTransition afterUpdate
2022-10-09 14:44:44 +02:00
5241d5bc83 Fix static share image to include origin URL 2022-10-03 11:16:24 +02:00
559576e0b5 Switch temporarily homepage share image to static
Directus blocks assets from robots.txt?! 🤔
2022-10-03 11:09:16 +02:00
47afe8e4fa Change sitemap priority from number to string 2022-10-03 11:07:33 +02:00
d63db0f473 Add sitemap.xml 2022-09-27 17:30:19 +02:00
0eca069eaf Fix Photos page filters and reset button
Just remove photos from the filter label 🤭
2022-09-27 09:25:05 +02:00
7898eb9bec Add SEO stuff 2022-09-26 23:13:45 +02:00
7cc778e1cc Globe: Position camera to current continent
Quite complex to figure out but needed to use spherical coordinates to apply to the camera, inspired from Three.js
Thanks @Tape on Discord/Three.js!
2022-09-26 20:00:43 +02:00
193f6dc2ee Remove old Globe 2022-09-25 14:29:19 +02:00
b764b4d1d1 Remove unused code and update packages 2022-09-23 10:07:01 +02:00
a51179f6f4 Add SEO share images on remaining pages 2022-09-21 16:32:23 +02:00
be51fea5de Put Switcher over and next to Footer
Clever solution to keep it over but next to the title and not hide it
2022-09-20 10:32:35 +02:00
5545871c85 Use page specific stale-while-revalidate Cache-Control headers 2022-09-20 00:20:18 +02:00
39fc74d8e9 Use stale-while-revalidate Cache-Control headers instead? 2022-09-19 23:50:54 +02:00
3a7056cce6 Add Cache-Control max-age headers globally 2022-09-19 23:38:07 +02:00
486213ac77 Use Lenis to use smooth scroll to anchors 2022-09-19 20:09:28 +02:00
f37a84d4f3 Only count published photos on Grid count 2022-09-19 14:55:10 +02:00
b1448f9db3 Update photo queries to match Postgres migration 2022-09-19 12:50:36 +02:00
719c7b6f87 Pass parameters to Swell fetch function 2022-09-18 21:48:41 +02:00
e01ba0d6c6 Create reusable Swell fetch functions 2022-09-18 19:57:19 +02:00
3ca8ed0d06 Use base64 library to encode basic auth 🤦
Buffer being not enabled on Vercel Edge Functions
2022-09-18 18:55:28 +02:00
b83a9f0652 Change error page CTAs 2022-09-18 17:10:24 +02:00
c7b67b909c Use Swell REST API for fetching products 2022-09-18 17:10:06 +02:00
2393d28597 Fix Shop fetching on server side? 2022-09-18 12:52:48 +02:00
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
91c28cf1e3 Fix email form server check and return error code if existing 2022-09-14 22:37:24 +02:00
eaf1c789e0 Fix some SEO 2022-09-14 22:24:10 +02:00
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
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
683edc05fc Fix button prefetch values and remove unused IO rootMargin 2022-09-14 10:29:37 +02:00
3f55e178ff Add SEO from API on About 2022-09-13 11:45:45 +02:00
6dc5276f72 Update homepage metas and add share image 2022-09-13 10:38:12 +02:00
778c816ebf Merge branch 'v2' of https://git.server.flayks.com/cetrucflotte/housesof into v2 2022-09-13 10:35:36 +02:00