systems-obscure/src/pages/home.jsx

29 lines
827 B
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"
2026-03-11 16:06:45 +00:00
import { Link } from "react-router"
2025-07-07 17:08:27 +01:00
const HomePage = () => {
2026-03-13 18:40:02 +00:00
const { posts } = usePosts()
return (
<MainTemplate>
<p>
A wizard who goes to bed early. This is <Link to="/about">my</Link>{" "}
technical scrapbook and digital garden.
</p>
2025-07-31 16:44:15 +01:00
2026-03-13 18:40:02 +00:00
<PostListing title="Recent posts" posts={posts.slice(0, 5)} />
2026-03-08 19:08:26 +00:00
2026-03-13 18:40:02 +00:00
<PostListing
title="Highlights"
posts={posts.filter((post) => post.tags.includes("highlight"))}
/>
</MainTemplate>
)
2025-07-07 17:08:27 +01:00
}
export { HomePage }