'use client';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Badge } from '@/components/ui/badge';
const posts = [
{
title:
'How we rebuilt the Northstar event pipeline to handle 4 billion events a day',
excerpt:
'Our original ingestion service was a single Kafka consumer written in a weekend. Here is how we replaced it with a partitioned, exactly-once pipeline without dropping a single customer event.',
category: 'Engineering',
date: 'Oct 14, 2026',
readTime: '9 min read',
image:
'https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80',
imageAlt: 'Close-up of a circuit board',
author: {
name: 'Elena Marchetti',
role: 'Staff Engineer',
avatar: 'https://avatar.vercel.sh/elena-marchetti',
initials: 'EM',
},
},
{
title: 'Redesigning dashboards: fewer charts, better questions',
excerpt:
'We interviewed 42 teams about what they actually look at on Monday morning. The answer changed how every Northstar dashboard is laid out, from the default time range to the colour of the second line.',
category: 'Design',
date: 'Oct 2, 2026',
readTime: '7 min read',
image:
'https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80',
imageAlt: 'Analytics dashboard on a laptop screen',
author: {
name: 'Amara Okafor',
role: 'Design Director',
avatar: 'https://avatar.vercel.sh/amara-okafor',
initials: 'AO',
},
},
{
title: 'Migrating 40 TB of event data to columnar storage without downtime',
excerpt:
'Row-oriented Postgres served us well until queries on 90-day retention started timing out. This is the full story of our move to Parquet on object storage, including the two rollbacks.',
category: 'Engineering',
date: 'Sep 18, 2026',
readTime: '11 min read',
image:
'https://images.unsplash.com/photo-1531297484001-80022131f5a1?auto=format&fit=crop&w=1200&q=80',
imageAlt: 'Laptop glowing in a dark room',
author: {
name: 'Elena Marchetti',
role: 'Staff Engineer',
avatar: 'https://avatar.vercel.sh/elena-marchetti',
initials: 'EM',
},
},
{
title:
'What a year of pricing experiments taught us about usage-based billing',
excerpt:
'We ran eleven pricing tests in twelve months. Most of them lost. The three that won reshaped our plans, our sales motion and how we talk about events on the pricing page.',
category: 'Product',
date: 'Sep 3, 2026',
readTime: '8 min read',
image:
'https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=80',
imageAlt: 'Team meeting at a whiteboard',
author: {
name: 'Tobias Weiss',
role: 'Product Lead',
avatar: 'https://avatar.vercel.sh/tobias-weiss',
initials: 'TW',
},
},
{
title: 'How Lumen Health cut onboarding drop-off by 31% with funnel analysis',
excerpt:
'Lumen Health had a nine-step onboarding flow and no idea where patients were leaving. Their product team used Northstar funnels to find the step, fix it and prove the result in six weeks.',
category: 'Customers',
date: 'Aug 20, 2026',
readTime: '6 min read',
image:
'https://images.unsplash.com/photo-1573164713988-8665fc963095?auto=format&fit=crop&w=1200&q=80',
imageAlt: 'Woman working on a laptop in an office',
author: {
name: 'Sofia Reyes',
role: 'Head of Customer Success',
avatar: 'https://avatar.vercel.sh/sofia-reyes',
initials: 'SR',
},
},
{
title: 'Sampling is not a dirty word: how we estimate retention at scale',
excerpt:
'Computing exact retention curves across billions of events is slow and expensive. We explain the statistical sampling Northstar uses, the error bounds we guarantee and when we fall back to exact counts.',
category: 'Engineering',
date: 'Jul 22, 2026',
readTime: '10 min read',
image:
'https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&w=1200&q=80',
imageAlt: 'Green code on a dark screen',
author: {
name: 'Jun Park',
role: 'Data Scientist',
avatar: 'https://avatar.vercel.sh/jun-park',
initials: 'JP',
},
},
];
/**
* Centred blog heading with a three-column grid of six post cards: cover image, category and date, title, excerpt and author row.
*/
export default function Blog01() {
return (
<section className="w-full py-16 sm:py-24">
<div className="mx-auto w-full max-w-6xl px-6">
<div className="mx-auto max-w-2xl text-center">
<p className="font-medium text-primary text-sm">
The Northstar Journal
</p>
<h2 className="mt-2 text-balance font-semibold text-3xl text-foreground tracking-tight sm:text-4xl">
Notes from the team building product analytics
</h2>
<p className="mt-4 text-pretty text-lg text-muted-foreground">
Engineering deep dives, design decisions and customer stories from
the people who build and run Northstar every day.
</p>
</div>
<div className="mt-14 grid grid-cols-1 gap-x-8 gap-y-12 sm:grid-cols-2 md:grid-cols-3">
{posts.map((post) => (
<article className="group flex flex-col" key={post.title}>
<a className="block overflow-hidden rounded-xl" href="#">
<img
alt={post.imageAlt}
className="aspect-[16/10] w-full rounded-xl object-cover transition-transform duration-300 ease-out group-hover:scale-[1.02]"
loading="lazy"
src={post.image}
/>
</a>
<div className="mt-5 flex items-center gap-3 text-muted-foreground text-xs">
<Badge variant="secondary">{post.category}</Badge>
<time>{post.date}</time>
</div>
<h3 className="mt-3 font-semibold text-foreground text-lg leading-snug">
<a className="hover:underline hover:underline-offset-4" href="#">
{post.title}
</a>
</h3>
<p className="mt-2 line-clamp-2 text-muted-foreground text-sm leading-6">
{post.excerpt}
</p>
<div className="mt-5 flex items-center gap-3">
<Avatar className="size-8">
<AvatarImage alt={post.author.name} src={post.author.avatar} />
<AvatarFallback>{post.author.initials}</AvatarFallback>
</Avatar>
<div className="flex min-w-0 flex-col text-sm leading-tight">
<span className="truncate font-medium text-foreground">
{post.author.name}
</span>
<span className="text-muted-foreground text-xs">
{post.readTime}
</span>
</div>
</div>
</article>
))}
</div>
</div>
</section>
);
}