Spaces:
Paused
Paused
Download components/DeveloperWorkflowsSection.tsx from samirhosninet/HubAPI: direct link, hf CLI and curl.
- Browser
- Download file 3.81 kB
-
https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/DeveloperWorkflowsSection.tsx
- Command line
-
hf download hf://spaces/samirhosninet/HubAPI/components/DeveloperWorkflowsSection.tsx
-
curl -L -o DeveloperWorkflowsSection.tsx https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/DeveloperWorkflowsSection.tsx
3.81 kB
| "use client"; | |
| import { useLanguage } from "@/components/LanguageContext"; | |
| import { | |
| Bot, | |
| MessageSquare, | |
| FileText, | |
| Code2, | |
| Users, | |
| Wallet, | |
| type LucideIcon, | |
| } from "lucide-react"; | |
| type WorkflowCard = { | |
| num: string; | |
| titleKey: | |
| | "workflowsCard1Title" | |
| | "workflowsCard2Title" | |
| | "workflowsCard3Title" | |
| | "workflowsCard4Title" | |
| | "workflowsCard5Title" | |
| | "workflowsCard6Title"; | |
| descKey: | |
| | "workflowsCard1Desc" | |
| | "workflowsCard2Desc" | |
| | "workflowsCard3Desc" | |
| | "workflowsCard4Desc" | |
| | "workflowsCard5Desc" | |
| | "workflowsCard6Desc"; | |
| icon: LucideIcon; | |
| }; | |
| const WORKFLOW_CARDS: WorkflowCard[] = [ | |
| { num: "01", titleKey: "workflowsCard1Title", descKey: "workflowsCard1Desc", icon: Bot }, | |
| { | |
| num: "02", | |
| titleKey: "workflowsCard2Title", | |
| descKey: "workflowsCard2Desc", | |
| icon: MessageSquare, | |
| }, | |
| { num: "03", titleKey: "workflowsCard3Title", descKey: "workflowsCard3Desc", icon: FileText }, | |
| { num: "04", titleKey: "workflowsCard4Title", descKey: "workflowsCard4Desc", icon: Code2 }, | |
| { num: "05", titleKey: "workflowsCard5Title", descKey: "workflowsCard5Desc", icon: Users }, | |
| { num: "06", titleKey: "workflowsCard6Title", descKey: "workflowsCard6Desc", icon: Wallet }, | |
| ]; | |
| export function DeveloperWorkflowsSection() { | |
| const { t } = useLanguage(); | |
| return ( | |
| <section | |
| id="developer-workflows" | |
| className="relative z-10 w-full max-w-7xl mx-auto px-4 md:px-6 py-24 border-t border-border" | |
| > | |
| <div className="text-center space-y-5 mb-16 max-w-3xl mx-auto"> | |
| <div className="inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/5 px-4 py-1.5 text-xs md:text-sm font-medium text-primary backdrop-blur-md shadow-lg font-mono tracking-widest uppercase"> | |
| <span className="w-1.5 h-1.5 rounded-full bg-primary animate-pulse shadow-[0_0_8px_var(--primary-glow)]" /> | |
| {t("workflowsBadge")} | |
| </div> | |
| <h2 className="text-4xl font-extrabold tracking-tight sm:text-5xl md:text-6xl text-foreground leading-tight"> | |
| {t("workflowsTitle")} | |
| </h2> | |
| <div className="space-y-3 text-sm md:text-base text-muted-foreground font-mono leading-relaxed max-w-2xl mx-auto"> | |
| <p>{t("workflowsDesc")}</p> | |
| <p className="text-foreground/90 font-semibold">{t("workflowsPunchline")}</p> | |
| </div> | |
| </div> | |
| <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-1.5 max-w-6xl mx-auto"> | |
| {WORKFLOW_CARDS.map((card) => { | |
| const Icon = card.icon; | |
| return ( | |
| <article | |
| key={card.num} | |
| className="premium-glass-card p-5 md:p-6 h-full clip-cyber-card corner-bracket relative group transition-colors duration-300" | |
| > | |
| <div className="corner-bracket-inner" aria-hidden="true" /> | |
| <div className="relative z-10 space-y-3"> | |
| <div className="flex items-center justify-between gap-3"> | |
| <span className="font-mono text-[10px] text-primary/60 uppercase tracking-widest"> | |
| {card.num} / | |
| </span> | |
| <Icon | |
| className="h-5 w-5 text-primary/70 group-hover:text-primary transition-colors shrink-0" | |
| aria-hidden="true" | |
| /> | |
| </div> | |
| <h3 className="font-mono font-bold text-sm uppercase tracking-tight text-foreground group-hover:text-primary transition-colors"> | |
| {t(card.titleKey)} | |
| </h3> | |
| <p className="text-sm text-muted-foreground font-mono leading-relaxed"> | |
| {t(card.descKey)} | |
| </p> | |
| </div> | |
| </article> | |
| ); | |
| })} | |
| </div> | |
| </section> | |
| ); | |
| } | |