feat: add version history drawer with release notes
Introduce a footer-triggered Version History drawer with categorized release notes, hardcoded release data, and semver tracking at v0.3.0. Also ships blog blockquote/table styling, site-wide typography, home page image updates, header refinements, and related bug fixes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
"use client";
|
||||
|
||||
import type { BlockquoteBlockPayload } from "@/lib/blog-blocks";
|
||||
import { sanitizeBlockquoteContent } from "@/lib/blockquote-content";
|
||||
import { blockquoteVariantClass } from "@/components/blog-blockquote-styles";
|
||||
import { BlogBlockquoteDecorations } from "@/components/blog-blockquote-decorations";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Quote } from "lucide-react";
|
||||
|
||||
interface BlogBlockquoteProps {
|
||||
@@ -8,22 +10,23 @@ interface BlogBlockquoteProps {
|
||||
}
|
||||
|
||||
export function BlogBlockquote({ payload }: BlogBlockquoteProps) {
|
||||
const { content, citation } = payload;
|
||||
if (!content.trim()) return null;
|
||||
const { content, citation, variant = "gray" } = payload;
|
||||
const cleanContent = sanitizeBlockquoteContent(content);
|
||||
if (!cleanContent.trim()) return null;
|
||||
|
||||
return (
|
||||
<figure className="my-8 not-prose">
|
||||
<blockquote className="relative rounded-xl border border-border bg-muted/40 px-6 py-2 pr-14 text-foreground shadow-sm">
|
||||
<Quote
|
||||
className="absolute right-4 top-4 size-8 text-muted-foreground/40"
|
||||
aria-hidden
|
||||
/>
|
||||
<blockquote
|
||||
className={cn("blog-blockquote text-foreground", blockquoteVariantClass[variant])}
|
||||
>
|
||||
<BlogBlockquoteDecorations variant={variant} />
|
||||
<Quote className="blog-blockquote__icon" aria-hidden />
|
||||
<div
|
||||
className="blog-blockquote-content text-lg leading-relaxed text-justify [&_p]:my-2 [&_a]:text-primary [&_a]:underline hover:[&_a]:no-underline"
|
||||
dangerouslySetInnerHTML={{ __html: content }}
|
||||
className="blog-blockquote__content"
|
||||
dangerouslySetInnerHTML={{ __html: cleanContent }}
|
||||
/>
|
||||
{citation ? (
|
||||
<footer className="mt-4 border-t border-border/60 pt-4">
|
||||
<footer className="blog-blockquote__footer">
|
||||
<cite className="text-sm text-muted-foreground not-italic">
|
||||
{citation}
|
||||
</cite>
|
||||
|
||||
Reference in New Issue
Block a user