diff --git a/app/layout.tsx b/app/layout.tsx index 3bbe62e..cf8da94 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -21,6 +21,9 @@ export const metadata: Metadata = { }, description: "Technical problem solver's blog - practical insights and learning notes", metadataBase: new URL('https://mintel.me'), + icons: { + icon: '/favicon.svg', + }, }; export default function RootLayout({ diff --git a/src/components/Header.tsx b/src/components/Header.tsx index e5503ff..9ffc2e8 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,22 +1,61 @@ 'use client'; -import * as React from 'react'; +import { AnimatePresence, motion } from 'framer-motion'; +import Image from 'next/image'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; +import * as React from 'react'; + +import IconWhite from '../assets/logo/Icon White Transparent.svg'; +import LogoBlack from '../assets/logo/Logo Black Transparent.svg'; export const Header: React.FC = () => { const pathname = usePathname(); + const [isScrolled, setIsScrolled] = React.useState(false); + + React.useEffect(() => { + const handleScroll = () => { + setIsScrolled(window.scrollY > 20); + }; + window.addEventListener('scroll', handleScroll); + return () => window.removeEventListener('scroll', handleScroll); + }, []); const isActive = (path: string) => pathname === path; return (
- -
- M + +
+
+ Marc Mintel Icon +
+ + {!isScrolled && ( + + Marc Mintel + + )} +
- Marc Mintel