File size: 3,813 Bytes
b50322f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5fa2c7a
b50322f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
"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>
  );
}