2025-07-07 17:08:27 +01:00
|
|
|
import MainTemplate from "@/templates/MainTemplate"
|
|
|
|
|
import PostListing from "@/containers/PostListing"
|
|
|
|
|
import { usePosts } from "@/hooks/usePosts"
|
2025-08-05 17:39:21 +01:00
|
|
|
import roundedPortrait from "../images/round-portrait.png"
|
2025-10-20 17:23:59 +01:00
|
|
|
import TodayILearned from "@/containers/TodayILearned"
|
2025-07-07 17:08:27 +01:00
|
|
|
|
|
|
|
|
const HomePage = () => {
|
2025-08-13 16:47:27 +01:00
|
|
|
const { posts } = usePosts()
|
|
|
|
|
return (
|
|
|
|
|
<MainTemplate>
|
2025-10-20 17:23:59 +01:00
|
|
|
<div className="mb-7 border-none border-accent/40 py-6 px-6 md:px-8 md:pt-6 bg-accent/15 opacity-90 rounded">
|
2025-08-13 16:47:27 +01:00
|
|
|
<div className="flex flex-col items-center md:flex-row md:items-start gap-4 md:gap-8 md:flex-row-reverse">
|
2025-10-20 17:23:59 +01:00
|
|
|
{/*
|
|
|
|
|
<div className="flex-shrink-0">
|
2025-08-13 16:47:27 +01:00
|
|
|
<img
|
|
|
|
|
src={roundedPortrait}
|
|
|
|
|
alt="Profile picture"
|
|
|
|
|
className="rounded-image w-36 h-36 md:w-38 md:h-38 object-contain border-2 rounded-full"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2025-10-20 17:23:59 +01:00
|
|
|
*/}
|
2025-07-31 16:44:15 +01:00
|
|
|
|
2025-08-13 16:47:27 +01:00
|
|
|
<div className="text-center md:text-left flex-1">
|
2025-10-20 17:23:59 +01:00
|
|
|
<h1 className="scroll-m-20 text-3xl font-bold">
|
2025-08-13 16:47:27 +01:00
|
|
|
Another software engineer with a blog
|
|
|
|
|
</h1>
|
|
|
|
|
<p className="leading-[1.7] mt-5">
|
|
|
|
|
I'm a self-taught software engineer from London. This blog is a
|
|
|
|
|
technical scrapbook and digital garden.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-07-31 16:44:15 +01:00
|
|
|
|
2025-08-13 16:47:27 +01:00
|
|
|
<PostListing
|
|
|
|
|
title="Recent posts"
|
|
|
|
|
posts={posts.slice(0, 5)}
|
|
|
|
|
showAllButton
|
|
|
|
|
/>
|
|
|
|
|
</MainTemplate>
|
|
|
|
|
)
|
2025-07-07 17:08:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { HomePage }
|