feat: redesign landing page with brand system and section blocks
Build & Push Docker Image / build (push) Has been cancelled
Build & Push Docker Image / build (push) Has been cancelled
Refresh the homepage around new hero/services/roadmap sections, shared design tokens, and updated brand assets. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
shouldUseParagraphSummary,
|
||||
} from "@/lib/changelog-display";
|
||||
import { ChangelogItem } from "@/components/changelog-item";
|
||||
import { type } from "@/lib/typography";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { APP_VERSION } from "@/lib/version";
|
||||
|
||||
@@ -24,24 +25,29 @@ export function ChangelogVersionCard({ release }: ChangelogVersionCardProps) {
|
||||
return (
|
||||
<article
|
||||
className={cn(
|
||||
"rounded-xl border bg-card text-left shadow-sm",
|
||||
"rounded-xl border bg-card text-start shadow-sm",
|
||||
isCurrent && "border-primary/30 ring-1 ring-primary/15"
|
||||
)}
|
||||
>
|
||||
<div className="p-4">
|
||||
<header>
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<h2 className="font-mono text-base font-semibold tracking-tight text-foreground">
|
||||
<h2 className={cn(type.h4, "font-mono tracking-normal text-foreground")}>
|
||||
v{release.version}
|
||||
</h2>
|
||||
{isCurrent && (
|
||||
<span className="rounded-full bg-primary/10 px-2 py-0.5 text-[11px] font-medium text-primary">
|
||||
Current Version
|
||||
<span
|
||||
className={cn(
|
||||
type.micro,
|
||||
"rounded-full bg-primary/10 px-2 py-0.5 font-medium text-primary"
|
||||
)}
|
||||
>
|
||||
نسخه فعلی
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<time
|
||||
className="mt-1.5 block text-xs text-muted-foreground"
|
||||
className={cn(type.caption, "mt-1.5 block")}
|
||||
dateTime={release.date}
|
||||
dir="ltr"
|
||||
>
|
||||
@@ -55,7 +61,7 @@ export function ChangelogVersionCard({ release }: ChangelogVersionCardProps) {
|
||||
aria-hidden
|
||||
/>
|
||||
|
||||
<div className="text-left text-[13px] leading-relaxed text-muted-foreground">
|
||||
<div className={cn(type["body-sm"], "text-muted-foreground")}>
|
||||
{release.summary ? (
|
||||
<p>{release.summary}</p>
|
||||
) : useParagraph ? (
|
||||
@@ -64,7 +70,7 @@ export function ChangelogVersionCard({ release }: ChangelogVersionCardProps) {
|
||||
<div className="space-y-2">
|
||||
{release.sections.map((section) => (
|
||||
<section key={section.title}>
|
||||
<h3 className="mb-1 text-[13px] font-medium text-foreground/80">
|
||||
<h3 className={cn(type.label, "mb-1 text-foreground/80")}>
|
||||
{CHANGELOG_SECTION_LABELS[section.title]}
|
||||
</h3>
|
||||
<ul className="space-y-1 ps-4">
|
||||
|
||||
Reference in New Issue
Block a user