From 880cfbeb74546056feab63ed6e92a10c0dbaf2c3 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Mon, 8 May 2023 02:17:40 -0600 Subject: New layout, uses nextjs --- app/Header.tsx | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app/Header.tsx (limited to 'app/Header.tsx') diff --git a/app/Header.tsx b/app/Header.tsx new file mode 100644 index 0000000..b5749ba --- /dev/null +++ b/app/Header.tsx @@ -0,0 +1,43 @@ +'use client' + +import React from 'react' +import Image from 'next/image' + +import { usePathname } from 'next/navigation' + +import header from '~/images/aurora-1197753.jpg' + +export default function Title() { + const pathname = usePathname() + + const isHomepage = pathname === '/' + + return ( +
+ {isHomepage + ?

tempest.dev

+ : tempest.dev + } + +
+ +
+
+ ) +} -- cgit 1.4.1