diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index ed08fd8..f2b649a 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -1,7 +1,7 @@ import HeroSection from "@/components/sections/HeroSection"; import WorksSection from "@/components/sections/WorksSection"; import FeatureSection from "@/components/sections/FeatureSection"; -import TimelineSection from "@/components/sections/TimelineSection"; +import TimelineSection from "@/components/sections/AboutSection"; export default function Home() { return ( diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx index 45773b6..9f714d9 100644 --- a/components/layout/Footer.tsx +++ b/components/layout/Footer.tsx @@ -6,7 +6,7 @@ export default function Footer() { {/* Logo */} logo mg dev mb-4 -
+

Mathéo Guilbert EI

Développeur Full Stack & Architecte Web

diff --git a/components/layout/Header.tsx b/components/layout/Header.tsx index d05b010..dc5576c 100644 --- a/components/layout/Header.tsx +++ b/components/layout/Header.tsx @@ -1,19 +1,42 @@ +'use client'; + +import React, { MouseEvent } from 'react'; + export default function Header() { - return ( -
-
-
M. Guilbert
- -
France
-
-
- - ); + + const links = [ + {"text": "Accueil" , "target": "/"}, + {"text": "Travaux" , "target": "/#works"}, + {"text": "À propos" , "target": "/#about"}, + {"text": "Blog" , "target": "/blog"}, + ]; + + const handleAnchorClick = (e: MouseEvent, target: string) => { + if (target.startsWith("/#")) { // only anchor links + e.preventDefault(); + const id = target.slice(2); + const element = document.getElementById(id); + if (element) { + element.scrollIntoView({ behavior: "smooth" }); + } + } + }; + + return ( +
+
+
M. Guilbert
+ logo mg dev + +
France
+
+
+ + ); } \ No newline at end of file diff --git a/components/sections/TimelineSection.tsx b/components/sections/AboutSection.tsx similarity index 96% rename from components/sections/TimelineSection.tsx rename to components/sections/AboutSection.tsx index 998d5a1..730b966 100644 --- a/components/sections/TimelineSection.tsx +++ b/components/sections/AboutSection.tsx @@ -24,9 +24,9 @@ export default function TimelineSection() { const progressWidth = "95%"; return ( -
+
-

+

A propos de moi

diff --git a/components/sections/FeatureSection.tsx b/components/sections/FeatureSection.tsx index 6c75261..67666d3 100644 --- a/components/sections/FeatureSection.tsx +++ b/components/sections/FeatureSection.tsx @@ -2,7 +2,7 @@ import { FeatureColumn } from '@/components/ui/FeatureColumn'; export default function FeatureSection() { return ( -
+
+

Travaux