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:
+20
-18
@@ -2,12 +2,14 @@ import { cn } from "@/lib/utils";
|
||||
import Link from "next/link";
|
||||
import { ChevronLeft } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Container } from "@/components/container";
|
||||
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 { layout } from "@/lib/layout";
|
||||
import { type, typeSpacing } from "@/lib/typography";
|
||||
|
||||
const transitionVariants = {
|
||||
@@ -40,9 +42,9 @@ export default function HeroSection() {
|
||||
aria-hidden
|
||||
className="absolute inset-0 isolate hidden opacity-65 contain-strict lg:block"
|
||||
>
|
||||
<div className="w-140 h-320 -translate-y-87.5 absolute left-0 top-0 -rotate-45 rounded-full bg-[radial-gradient(68.54%_68.72%_at_55.02%_31.46%,hsla(0,0%,85%,.08)_0,hsla(0,0%,55%,.02)_50%,hsla(0,0%,45%,0)_80%)]" />
|
||||
<div className="h-320 absolute left-0 top-0 w-60 -rotate-45 rounded-full bg-[radial-gradient(50%_50%_at_50%_50%,hsla(0,0%,85%,.06)_0,hsla(0,0%,45%,.02)_80%,transparent_100%)] [translate:5%_-50%]" />
|
||||
<div className="h-320 -translate-y-87.5 absolute left-0 top-0 w-60 -rotate-45 bg-[radial-gradient(50%_50%_at_50%_50%,hsla(0,0%,85%,.04)_0,hsla(0,0%,45%,.02)_80%,transparent_100%)]" />
|
||||
<div className="glow-beam--1 w-140 h-320 -translate-y-87.5 absolute left-0 top-0 -rotate-45 rounded-full" />
|
||||
<div className="glow-beam--2 h-320 absolute left-0 top-0 w-60 -rotate-45 rounded-full [translate:5%_-50%]" />
|
||||
<div className="glow-beam--3 h-320 -translate-y-87.5 absolute left-0 top-0 w-60 -rotate-45" />
|
||||
</div>
|
||||
<section className="bg-background">
|
||||
<div className="relative pt-24 md:pt-36">
|
||||
@@ -85,12 +87,12 @@ export default function HeroSection() {
|
||||
</AnimatedGroup>
|
||||
|
||||
|
||||
<div className="mx-auto max-w-7xl px-6">
|
||||
<Container>
|
||||
<div className="text-center sm:mx-auto lg:mr-auto lg:mt-0">
|
||||
{/* <AnimatedGroup variants={transitionVariants}>
|
||||
<Link
|
||||
href="#link"
|
||||
className="hover:bg-background dark:hover:border-t-border bg-muted group mx-auto flex w-fit items-center gap-4 rounded-full border p-1 ps-4 shadow-md shadow-zinc-950/5 transition-colors duration-300 dark:border-t-white/5 dark:shadow-zinc-950"
|
||||
className="group mx-auto flex w-fit items-center gap-4 rounded-full border bg-muted p-1 ps-4 shadow-md shadow-brand-neutral/5 transition-colors duration-300 hover:bg-background dark:border-t-white/5 dark:shadow-brand-neutral dark:hover:border-t-border"
|
||||
>
|
||||
<span className="text-foreground text-sm">
|
||||
معرفی نسل جدید یکپارچهسازی و ارتباطات هوشمند
|
||||
@@ -114,7 +116,7 @@ export default function HeroSection() {
|
||||
preset="fade-in-blur"
|
||||
speedSegment={0.3}
|
||||
as="h1"
|
||||
className={cn("mx-auto mt-8 max-w-4xl", type.display, "max-md:font-semibold lg:mt-16")}
|
||||
className={cn("mx-auto mt-8 max-w-4xl", type.display, "lg:mt-16")}
|
||||
>
|
||||
راهحلهای مدرن برای اتصال هوشمند
|
||||
|
||||
@@ -149,7 +151,7 @@ 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="/solutions">
|
||||
<Link href="#">
|
||||
<span className="text-nowrap">مشاهده راهکارها</span>
|
||||
<ChevronLeft className="size-4" aria-hidden />
|
||||
</Link>
|
||||
@@ -157,7 +159,6 @@ export default function HeroSection() {
|
||||
</div>
|
||||
</AnimatedGroup>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AnimatedGroup
|
||||
variants={{
|
||||
@@ -172,14 +173,14 @@ export default function HeroSection() {
|
||||
...transitionVariants,
|
||||
}}
|
||||
>
|
||||
<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 mt-8 overflow-visible sm:mt-12 md:mt-20">
|
||||
<div className="relative w-full">
|
||||
<div className="relative w-full rounded-2xl">
|
||||
{/* Glow effect */}
|
||||
<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="absolute inset-0 -z-10 scale-110 rounded-2xl bg-gradient-to-r from-primary/15 via-brand-dark/10 to-primary/10 blur-3xl" />
|
||||
<div className="absolute inset-0 -z-10 scale-105 rounded-2xl bg-gradient-to-r from-primary/20 via-transparent to-brand-dark/15 blur-2xl" />
|
||||
|
||||
<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">
|
||||
<div className="relative aspect-[3/2] w-full overflow-hidden rounded-2xl border bg-background shadow-2xl shadow-primary/10 ring-1 ring-border/50 md:aspect-auto dark:shadow-primary/20">
|
||||
<Image
|
||||
src={hero.main.src}
|
||||
alt="یکپارچهسازی سیستمها و شبکه دیجیتال"
|
||||
@@ -223,10 +224,11 @@ export default function HeroSection() {
|
||||
</div>
|
||||
</div>
|
||||
</AnimatedGroup>
|
||||
</Container>
|
||||
</div>
|
||||
</section>
|
||||
<section className="bg-background pb-16 pt-16 md:pb-32">
|
||||
<div className="m-auto max-w-5xl px-6">
|
||||
<section className={cn("section-shell bg-section-canvas", layout.sectionY)}>
|
||||
<Container>
|
||||
<div className="text-center">
|
||||
<p className={type.eyebrow}>
|
||||
یکپارچه با ابزارهای محبوب
|
||||
@@ -265,14 +267,14 @@ export default function HeroSection() {
|
||||
|
||||
<div className="mt-8 text-center">
|
||||
<Link
|
||||
href="/solutions"
|
||||
className={cn("inline-flex items-center gap-1 transition-colors hover:text-accent", type.link)}
|
||||
href="#"
|
||||
className={cn("inline-flex items-center gap-1 transition-colors hover:text-primary", type.link)}
|
||||
>
|
||||
<span>مشاهده همه یکپارچهسازیها</span>
|
||||
<ChevronLeft className="size-3" aria-hidden />
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</Container>
|
||||
</section>
|
||||
</main>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user