-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeExamples.tsx
More file actions
172 lines (155 loc) · 5.36 KB
/
CodeExamples.tsx
File metadata and controls
172 lines (155 loc) · 5.36 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
import { Button } from "@/components/ui/button";
import CodeExamplePackage from "@/components/CodeExamplePackage.tsx";
import { Blocks, Code, Layers, Play, Zap } from "lucide-react";
import { useNavigate } from "react-router-dom";
const CodeExamples = () => {
const navigate = useNavigate();
const constructoTabs = [
{
value: "codec",
label: "codec.php",
code: `<?php
// Em breve codec.php ... 🚀`,
},
{
value: "faker",
label: "faker.php",
code: `<?php
// Em breve faker.php ... 🚀`,
},
];
const serendipityTabs = [
{
value: "action",
label: "Action.php",
code: `<?php
// Em breve Action.php ... 🚀
}`,
},
{
value: "input",
label: "Input.php",
code: `<?php
// Em breve Input.php ... 🚀
}`,
},
{
value: "entity",
label: "Entity.php",
code: `<?php
// Em breve Entity.php ... 🚀
}`,
},
{
value: "repository",
label: "Repository.php",
code: `<?php
// Em breve Repository.php ... 🚀
}`,
},
];
const effulgenceTabs = [
{
value: "controller",
label: "Controller.php",
code: `<?php
// Em breve Controller.php ... 🚀
}`,
},
];
return (
<section id="examples" className="py-20 bg-muted/30">
<div className="container mx-auto">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-bold mb-6 text-foreground">
Veja Como é Simples
</h2>
<p className="text-xl text-muted-foreground max-w-3xl mx-auto">
Código limpo, intuitivo e focado no que realmente importa para seu projeto.
</p>
</div>
<div className="space-y-16 max-w-7xl mx-auto">
<CodeExamplePackage
name="Constructo"
subtitle="Serialização Inteligente"
description="Transforme dados em objetos tipados com validação automática. Classes que se serializam e se validam de forma elegante e eficiente."
features={[
{
title: "Serialização automática",
description:
"Serialização avançada de objetos, permitindo a desconstrução de classes com objetos alinhados e realizando a tradução de tipos."
},
{
title: "Validação integrada",
description:
"Junto com a serialização avançada e graças as tratativas internas, conseguimos realizar a validação de estruturas complexas por meio de processos encandeados com chains."
},
{
title: "Type safety nativo",
description:
"Leva a tipagem da sua aplicação para outro nível!! Com o nosso sistema de tipagem, conseguimos ir além dos tipos nativos da linguagem, permitindo o uso de *attributes* personalizados, passando uma maior segurança e coesão na sua aplicação."
}
]}
icon={<Blocks className="w-6 h-6 text-constructo-foreground" />}
gradientClass="bg-gradient-constructo"
shadowClass="shadow-constructo"
colorClass="text-constructo"
tabs={constructoTabs}
/>
<CodeExamplePackage
name="Serendipity"
subtitle="Roteamento Moderno"
description="APIs e Workers com annotations. Roteamento automático, processamento em background e tratamento de erros sem esforço adicional."
features={[
"Roteamento com annotations",
"Workers em background",
"Tratamento automático de erros",
]}
icon={<Zap className="w-6 h-6 text-serendipity-foreground" />}
gradientClass="bg-gradient-serendipity"
shadowClass="shadow-serendipity"
colorClass="text-serendipity"
tabs={serendipityTabs}
reversed={true}
/>
<CodeExamplePackage
name="Effulgence"
subtitle="Interface Radiante"
description="Componentes UI modernos e responsivos. Uma biblioteca completa para criar interfaces elegantes e acessíveis com facilidade."
features={[
"Componentes reutilizáveis",
"Sistema de layout flexível",
"Themes customizáveis",
]}
icon={<Layers className="w-6 h-6 text-effulgence-foreground" />}
gradientClass="bg-gradient-effulgence"
shadowClass="shadow-effulgence"
colorClass="text-effulgence"
tabs={effulgenceTabs}
soon={true}
/>
</div>
<div className="flex flex-col sm:flex-row gap-4 justify-center mt-16">
<Button
size="lg"
className="bg-gradient-primary hover:shadow-glow hover:scale-105 transition-all duration-300 text-lg px-8 py-6"
onClick={() => navigate("/docs/examples")}
>
<Code className="w-5 h-5 mr-2" />
Explorar Mais Exemplos
</Button>
<Button
variant="outline"
size="lg"
className="text-lg px-8 py-6"
onClick={() => navigate("/docs")}
>
<Play className="w-5 h-5 mr-2" />
Começar Agora
</Button>
</div>
</div>
</section>
);
};
export default CodeExamples;