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:
alirez.br
2026-07-02 02:46:20 +03:30
co-authored by Cursor
parent 62163c4ab9
commit a47ec493c5
92 changed files with 4574 additions and 507 deletions
+52 -30
View File
@@ -1,12 +1,14 @@
import React from "react";
import { cn } from "@/lib/utils";
import Link from "next/link";
import { ArrowLeft, ArrowRight, ChevronDown, ChevronRight } from "lucide-react";
import { ChevronLeft } from "lucide-react";
import { Button } from "@/components/ui/button";
import Image from "next/image";
import { TextEffect } from "@/components/ui/text-effect";
import { AnimatedGroup } from "@/components/ui/animated-group";
import { HeroHeader } from "./header";
import { LogoItem } from "@/components/ui/logo-item";
import { getHomeImages } from "@/lib/home-images";
import { type, typeSpacing } from "@/lib/typography";
const transitionVariants = {
item: {
@@ -29,6 +31,8 @@ const transitionVariants = {
};
export default function HeroSection() {
const { hero } = getHomeImages();
return (
<>
<main className="overflow-hidden">
@@ -70,11 +74,11 @@ export default function HeroSection() {
className="mask-b-from-35% mask-b-to-90% absolute inset-0 top-56 -z-20 lg:top-32"
>
<Image
src="/assets/main-pic/main-pic.jpg"
src={hero.backgroundDark.src}
alt="background"
className="hidden size-full object-cover dark:block"
width={1150}
height={613}
width={hero.backgroundDark.width}
height={hero.backgroundDark.height}
quality={100}
sizes="100vw"
/>
@@ -110,7 +114,7 @@ export default function HeroSection() {
preset="fade-in-blur"
speedSegment={0.3}
as="h1"
className="mx-auto mt-8 max-w-4xl text-balance text-3xl max-md:font-semibold md:text-4xl lg:mt-16 lg:text-5xl leading-relaxed tracking-normal"
className={cn("mx-auto mt-8 max-w-4xl", type.display, "max-md:font-semibold lg:mt-16")}
>
راه‌حل‌های مدرن برای اتصال هوشمند
@@ -121,7 +125,7 @@ export default function HeroSection() {
speedSegment={0.3}
delay={0.5}
as="p"
className="mx-auto mt-8 max-w-2xl text-balance text-base md:text-lg leading-relaxed tracking-normal"
className={cn("mx-auto mt-8 max-w-2xl text-balance", type["body-lg"])}
>
با ابزارهای یکپارچه‌سازی، اتوماسیون و ارتباطات ما، داده‌ها، کاربران و فرآیندهای کسب‌وکارتان را از هر سیستم یا پلتفرمی، از وب‌سایت و CRM تا تلگرام و سرویس‌های سفارشی، دقیق، سریع و قابل اعتماد به هم متصل کنید.
</TextEffect>
@@ -145,9 +149,9 @@ export default function HeroSection() {
className="bg-foreground/10 rounded-[calc(var(--radius-xl)+0.125rem)] border p-0.5"
>
<Button asChild size="lg">
<Link href="#link">
<Link href="/solutions">
<span className="text-nowrap">مشاهده راهکارها</span>
<ChevronDown />
<ChevronLeft className="size-4" aria-hidden />
</Link>
</Button>
</div>
@@ -168,33 +172,51 @@ export default function HeroSection() {
...transitionVariants,
}}
>
<div className="relative mt-8 overflow-visible px-2 sm:mt-12 md:mt-20 p-2">
<div className="relative max-w-4xl mx-auto flex items-center justify-center">
<div className="relative rounded-2xl overflow-hidden">
<div className="relative mt-8 overflow-visible px-6 sm:mt-12 md:mt-20 md:p-2 md:px-2">
<div className="relative w-full max-w-5xl md:max-w-4xl mx-auto">
<div className="relative w-full rounded-2xl">
{/* Glow effect */}
<div className="absolute inset-0 rounded-2xl bg-gradient-to-r from-blue-500/20 via-purple-500/20 to-pink-500/20 blur-3xl -z-10 scale-110 animate-pulse" />
<div className="absolute inset-0 rounded-2xl bg-gradient-to-r from-blue-400/30 via-purple-400/30 to-pink-400/30 blur-2xl -z-10 scale-105" />
<div className="absolute inset-0 rounded-2xl bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 blur-3xl -z-10 scale-110 animate-pulse" />
<div className="absolute inset-0 rounded-2xl bg-gradient-to-r from-blue-400/15 via-purple-400/15 to-pink-400/15 blur-2xl -z-10 scale-105" />
<div className="relative bg-background rounded-2xl border ring-1 ring-border/50 shadow-2xl shadow-blue-500/10 dark:shadow-blue-500/20">
<div className="relative w-full aspect-[3/2] overflow-hidden bg-background rounded-2xl border ring-1 ring-border/50 shadow-2xl shadow-blue-500/10 dark:shadow-blue-500/20 md:aspect-auto">
<Image
src="/assets/main-pic/1.jpg"
src={hero.main.src}
alt="یکپارچه‌سازی سیستم‌ها و شبکه دیجیتال"
width={1920}
height={1280}
className="object-contain rounded-2xl w-full h-auto max-h-[600px] md:max-h-[700px] dark:hidden"
fill
className="object-cover rounded-2xl md:hidden dark:hidden"
quality={100}
priority
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 90vw, 1200px"
sizes="100vw"
/>
<Image
src="/assets/main-pic/1dark.jpg"
src={hero.mainDark.src}
alt="یکپارچه‌سازی سیستم‌ها و شبکه دیجیتال"
width={1920}
height={1280}
className="hidden object-contain rounded-2xl w-full h-auto max-h-[600px] md:max-h-[700px] dark:block"
fill
className="hidden object-cover rounded-2xl md:hidden dark:block"
quality={100}
priority
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 90vw, 1200px"
sizes="100vw"
/>
<Image
src={hero.main.src}
alt="یکپارچه‌سازی سیستم‌ها و شبکه دیجیتال"
width={hero.main.width}
height={hero.main.height}
className="max-md:hidden object-contain rounded-2xl w-full h-auto max-h-[700px] dark:hidden"
quality={100}
priority
sizes="(max-width: 1200px) 90vw, 1200px"
/>
<Image
src={hero.mainDark.src}
alt="یکپارچه‌سازی سیستم‌ها و شبکه دیجیتال"
width={hero.mainDark.width}
height={hero.mainDark.height}
className="max-md:hidden hidden object-contain rounded-2xl w-full h-auto max-h-[700px] dark:block"
quality={100}
priority
sizes="(max-width: 1200px) 90vw, 1200px"
/>
</div>
</div>
@@ -206,10 +228,10 @@ export default function HeroSection() {
<section className="bg-background pb-16 pt-16 md:pb-32">
<div className="m-auto max-w-5xl px-6">
<div className="text-center">
<p className="text-sm font-medium text-muted-foreground">
<p className={type.eyebrow}>
یکپارچه با ابزارهای محبوب
</p>
<h2 className="mt-2 text-lg font-semibold md:text-xl">
<h2 className={cn(typeSpacing.eyebrowToHeading, type.h4)}>
اتصال به سایر سیستم‌ها
</h2>
</div>
@@ -243,11 +265,11 @@ export default function HeroSection() {
<div className="mt-8 text-center">
<Link
href="/"
className="inline-flex items-center text-sm text-muted-foreground transition-colors hover:text-accent"
href="/solutions"
className={cn("inline-flex items-center gap-1 transition-colors hover:text-accent", type.link)}
>
<span>مشاهده همه یکپارچه‌سازی‌ها</span>
<ChevronRight className="ml-1 inline-block size-3" />
<ChevronLeft className="size-3" aria-hidden />
</Link>
</div>
</div>