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:
+12
-3
@@ -1,5 +1,9 @@
|
||||
import { Logo } from "@/components/logo";
|
||||
import Link from "next/link";
|
||||
import { ChangelogPanel } from "@/components/changelog-panel";
|
||||
import type { ChangelogRelease } from "@/lib/changelog-types";
|
||||
import { type } from "@/lib/typography";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const links = [
|
||||
{
|
||||
@@ -16,13 +20,17 @@ const links = [
|
||||
},
|
||||
];
|
||||
|
||||
export default function FooterSection() {
|
||||
export default function FooterSection({
|
||||
releases,
|
||||
}: {
|
||||
releases: ChangelogRelease[];
|
||||
}) {
|
||||
return (
|
||||
<footer className="py-16 md:py-16 bg-muted border-t">
|
||||
<div className="mx-auto max-w-5xl px-6 flex items-center flex-col">
|
||||
<Logo hasCaption className="mx-auto" />
|
||||
|
||||
<div className="my-4 flex flex-wrap justify-center gap-6 text-sm">
|
||||
<div className={cn("my-4 flex flex-wrap justify-center gap-6", type.link)}>
|
||||
{links.map((link, index) => (
|
||||
<Link
|
||||
key={index}
|
||||
@@ -33,9 +41,10 @@ export default function FooterSection() {
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
<span className="text-muted-foreground block text-center text-sm">
|
||||
<span className={cn(type.link, "block text-center")}>
|
||||
© 1404 فیپ، تمامی حقوق محفوظ است
|
||||
</span>
|
||||
<ChangelogPanel releases={releases} />
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user