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:
+10
-8
@@ -10,6 +10,7 @@ import {
|
||||
} from "@/components/ui/collapsible";
|
||||
import { ScrollArea } from "@/components/ui/scroll-area";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { type } from "@/lib/typography";
|
||||
import type { TocItem } from "@/lib/blog-utils";
|
||||
|
||||
function useScrollProgress() {
|
||||
@@ -68,10 +69,10 @@ const tocLinkClass = (
|
||||
isActive: boolean
|
||||
) =>
|
||||
cn(
|
||||
"block rounded-md border-r-2 rounded-s-none border-transparent py-1.5 text-sm transition-colors hover:text-foreground hover:bg-muted/60",
|
||||
level === 2 && "pr-3",
|
||||
level === 3 && "pr-5",
|
||||
level === 4 && "pr-7",
|
||||
"block rounded-md border-e-2 rounded-s-none border-transparent py-1.5 text-sm leading-snug tracking-normal transition-colors hover:text-foreground hover:bg-muted/60",
|
||||
level === 2 && "pe-3",
|
||||
level === 3 && "pe-5",
|
||||
level === 4 && "pe-7",
|
||||
isActive
|
||||
? "font-medium text-foreground border-primary bg-muted/50"
|
||||
: "text-muted-foreground"
|
||||
@@ -164,7 +165,7 @@ export function BlogToc({ items, className }: BlogTocProps) {
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center gap-0.5 rounded-md border-r-2 rounded-s-none py-1.5 pr-3",
|
||||
"flex items-center gap-0.5 rounded-md border-e-2 rounded-s-none py-1.5 pe-3",
|
||||
activeId === heading.id ? "border-primary bg-muted/50" : "border-transparent"
|
||||
)}
|
||||
>
|
||||
@@ -188,7 +189,7 @@ export function BlogToc({ items, className }: BlogTocProps) {
|
||||
</CollapsibleTrigger>
|
||||
</div>
|
||||
<CollapsibleContent>
|
||||
<div className="space-y-1 pt-0.5 pr-2 border-r border-border/50">
|
||||
<div className="space-y-1 border-e border-border/50 pe-2 pt-0.5">
|
||||
{children.map((item) => renderTocLink(item))}
|
||||
</div>
|
||||
</CollapsibleContent>
|
||||
@@ -218,7 +219,7 @@ export function BlogToc({ items, className }: BlogTocProps) {
|
||||
style={{ width: `${scrollProgress}%` }}
|
||||
/>
|
||||
</div>
|
||||
<p className="mb-3 text-md ms-2 font-semibold uppercase tracking-wider text-muted-foreground">
|
||||
<p className={cn(type.eyebrow, "mb-3 ms-2")}>
|
||||
فهرست مطالب
|
||||
</p>
|
||||
<ScrollArea className="h-full pb-8" dir="rtl">
|
||||
@@ -238,7 +239,8 @@ export function BlogToc({ items, className }: BlogTocProps) {
|
||||
|
||||
<CollapsibleTrigger
|
||||
className={cn(
|
||||
"flex w-full items-center justify-between gap-2 rounded-lg border border-border bg-muted/30 px-4 py-3 text-sm font-medium transition-colors hover:bg-muted/50",
|
||||
"flex w-full items-center justify-between gap-2 rounded-lg border border-border bg-muted/30 px-4 py-3 transition-colors hover:bg-muted/50",
|
||||
type.label,
|
||||
mobileOpen && "rounded-b-none border-b-0"
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user