Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
www
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
www
Commits
41a6c2b7
Commit
41a6c2b7
authored
Nov 01, 2026
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
landing: recent posts rail above talks — teaser cards for both
Co-Authored-By:
Claude Opus 5
<
noreply@anthropic.com
>
parent
f8ab0604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
9 deletions
+52
-9
page.js
app/page.js
+52
-9
No files found.
app/page.js
View file @
41a6c2b7
...
@@ -2,14 +2,37 @@ import Link from "next/link";
...
@@ -2,14 +2,37 @@ import Link from "next/link";
import
Layout
from
"@/components/layout"
;
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
Date
from
"@/components/date"
;
import
HoverTooltip
from
"@/components/HoverTooltip"
;
import
HoverTooltip
from
"@/components/HoverTooltip"
;
export
const
metadata
=
{
export
const
metadata
=
{
title
:
"PLN's Home"
,
title
:
"PLN's Home"
,
};
};
/** Card for a post/talk teaser — title, meta line, clamped abstract. */
function
TeaserCard
({
href
,
title
,
meta
,
description
})
{
return
(
<
Link
href
=
{
href
}
className
=
"block rounded-xl border p-4 leading-relaxed transition-colors border-[var(--border)] bg-[var(--surface)] hover:bg-[var(--surface-raised)]"
>
<
span
className
=
"block font-medium text-[var(--text-primary)]"
>
{
title
}
<
/span
>
{
meta
&&
(
<
span
className
=
"block mt-1 text-xs text-[var(--text-muted)]"
>
{
meta
}
<
/span
>
)}
{
description
&&
(
<
span
className
=
"block mt-2 text-sm text-[var(--text-muted)] line-clamp-3"
>
{
description
}
<
/span
>
)}
<
/Link
>
);
}
export
default
function
Home
()
{
export
default
function
Home
()
{
const
talks
=
getRecentTalksData
();
const
talks
=
getRecentTalksData
();
const
posts
=
getBlogPosts
().
slice
(
0
,
4
);
return
(
return
(
<
div
className
=
"max-w-7xl mx-auto px-4"
>
<
div
className
=
"max-w-7xl mx-auto px-4"
>
...
@@ -151,6 +174,28 @@ export default function Home() {
...
@@ -151,6 +174,28 @@ export default function Home() {
</p>
</p>
</section>
</section>
<section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>
<section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>
<Link href="/blog/" className={utilStyles.sectionLink}>
<h3>…projects into <em>posts</em></h3>
</Link>
<p className="description">
Write-ups and lab notes on <Link href="/blog/" className={utilStyles.inlineLink}>the blog</Link>.
</p>
<hr />
<h6 className={utilStyles.headingLg}>Most recent posts</h6>
<ul className="grid gap-3 list-none p-0">
{posts.map(({ slug, title, date, description }) => (
<li key={slug}>
<TeaserCard
href={`/blog/${slug}`}
title={title}
meta={<Date dateString={date} />}
description={description}
/>
</li>
))}
</ul>
</section>
<section className={`${utilStyles.headingMd} ${utilStyles.padding1px}`}>
<Link href="/talks/" className={utilStyles.sectionLink}>
<Link href="/talks/" className={utilStyles.sectionLink}>
<h3>…ideas into <em>talks</em></h3>
<h3>…ideas into <em>talks</em></h3>
</Link>
</Link>
...
@@ -161,16 +206,14 @@ export default function Home() {
...
@@ -161,16 +206,14 @@ export default function Home() {
</p>
</p>
<hr />
<hr />
<h6 className={utilStyles.headingLg}>Most recent talks</h6>
<h6 className={utilStyles.headingLg}>Most recent talks</h6>
<ul className=
{utilStyles.list}
>
<ul className=
"grid gap-3 list-none p-0"
>
{talks.map(({ id, title, description }) => (
{talks.map(({ id, title, description }) => (
<li className={utilStyles.listItem} key={id}>
<li key={id}>
<Link href={`/talks#${id}`} className={utilStyles.listItemLink}>
<TeaserCard
<span>{title}</span>
href={`/talks#${id}`}
</Link>
title={title}
{description && (
description={description}
<small className={utilStyles.lightText}>{description}</small>
/>
)}
<br />
</li>
</li>
))}
))}
</ul>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment