"use client";
import { ArrowRight, ArrowLeft, ShieldCheck, UserCircle2 } from "lucide-react";
import Link from "next/link";
import { useLanguage } from "@/components/language-provider";
import { Button, buttonVariants } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { PRODUCTS } from "@/lib/content";
import { cn } from "@/lib/utils";
export function Hero() {
const { t, lang, dir } = useLanguage();
const Arrow = lang === "fa" ? ArrowLeft : ArrowRight;
return (
{t.hero.badge}
{t.hero.title}
{t.hero.subtitle}
{t.hero.ctaPrimary}
{t.hero.ctaSecondary}
{t.hero.note}
);
}
function HubVisual() {
const { lang } = useLanguage();
return (
{lang === "fa" ? "هاب مرکزی" : "Central Hub"}
{PRODUCTS.map((p, i) => {
const angle = (Math.PI * 2 * i) / PRODUCTS.length - Math.PI / 2;
const radius = 130;
const x = 50 + (Math.cos(angle) * radius) / 3.2;
const y = 50 + (Math.sin(angle) * radius) / 3.2;
return (
{p.name}
{p.status === "connected"
? lang === "fa"
? "متصل"
: "Live"
: lang === "fa"
? "آینده"
: "Soon"}
);
})}
);
}