summary refs log tree commit diff
path: root/components/layout
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/Footer.tsx9
-rw-r--r--components/layout/Header.tsx43
2 files changed, 52 insertions, 0 deletions
diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx
new file mode 100644
index 0000000..f18c60d
--- /dev/null
+++ b/components/layout/Footer.tsx
@@ -0,0 +1,9 @@
+export default function Footer() {
+  return (
+    <footer>
+      <span>Website by ashelyn rose</span>
+      <a href="https://git.tempest.dev/ashe/tempest.dev">Site Source</a>
+      <a href="/pay-transparency">Pay Transparency</a>
+    </footer>
+  )
+}
diff --git a/components/layout/Header.tsx b/components/layout/Header.tsx
new file mode 100644
index 0000000..23ba4b2
--- /dev/null
+++ b/components/layout/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 (
+    <header className={isHomepage ? 'homepage' : undefined}>
+      {isHomepage
+        ? <h1 className="siteTitle">tempest.dev</h1>
+        : <a href="/" className="siteTitle">tempest.dev</a>
+      }
+      <nav>
+        <a href="/about">about</a>
+        <a href="/posts">posts</a>
+        <a href="/contact">contact</a>
+      </nav>
+      <div className="headerBackground">
+        <Image
+          src={header}
+          alt=""
+          role="presentation"
+          fill={true}
+          sizes={`
+            (max-width: 2560) 100vw,
+            (max-width: 1920) 100vw,
+            (max-width: 1280) 100vw,
+            (max-width: 800) 100vw,
+            (max-width: 600) 100vw,
+          `}
+        />
+      </div>
+    </header>
+  )
+}