Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Restyle blog to match the landing design system (#3092)

Luke Vella17216da6072d
diff --git a/apps/landing/public/locales/en/blog.json b/apps/landing/public/locales/en/blog.json
index 804f967dc..258730d8c 100644
--- a/apps/landing/public/locales/en/blog.json
+++ b/apps/landing/public/locales/en/blog.json
@@ -1,5 +1,7 @@
{
"blogDescription": "News, updates and announcements about Rallly.",
+ "blogFilterAll": "All",
+ "blogPublishedOn": "Published on",
"blogTitle": "Rallly - Blog",
- "recentPosts": "Recent posts"
+ "blogWrittenBy": "Written by"
}
diff --git a/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx b/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx
index f7f5c1ad0..ad39fb04c 100644
--- a/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx
@@ -1,15 +1,17 @@
"use cache";
-import { buttonVariants } from "@rallly/ui";
import { absoluteUrl } from "@rallly/utils/absolute-url";
-import { ArrowLeftIcon } from "lucide-react";
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
import Image from "next/image";
import Link from "next/link";
import { notFound } from "next/navigation";
import { MDXRemote } from "next-mdx-remote/rsc";
-import PostHeader from "@/components/blog/post-header";
+import { Trans } from "react-i18next/TransWithoutContext";
+import DateFormatter from "@/components/blog/date-formatter";
+import { Cta } from "@/components/home/cta";
+import { Section } from "@/components/section";
+import { getTranslation } from "@/i18n/server";
import { getAllPosts, getPostBySlug } from "@/lib/api";
export default async function Page(props: {
@@ -17,11 +19,17 @@ export default async function Page(props: {
}) {
cacheLife("max");
const params = await props.params;
+ const { t, i18n } = await getTranslation(params.locale, [
+ "blog",
+ "common",
+ "home",
+ ]);
const post = getPostBySlug(params.slug, [
"title",
"date",
"slug",
"author",
+ "category",
"excerpt",
"content",
]);
@@ -31,40 +39,120 @@ export default async function Page(props: {
}
return (
- <div>
- <nav className="mb-4">
- <Link href="/blog" className={buttonVariants({ variant: "ghost" })}>
- <ArrowLeftIcon className="size-4" /> All Posts
- </Link>
- </nav>
- <article className="space-y-4">
- <PostHeader title={post.title} date={post.date} />
- <div className="blog-content">
- <MDXRemote source={post.content} />
- </div>
- <div className="mt-8 flex items-center gap-x-4">
- <Image
- src="https://d39ixtfgglw55o.cloudfront.net/images/luke.webp"
- width={48}
- height={48}
- className="rounded-full"
- alt="Luke Vella"
- />
- <div>
- <div className="font-medium text-foreground leading-none">
- Luke Vella
- </div>
- <div>
- <Link
- className="text-muted-foreground text-sm hover:underline"
- href="https://twitter.com/imlukevella"
- >
- @imlukevella
- </Link>
- </div>
- </div>
+ <div className="divide-y">
+ <Section>
+ <nav className="flex items-center gap-2 text-sm">
+ <Link href="/blog" className="text-gray-500 hover:text-gray-800">
+ <Trans
+ t={t}
+ i18n={i18n}
+ ns="common"
+ i18nKey="blog"
+ defaults="Blog"
+ />
+ </Link>
+ {post.category ? (
+ <>
+ <span aria-hidden="true" className="text-gray-400">
+ /
+ </span>
+ <span className="text-gray-800">{post.category}</span>
+ </>
+ ) : null}
+ </nav>
+ <h1 className="mt-8 max-w-2xl text-balance font-medium text-3xl text-gray-800 tracking-tight sm:text-4xl">
+ {post.title}
+ </h1>
+ <div className="mt-8 flex flex-col gap-8 lg:flex-row lg:items-start lg:justify-between lg:gap-16">
+ <aside className="lg:sticky lg:top-24 lg:order-2 lg:w-56 lg:shrink-0">
+ <dl className="flex flex-wrap gap-x-12 gap-y-6 lg:flex-col">
+ <div>
+ <dt className="text-gray-500 text-sm">
+ <Trans
+ t={t}
+ i18n={i18n}
+ ns="blog"
+ i18nKey="blogPublishedOn"
+ defaults="Published on"
+ />
+ </dt>
+ <dd className="mt-1 text-gray-800">
+ <DateFormatter dateString={post.date} />
+ </dd>
+ </div>
+ <div>
+ <dt className="text-gray-500 text-sm">
+ <Trans
+ t={t}
+ i18n={i18n}
+ ns="blog"
+ i18nKey="blogWrittenBy"
+ defaults="Written by"
+ />
+ </dt>
+ <dd className="mt-1 flex items-center gap-2">
+ <Image
+ src="https://d39ixtfgglw55o.cloudfront.net/images/luke.webp"
+ width={24}
+ height={24}
+ className="rounded-full"
+ alt=""
+ />
+ <Link
+ className="text-gray-800 hover:underline"
+ href="https://twitter.com/imlukevella"
+ >
+ Luke Vella
+ </Link>
+ </dd>
+ </div>
+ </dl>
+ </aside>
+ <article className="blog-content min-w-0 max-w-2xl lg:order-1">
+ <MDXRemote source={post.content} />
+ </article>
</div>
- </article>
+ </Section>
+ <Section className="sm:py-24">
+ <Cta
+ title={
+ <Trans
+ t={t}
+ i18n={i18n}
+ ns="home"
+ i18nKey="finalCtaTitle"
+ defaults="Ready to find the best time to meet?"
+ />
+ }
+ description={
+ <Trans
+ t={t}
+ i18n={i18n}
+ ns="home"
+ i18nKey="finalCtaDescription"
+ defaults="Set up your poll in under a minute. No account, no downloads, no chasing people for replies."
+ />
+ }
+ buttonLabel={
+ <Trans
+ t={t}
+ i18n={i18n}
+ ns="home"
+ i18nKey="createAPoll"
+ defaults="Create a poll"
+ />
+ }
+ hint={
+ <Trans
+ t={t}
+ i18n={i18n}
+ ns="home"
+ i18nKey="hint"
+ defaults="It's free! No login required."
+ />
+ }
+ />
+ </Section>
</div>
);
}
diff --git a/apps/landing/src/app/[locale]/(main)/blog/layout.tsx b/apps/landing/src/app/[locale]/(main)/blog/layout.tsx
deleted file mode 100644
index 0f7621fa0..000000000
--- a/apps/landing/src/app/[locale]/(main)/blog/layout.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function BlogLayout({
- children,
-}: {
- children: React.ReactNode;
-}) {
- return (
- <div className="space-y-6 py-6">
- <div className="w-full">
- <div className="mx-auto max-w-2xl space-y-12">{children}</div>
- </div>
- </div>
- );
-}
diff --git a/apps/landing/src/app/[locale]/(main)/blog/page.tsx b/apps/landing/src/app/[locale]/(main)/blog/page.tsx
index c3b6fdb56..b6aec4283 100644
--- a/apps/landing/src/app/[locale]/(main)/blog/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/blog/page.tsx
@@ -2,51 +2,49 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import { Trans } from "react-i18next/TransWithoutContext";
+import { Hero } from "@/components/home/hero";
+import { Section, SectionContent } from "@/components/section";
import { getTranslation } from "@/i18n/server";
import { getAlternates } from "@/lib/alternates";
import { getAllPosts } from "@/lib/api";
-import { PostPreview } from "./post-preview";
+import { PostsList } from "./posts-list";
export default async function Page(props: {
params: Promise<{ locale: string }>;
}) {
cacheLife("max");
const { locale } = await props.params;
- const { t } = await getTranslation(locale, "blog");
+ const { t } = await getTranslation(locale, ["blog", "common"]);
const allPosts = getAllPosts([
"title",
"date",
"slug",
"author",
- "coverImage",
+ "category",
"excerpt",
]);
return (
- <section className="space-y-12">
- <header className="sm:p-6">
- <h1 className="font-bold text-4xl tracking-tight">
- <Trans
- t={t}
- ns="blog"
- i18nKey="recentPosts"
- defaults="Recent posts"
- />
- </h1>
- </header>
- <div className="mb-16 grid grid-cols-1 gap-4">
- {allPosts.map((post) => (
- <PostPreview
- key={post.slug}
- title={post.title}
- coverImage={post.coverImage}
- date={post.date}
- slug={post.slug}
- excerpt={post.excerpt}
- />
- ))}
- </div>
- </section>
+ <Section>
+ <Hero
+ title={t("blog", { ns: "common", defaultValue: "Blog" })}
+ description={t("blogDescription", {
+ ns: "blog",
+ defaultValue: "News, updates and announcements about Rallly.",
+ })}
+ />
+ <SectionContent>
+ <PostsList
+ posts={allPosts.map((post) => ({
+ title: post.title,
+ category: post.category,
+ date: post.date,
+ slug: post.slug,
+ excerpt: post.excerpt,
+ }))}
+ allLabel={t("blogFilterAll", { ns: "blog", defaultValue: "All" })}
+ />
+ </SectionContent>
+ </Section>
);
}
diff --git a/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx b/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx
index 457aaf057..da9766423 100644
--- a/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx
+++ b/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx
@@ -8,34 +8,38 @@ dayjs.extend(localizedFormat);
type Props = {
title: string;
- coverImage?: string;
+ category?: string;
date: string;
excerpt?: string;
slug: string;
};
-export const PostPreview = ({ title, date, excerpt, slug }: Props) => {
+export const PostPreview = ({
+ title,
+ category,
+ date,
+ excerpt,
+ slug,
+}: Props) => {
return (
- <article className="flex flex-col gap-2 sm:flex-row sm:gap-8">
- <div>
- <div className="w-48 pt-1 text-muted-foreground sm:text-right">
- <time dateTime={date}>{dayjs(date).format("LL")}</time>
- </div>
- </div>
- <div className="grow">
- <h3 className="mb-2 font-bold text-lg tracking-tight">
- <Link
- as={`/blog/${slug}`}
- href="/blog/[slug]"
- className="hover:text-indigo-600 hover:underline"
- >
- {title}
- </Link>
- </h3>
- <p className="mb-4 text-base text-gray-600 leading-relaxed">
- {excerpt}
- </p>
+ <article className="py-8">
+ <div className="flex items-center gap-2 text-gray-500 text-sm">
+ {category ? (
+ <>
+ <span>{category}</span>
+ <span aria-hidden="true">·</span>
+ </>
+ ) : null}
+ <time dateTime={date}>{dayjs(date).format("LL")}</time>
</div>
+ <h2 className="mt-2 text-balance font-medium text-gray-800 text-xl tracking-tight">
+ <Link href={`/blog/${slug}`} className="hover:underline">
+ {title}
+ </Link>
+ </h2>
+ <p className="mt-2 max-w-prose text-pretty text-base/6 text-gray-500">
+ {excerpt}
+ </p>
</article>
);
};
diff --git a/apps/landing/src/app/[locale]/(main)/blog/posts-list.tsx b/apps/landing/src/app/[locale]/(main)/blog/posts-list.tsx
new file mode 100644
index 000000000..fcc3dcadd
--- /dev/null
+++ b/apps/landing/src/app/[locale]/(main)/blog/posts-list.tsx
@@ -0,0 +1,100 @@
+"use client";
+
+import { cn } from "@rallly/ui";
+import * as React from "react";
+import { PostPreview } from "./post-preview";
+
+type Post = {
+ title: string;
+ category?: string;
+ date: string;
+ excerpt?: string;
+ slug: string;
+};
+
+function FilterPill({
+ active,
+ onClick,
+ children,
+}: {
+ active: boolean;
+ onClick: () => void;
+ children: React.ReactNode;
+}) {
+ return (
+ <button
+ type="button"
+ aria-pressed={active}
+ onClick={onClick}
+ className={cn(
+ "rounded-full border px-3.5 py-1.5 text-sm transition-colors",
+ active
+ ? "border-gray-300 bg-gray-200/50 text-gray-800"
+ : "bg-white text-gray-600 hover:border-gray-300",
+ )}
+ >
+ {children}
+ </button>
+ );
+}
+
+export function PostsList({
+ posts,
+ allLabel,
+}: {
+ posts: Post[];
+ allLabel: string;
+}) {
+ const [category, setCategory] = React.useState<string | null>(null);
+
+ const categories = React.useMemo(() => {
+ const counts = new Map<string, number>();
+ for (const post of posts) {
+ if (post.category) {
+ counts.set(post.category, (counts.get(post.category) ?? 0) + 1);
+ }
+ }
+ return Array.from(counts.keys()).sort(
+ (a, b) =>
+ (counts.get(b) ?? 0) - (counts.get(a) ?? 0) || a.localeCompare(b),
+ );
+ }, [posts]);
+
+ const filtered = category
+ ? posts.filter((post) => post.category === category)
+ : posts;
+
+ return (
+ <div>
+ <div className="flex flex-wrap gap-2">
+ <FilterPill
+ active={category === null}
+ onClick={() => setCategory(null)}
+ >
+ {allLabel}
+ </FilterPill>
+ {categories.map((c) => (
+ <FilterPill
+ key={c}
+ active={category === c}
+ onClick={() => setCategory(c)}
+ >
+ {c}
+ </FilterPill>
+ ))}
+ </div>
+ <div className="mt-8 divide-y border-t">
+ {filtered.map((post) => (
+ <PostPreview
+ key={post.slug}
+ title={post.title}
+ category={post.category}
+ date={post.date}
+ slug={post.slug}
+ excerpt={post.excerpt}
+ />
+ ))}
+ </div>
+ </div>
+ );
+}
diff --git a/apps/landing/src/app/[locale]/globals.css b/apps/landing/src/app/[locale]/globals.css
index 60e3ccf4c..f89681927 100644
--- a/apps/landing/src/app/[locale]/globals.css
+++ b/apps/landing/src/app/[locale]/globals.css
@@ -15,13 +15,13 @@ body {
@apply mb-4 mt-8;
}
h2 {
- @apply text-2xl font-semibold tracking-tight;
+ @apply text-2xl font-medium tracking-tight text-gray-800;
}
h3 {
- @apply text-xl font-semibold;
+ @apply text-xl font-medium tracking-tight text-gray-800;
}
h4 {
- @apply text-lg font-semibold;
+ @apply text-lg font-medium tracking-tight text-gray-800;
}
p {
@apply mb-6 leading-relaxed;
diff --git a/apps/landing/src/components/blog/post-header.tsx b/apps/landing/src/components/blog/post-header.tsx
deleted file mode 100644
index 9e9a4fb25..000000000
--- a/apps/landing/src/components/blog/post-header.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import DateFormatter from "./date-formatter";
-
-type Props = {
- title: string;
- date: string;
-};
-
-const PostHeader = ({ title, date }: Props) => {
- return (
- <header>
- <h1 className="mb-2 font-bold text-2xl tracking-tighter sm:text-4xl">
- {title}
- </h1>
- <div className="mb-2 text-gray-400 text-lg">
- <DateFormatter dateString={date} />
- </div>
- </header>
- );
-};
-
-export default PostHeader;
diff --git a/apps/landing/src/posts/introducing-custom-branding.md b/apps/landing/src/posts/introducing-custom-branding.md
index 2e61e2b5d..20d27fc36 100644
--- a/apps/landing/src/posts/introducing-custom-branding.md
+++ b/apps/landing/src/posts/introducing-custom-branding.md
@@ -1,6 +1,7 @@
---
title: Introducing Custom Branding
date: "2026-04-09"
+category: Product
excerpt: You can now show your logo and brand colors to your participants.
---
diff --git a/apps/landing/src/posts/introducing-dark-mode.md b/apps/landing/src/posts/introducing-dark-mode.md
index 59d332d7d..f373576cf 100644
--- a/apps/landing/src/posts/introducing-dark-mode.md
+++ b/apps/landing/src/posts/introducing-dark-mode.md
@@ -1,6 +1,7 @@
---
title: Introducing Dark Mode
date: "2026-01-01"
+category: Product
excerpt: A new dark theme that's easy on the eyes and perfect for late night scheduling.
---
diff --git a/apps/landing/src/posts/introducing-quick-create.md b/apps/landing/src/posts/introducing-quick-create.md
index 8eb4e903e..41fb0e691 100644
--- a/apps/landing/src/posts/introducing-quick-create.md
+++ b/apps/landing/src/posts/introducing-quick-create.md
@@ -1,6 +1,7 @@
---
title: Quick Create
date: "2025-01-21"
+category: Product
excerpt: Introducing Quick Create, a streamlined way to get started with Rallly.
---
diff --git a/apps/landing/src/posts/introducing-rallly-cli.md b/apps/landing/src/posts/introducing-rallly-cli.md
index 508f5bb20..783390504 100644
--- a/apps/landing/src/posts/introducing-rallly-cli.md
+++ b/apps/landing/src/posts/introducing-rallly-cli.md
@@ -1,6 +1,7 @@
---
title: Introducing the Rallly CLI
date: "2026-04-29"
+category: Self-hosting
excerpt: A new CLI for installing, configuring, and managing self-hosted Rallly instances, with HTTPS and image uploads working out of the box.
---
diff --git a/apps/landing/src/posts/introducing-rallly-pro.md b/apps/landing/src/posts/introducing-rallly-pro.md
index dabe23070..5390275be 100644
--- a/apps/landing/src/posts/introducing-rallly-pro.md
+++ b/apps/landing/src/posts/introducing-rallly-pro.md
@@ -1,6 +1,7 @@
---
title: Coming Soon - Rallly Pro
date: "2023-06-19"
+category: Product
excerpt: I'm excited to announce a significant update that will be available soon.
---
diff --git a/apps/landing/src/posts/introducing-spaces.md b/apps/landing/src/posts/introducing-spaces.md
index 2b7192374..768aa3828 100644
--- a/apps/landing/src/posts/introducing-spaces.md
+++ b/apps/landing/src/posts/introducing-spaces.md
@@ -1,6 +1,7 @@
---
title: Introducing Spaces
date: "2025-08-21"
+category: Product
excerpt: Centralized billing, member management, and seamless collaboration in one place.
---
diff --git a/apps/landing/src/posts/july-recap.md b/apps/landing/src/posts/july-recap.md
index 2da1f345c..769d75474 100644
--- a/apps/landing/src/posts/july-recap.md
+++ b/apps/landing/src/posts/july-recap.md
@@ -1,6 +1,7 @@
---
title: July Recap & Pricing Updates
date: "2023-08-16"
+category: Company
excerpt: A recap of what has changed and some information about the upcoming pricing changes.
---
diff --git a/apps/landing/src/posts/mobile-ui-update.md b/apps/landing/src/posts/mobile-ui-update.md
index d39e70551..86fc458ca 100644
--- a/apps/landing/src/posts/mobile-ui-update.md
+++ b/apps/landing/src/posts/mobile-ui-update.md
@@ -1,6 +1,7 @@
---
title: Mobile Poll UI Refresh
date: "2022-04-20"
+category: Product
excerpt: An update focusing on improving the usability of the app on mobile devices.
---
diff --git a/apps/landing/src/posts/mobile-voting-redesign.md b/apps/landing/src/posts/mobile-voting-redesign.md
index d7f1cedfd..5b2a24387 100644
--- a/apps/landing/src/posts/mobile-voting-redesign.md
+++ b/apps/landing/src/posts/mobile-voting-redesign.md
@@ -1,6 +1,7 @@
---
title: A clearer way to vote on your phone
date: "2026-08-14"
+category: Product
excerpt: We redesigned the mobile voting experience so that choosing your availability is obvious at a glance.
---
diff --git a/apps/landing/src/posts/new-version-announcment.md b/apps/landing/src/posts/new-version-announcment.md
index c594e006f..8fc260c16 100644
--- a/apps/landing/src/posts/new-version-announcment.md
+++ b/apps/landing/src/posts/new-version-announcment.md
@@ -1,6 +1,7 @@
---
title: Introducing Rallly 2.0
date: "2022-04-08"
+category: Company
tags: ["announcement"]
draft: false
excerpt: A look at Rallly's first major update.
diff --git a/apps/landing/src/posts/rallly-3-0-self-hosting.md b/apps/landing/src/posts/rallly-3-0-self-hosting.md
index be16c9e9b..2c3df0a7b 100644
--- a/apps/landing/src/posts/rallly-3-0-self-hosting.md
+++ b/apps/landing/src/posts/rallly-3-0-self-hosting.md
@@ -1,6 +1,7 @@
---
title: Rallly 3.0 Self-Hosting
date: "2023-09-13"
+category: Self-hosting
excerpt: An exciting announcement for self-hosters.
---
diff --git a/apps/landing/src/posts/rallly-3-0.md b/apps/landing/src/posts/rallly-3-0.md
index 918d72944..d15da2167 100644
--- a/apps/landing/src/posts/rallly-3-0.md
+++ b/apps/landing/src/posts/rallly-3-0.md
@@ -1,6 +1,7 @@
---
title: Introducing Rallly 3.0 - What's new?
date: "2023-06-19"
+category: Product
excerpt: Rallly 3.0 is a significant stepping stone as I head towards expanding Rallly with more features.
---
diff --git a/apps/landing/src/posts/rallly-pro-launch.md b/apps/landing/src/posts/rallly-pro-launch.md
index c497a0e7e..ff92fb8d6 100644
--- a/apps/landing/src/posts/rallly-pro-launch.md
+++ b/apps/landing/src/posts/rallly-pro-launch.md
@@ -1,6 +1,7 @@
---
title: Rallly Pro Launch
date: "2023-07-05"
+category: Product
excerpt: Introducing Rallly Pro, the premium subscription plan that will complete your scheduling workflow.
---
diff --git a/apps/landing/src/posts/security-update-react2shell.md b/apps/landing/src/posts/security-update-react2shell.md
index 8f5b1adb5..5b04fb333 100644
--- a/apps/landing/src/posts/security-update-react2shell.md
+++ b/apps/landing/src/posts/security-update-react2shell.md
@@ -1,6 +1,7 @@
---
title: "Security Update: React2Shell"
date: "2025-12-12"
+category: Security
excerpt: Important security updates addressing React Server Components vulnerabilities including React2Shell. Self-hosters should update immediately.
---
diff --git a/apps/landing/src/posts/the-future-of-rallly.md b/apps/landing/src/posts/the-future-of-rallly.md
index 509e0edc6..3b270c88a 100644
--- a/apps/landing/src/posts/the-future-of-rallly.md
+++ b/apps/landing/src/posts/the-future-of-rallly.md
@@ -1,6 +1,7 @@
---
title: The Future of Rallly
date: "2023-06-18"
+category: Company
excerpt: Rallly has always been about simplifying group scheduling, but my aim is to evolve it into more than just a polling platform.
---
diff --git a/apps/landing/src/posts/white-labeling-support.md b/apps/landing/src/posts/white-labeling-support.md
index e9feb57ae..ef32beea7 100644
--- a/apps/landing/src/posts/white-labeling-support.md
+++ b/apps/landing/src/posts/white-labeling-support.md
@@ -1,6 +1,7 @@
---
title: White Labeling for Self-Hosted Instances
date: "2026-01-15"
+category: Self-hosting
excerpt: Customize your Rallly instance with your own branding, colors, and logos.
---