feat: redesign landing page with brand system and section blocks
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:
ar.badiei
2026-07-23 17:00:55 +03:30
co-authored by Cursor
parent f0c290786e
commit c2376b3b9e
352 changed files with 34442 additions and 2760 deletions
+28 -19
View File
@@ -1,16 +1,16 @@
"use client"
import { motion, MotionStyle, Transition } from "motion/react"
import { motion, useReducedMotion, type Transition } from "motion/react"
import { cn } from "@/lib/utils"
interface BorderBeamProps {
/**
* The size of the border beam.
* Approximate length of the visible beam. Mapped to conic spread.
*/
size?: number
/**
* The duration of the border beam.
* The duration of one full loop (seconds).
*/
duration?: number
/**
@@ -51,49 +51,58 @@ interface BorderBeamProps {
borderWidth?: number
}
/**
* Soft beam riding the parent border via a masked rotating conic-gradient.
* Avoids offset-path corner breaks while staying flush with rounded frames.
*/
export const BorderBeam = ({
className,
size = 50,
delay = 0,
duration = 6,
colorFrom = "#FCC61D",
colorTo = "#01796F",
colorFrom = "#29A19C",
colorTo = "#044343",
transition,
style,
reverse = false,
initialOffset = 0,
borderWidth = 1,
}: BorderBeamProps) => {
const reduceMotion = useReducedMotion()
// Map legacy px "size" → angular span (deg). Clamped so the beam stays a short arc.
const spread = Math.min(48, Math.max(12, size * 0.18))
const startAngle = initialOffset * 3.6
return (
<div
className="pointer-events-none absolute inset-0 rounded-[inherit] border-(length:--border-beam-width) border-transparent [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] [mask-composite:intersect] [mask-clip:padding-box,border-box]"
className="pointer-events-none absolute overflow-hidden rounded-[inherit] border-(length:--border-beam-width) border-transparent [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] [mask-composite:intersect] [mask-clip:padding-box,border-box]"
style={
{
// Overlay the parent’s border (e.g. .media-frame 1px).
inset: `-${borderWidth}px`,
"--border-beam-width": `${borderWidth}px`,
} as React.CSSProperties
}
>
<motion.div
className={cn(
"absolute aspect-square",
"bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",
"absolute top-1/2 left-1/2 aspect-square w-[max(200%,200vw)]",
className
)}
style={
{
width: size,
offsetPath: `rect(0 auto auto 0 round ${size}px)`,
"--color-from": colorFrom,
"--color-to": colorTo,
x: "-50%",
y: "-50%",
background: `conic-gradient(from ${startAngle}deg, transparent 0deg, ${colorFrom} ${spread * 0.35}deg, ${colorTo} ${spread}deg, transparent ${spread * 1.65}deg)`,
...style,
} as MotionStyle
} as React.CSSProperties
}
initial={false}
animate={
reduceMotion
? { rotate: 0 }
: { rotate: reverse ? -360 : 360 }
}
initial={{ offsetDistance: `${initialOffset}%` }}
animate={{
offsetDistance: reverse
? [`${100 - initialOffset}%`, `${-initialOffset}%`]
: [`${initialOffset}%`, `${100 + initialOffset}%`],
}}
transition={{
repeat: Infinity,
ease: "linear",