2025-07-07 17:08:27 +01:00
|
|
|
import MainTemplate from "@/templates/MainTemplate"
|
|
|
|
|
import PostListing from "@/containers/PostListing"
|
|
|
|
|
import { usePosts } from "@/hooks/usePosts"
|
2025-07-13 14:27:48 +01:00
|
|
|
import { Card, CardHeader, CardContent, CardFooter } from "@/components/ui/card"
|
|
|
|
|
import { Button } from "@/components/ui/button"
|
|
|
|
|
import { Link } from "react-router"
|
2025-07-07 17:08:27 +01:00
|
|
|
|
|
|
|
|
const HomePage = () => {
|
2025-07-20 18:47:32 +01:00
|
|
|
const { posts } = usePosts()
|
|
|
|
|
return (
|
|
|
|
|
<MainTemplate>
|
2025-07-31 17:14:52 +01:00
|
|
|
<div className="mb-7 border border-foreground py-7 px-6 dark:bg-sidebar">
|
2025-07-31 16:44:15 +01:00
|
|
|
<h1 className="scroll-m-20 text-left text-2xl font-semibold">
|
|
|
|
|
Another software engineer with a blog
|
|
|
|
|
</h1>
|
|
|
|
|
<p className="leading-[1.7] [&:not(:first-child)]:mt-5">
|
|
|
|
|
I'm a self-taught software engineer currently working at ITV,
|
|
|
|
|
previously at the BBC. This blog is a technical scrapbook and digital
|
|
|
|
|
garden.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{/*
|
|
|
|
|
<Card className="mb-8 rounded-none">
|
2025-07-20 18:47:32 +01:00
|
|
|
<CardHeader>
|
2025-07-31 16:44:15 +01:00
|
|
|
<h1 className="scroll-m-20 text-left text-2xl font-semibold">
|
|
|
|
|
Another software engineer with a blog!
|
2025-07-20 18:47:32 +01:00
|
|
|
</h1>
|
|
|
|
|
</CardHeader>
|
|
|
|
|
<CardContent>
|
2025-07-31 16:44:15 +01:00
|
|
|
<p className="leading-[1.7] [&:not(:first-child)]:mt-7">
|
2025-07-20 18:47:32 +01:00
|
|
|
I'm a self-taught software engineer currently working at ITV,
|
|
|
|
|
previously at the BBC. This blog is a technical scrapbook and
|
|
|
|
|
digital garden.
|
|
|
|
|
</p>
|
|
|
|
|
</CardContent>
|
|
|
|
|
<CardFooter>
|
|
|
|
|
<Button asChild>
|
|
|
|
|
<Link to="/about">About</Link>
|
|
|
|
|
</Button>
|
|
|
|
|
</CardFooter>
|
|
|
|
|
</Card>
|
2025-07-31 16:44:15 +01:00
|
|
|
<Button asChild>
|
|
|
|
|
<Link to="/about">About</Link>
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/}
|
2025-07-13 14:27:48 +01:00
|
|
|
|
2025-07-20 18:47:32 +01:00
|
|
|
<PostListing
|
|
|
|
|
title="Recent posts"
|
|
|
|
|
posts={posts.slice(0, 5)}
|
|
|
|
|
showAllButton
|
|
|
|
|
/>
|
|
|
|
|
</MainTemplate>
|
|
|
|
|
)
|
2025-07-07 17:08:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { HomePage }
|