From 3d1336c3b2b76eeaf1b136763e64fa81457b3e55 Mon Sep 17 00:00:00 2001 From: mouad bouras Date: Fri, 3 Apr 2026 13:52:13 -0400 Subject: [PATCH] fix some bugs --- astro.config.mjs | 3 ++ src/components/foot.astro | 2 +- src/components/header.tsx | 8 ++++ src/components/sections/contact.tsx | 72 ++++++++++++++--------------- 4 files changed, 48 insertions(+), 37 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index f103a71..fa846d1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -26,5 +26,8 @@ export default defineConfig({ ], vite: { plugins: [tailwindcss()], + ssr: { + noExternal: ['motion', 'motion/react'], + }, }, }); diff --git a/src/components/foot.astro b/src/components/foot.astro index 3ddbd02..a936a94 100644 --- a/src/components/foot.astro +++ b/src/components/foot.astro @@ -16,7 +16,7 @@ const legalNotice = footer.legal.replace('{year}', String(year)); --- 10); + if (initialY > 80) { + setIsVisible(false); + } + window.addEventListener("scroll", handleScroll, { passive: true }); return () => window.removeEventListener("scroll", handleScroll); }, []); diff --git a/src/components/sections/contact.tsx b/src/components/sections/contact.tsx index e1bae90..df09555 100644 --- a/src/components/sections/contact.tsx +++ b/src/components/sections/contact.tsx @@ -92,45 +92,45 @@ export default function Contact({ return (
+
+ +
-
- -