systems-obscure/src/templates/MainTemplate.jsx

69 lines
2 KiB
React
Raw Normal View History

2025-07-07 17:08:27 +01:00
// @ts-nocheck
2025-11-04 19:06:51 +00:00
import gruvboxComputer from "../images/gruvbox-computer.svg"
import { Link } from "react-router"
const Header = () => {
2025-12-29 19:11:22 +00:00
return (
2025-12-29 19:20:52 +00:00
<header className="md:py-6 pb-4">
2025-12-29 19:11:22 +00:00
<nav className="bg-sidebar container mx-auto justify-between flex gap-1">
<Link to="/">
<div className="scanlined">
<img src={gruvboxComputer} className="w-11" />
</div>
</Link>
<ul class="flex space-x-4 px-4 py-2 text-sm">
<li class="flex flex-col items-center justify-center">
<Link
class="text-primary underline underline-offset-3 hover:text-[#689d6a] condensed font-semibold text-lg"
to="/posts"
>
posts
</Link>
</li>
<li class="flex flex-col items-center justify-center">
<Link
class="text-primary underline underline-offset-3 hover:text-[#689d6a] condensed font-semibold text-lg"
to="/about"
>
about
</Link>
</li>
</ul>
</nav>
</header>
)
2025-07-07 17:08:27 +01:00
}
2025-11-04 19:06:51 +00:00
const Footer = () => {
2025-12-29 19:11:22 +00:00
return (
<footer className="bg-sidebar container mx-auto px-4 mt-10 mb-8">
<nav>
<ul className="flex flex-row justify-start gap-4">
<li className="flex flex-col items-center justify-center">
<a
className="text-primary underline underline-offset-3 hover:text-[#689d6a] font-semibold"
href="https://forgejo.systemsobscure.net/thomasabishop"
target="blank"
>
forgejo
</a>
</li>
</ul>
</nav>
</footer>
)
2025-11-04 19:06:51 +00:00
}
2025-07-07 17:08:27 +01:00
2025-11-04 19:06:51 +00:00
const MainTemplate = ({ children }) => {
2025-12-29 19:11:22 +00:00
return (
<div className="antialiased max-w-3xl mt-3 mx-auto bg-[#282828] no-scanlines wrapper">
<main className="flex-auto min-w-0 mt-0 flex flex-col px-2 md:px-0">
<Header />
<div>{children}</div>
<Footer />
</main>
</div>
)
2025-07-07 17:08:27 +01:00
}
export default MainTemplate