systems-obscure/src/pages/home.jsx

76 lines
2.2 KiB
React
Raw Normal View History

2025-07-07 17:08:27 +01:00
import MainTemplate from "@/templates/MainTemplate"
import PostListing from "@/containers/PostListing"
import { usePosts } from "@/hooks/usePosts"
2025-11-04 19:06:51 +00:00
import gruvboxComputer from "../images/gruvbox-computer.svg"
2025-11-10 18:57:49 +00:00
import EolasListing from "@/components/EolasListing"
import CodeStats from "../containers/CodeStats"
2025-11-04 19:58:23 +00:00
// import TodayILearned from "@/containers/TodayILearned"
2025-07-07 17:08:27 +01:00
const HomePage = () => {
2025-11-25 18:26:26 +00:00
const { posts } = usePosts()
return (
<MainTemplate>
<div className="container mx-auto p-4 grow">
<div className="space-my-8">
<section className="space-y-4">
<div className="gap-6 flex flex-col items-center sm:flex-row">
<div className="scanlined">
<img src={gruvboxComputer} className="md:w-80 w-50" />
</div>
<div>
<h1 className="text-4xl font-bold py-3 text-center sm:text-left md:text-left">
<div className="scanlined inline-block py-1 px-2">
systems obscure
</div>
</h1>
<p className="text-center sm:text-left md:text-left text-muted condensed font-medium text-lg">
Software engineer at ITV, formerly BBC. This is my technical
scrapbook and digital garden.
</p>
</div>
</div>
</section>
</div>
</div>
2025-07-31 16:44:15 +01:00
2025-11-25 18:26:26 +00:00
<PostListing title="recent posts" posts={posts.slice(0, 5)} />
2025-11-16 18:19:09 +00:00
2025-11-25 18:26:26 +00:00
<PostListing
title="highlights"
posts={posts.filter((post) => post.tags.includes("highlight"))}
/>
2025-11-16 18:19:09 +00:00
2025-11-25 18:26:26 +00:00
<div className="container mx-auto p-4 grow">
<div className="space-my-8">
<section className="container">
<h2 className="text-2xl font-semibold mb-4 text-[#d3869b]! scanlined inline-block px-1">
projects
</h2>
<ul>
<li className="pb-2">
<a
className="underline underline-offset-4 text-[18px] text-primary hover:text-primary/80 font-medium"
href="https://eolas.systemsobscure.net"
target="_blank"
>
eolas
</a>
</li>
<li>
<p className="">
A public frontend for my local Zettelkasten created with
NodeJS, Python and React.
</p>
</li>
</ul>
</section>
</div>
</div>
<CodeStats />
<EolasListing />
</MainTemplate>
)
2025-07-07 17:08:27 +01:00
}
export { HomePage }