Commit c6e3b09e by PLN (Algolia)

home: 'ideas into tools' featured projects section; scaffold devname blog post

The landing's 'projects into posts' section stays true (blog keeps
posts) and a new featured grid sells the gallery via featured: true —
closing the TODO 'Landing page: projects with links'. content/blog/
devname/ scaffolded draft for the pending write-up.
parent 18817cb2
...@@ -3,8 +3,10 @@ import Layout from "@/components/layout"; ...@@ -3,8 +3,10 @@ import Layout from "@/components/layout";
import utilStyles from "@/styles/utils.module.css"; import utilStyles from "@/styles/utils.module.css";
import { getRecentTalksData } from "@/lib/talks"; import { getRecentTalksData } from "@/lib/talks";
import { getBlogPosts } from "@/lib/blog"; import { getBlogPosts } from "@/lib/blog";
import { getFeaturedProjects } from "@/lib/projects";
import Date from "@/components/date"; import Date from "@/components/date";
import HoverTooltip from "@/components/HoverTooltip"; import HoverTooltip from "@/components/HoverTooltip";
import ProjectCard from "@/components/projects/ProjectCard";
export const metadata = { export const metadata = {
title: "PLN's Home", title: "PLN's Home",
...@@ -33,6 +35,7 @@ function TeaserCard({ href, title, meta, description }) { ...@@ -33,6 +35,7 @@ function TeaserCard({ href, title, meta, description }) {
export default function Home() { export default function Home() {
const talks = getRecentTalksData(); const talks = getRecentTalksData();
const posts = getBlogPosts().slice(0, 4); const posts = getBlogPosts().slice(0, 4);
const featuredProjects = getFeaturedProjects();
return ( return (
<div className="max-w-7xl mx-auto px-4"> <div className="max-w-7xl mx-auto px-4">
...@@ -174,6 +177,28 @@ export default function Home() { ...@@ -174,6 +177,28 @@ export default function Home() {
</p> </p>
</section> </section>
<section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}> <section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>
<Link href="/projects/" className={utilStyles.sectionLink}>
<h3>…ideas into <em>tools</em></h3>
</Link>
<p className="description">
I build <Link href="/projects/" className={utilStyles.inlineLink}>tools</Link> and share
them: small, sharp, and documented.
</p>
{featuredProjects.length > 0 && (
<>
<hr />
<h6 className={utilStyles.headingLg}>Featured projects</h6>
<ul className="grid gap-3 sm:grid-cols-2 list-none p-0">
{featuredProjects.map((project) => (
<li key={project.slug}>
<ProjectCard project={project} />
</li>
))}
</ul>
</>
)}
</section>
<section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>
<Link href="/blog/" className={utilStyles.sectionLink}> <Link href="/blog/" className={utilStyles.sectionLink}>
<h3>…projects into <em>posts</em></h3> <h3>…projects into <em>posts</em></h3>
</Link> </Link>
......
---
title: Devname
---
Start typing here.
---
title: Devname
date: '2026-11-06'
draft: true
description: ''
tags: []
---
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment