11import { Button } from "@/components/ui/button" ;
22import CodeExamplePackage from "@/components/CodeExamplePackage.tsx" ;
3- import { Blocks , Zap , Layers } from "lucide-react" ;
3+ import { Blocks , Zap , Layers , Play , Code } from "lucide-react" ;
4+ import { useNavigate } from "react-router-dom" ;
45
56const CodeExamples = ( ) => {
7+ const navigate = useNavigate ( ) ;
8+
69 const constructoTabs = [
710 {
811 value : "codec" ,
912 label : "codec.php" ,
1013 code : `<?php
1114
12- // Em breve codec.php ... 🚀`
15+ // Em breve codec.php ... 🚀` ,
1316 } ,
1417 {
1518 value : "faker" ,
1619 label : "faker.php" ,
1720 code : `<?php
1821
19- // Em breve faker.php ... 🚀`
20- }
22+ // Em breve faker.php ... 🚀` ,
23+ } ,
2124 ] ;
2225
2326 const serendipityTabs = [
@@ -27,32 +30,32 @@ const CodeExamples = () => {
2730 code : `<?php
2831
2932// Em breve Action.php ... 🚀
30- }`
33+ }` ,
3134 } ,
3235 {
3336 value : "input" ,
3437 label : "Input.php" ,
3538 code : `<?php
3639
3740// Em breve Input.php ... 🚀
38- }`
41+ }` ,
3942 } ,
4043 {
4144 value : "entity" ,
4245 label : "Entity.php" ,
4346 code : `<?php
4447
4548// Em breve Entity.php ... 🚀
46- }`
49+ }` ,
4750 } ,
4851 {
4952 value : "repository" ,
5053 label : "Repository.php" ,
5154 code : `<?php
5255
5356// Em breve Repository.php ... 🚀
54- }`
55- }
57+ }` ,
58+ } ,
5659 ] ;
5760
5861 const effulgenceTabs = [
@@ -62,8 +65,8 @@ const CodeExamples = () => {
6265 code : `<?php
6366
6467// Em breve Controller.php ... 🚀
65- }`
66- }
68+ }` ,
69+ } ,
6770 ] ;
6871
6972 return (
@@ -83,11 +86,7 @@ const CodeExamples = () => {
8386 name = "Constructo"
8487 subtitle = "Serialização Inteligente"
8588 description = "Transforme dados em objetos tipados com validação automática. Classes que se serializam e se validam de forma elegante e eficiente."
86- features = { [
87- "Serialização automática" ,
88- "Validação integrada" ,
89- "Type safety nativo"
90- ] }
89+ features = { [ "Serialização automática" , "Validação integrada" , "Type safety nativo" ] }
9190 icon = { < Blocks className = "w-6 h-6 text-constructo-foreground" /> }
9291 gradientClass = "bg-gradient-constructo"
9392 shadowClass = "shadow-constructo"
@@ -102,7 +101,7 @@ const CodeExamples = () => {
102101 features = { [
103102 "Roteamento com annotations" ,
104103 "Workers em background" ,
105- "Tratamento automático de erros"
104+ "Tratamento automático de erros" ,
106105 ] }
107106 icon = { < Zap className = "w-6 h-6 text-serendipity-foreground" /> }
108107 gradientClass = "bg-gradient-serendipity"
@@ -119,7 +118,7 @@ const CodeExamples = () => {
119118 features = { [
120119 "Componentes reutilizáveis" ,
121120 "Sistema de layout flexível" ,
122- "Themes customizáveis"
121+ "Themes customizáveis" ,
123122 ] }
124123 icon = { < Layers className = "w-6 h-6 text-effulgence-foreground" /> }
125124 gradientClass = "bg-gradient-effulgence"
@@ -129,8 +128,21 @@ const CodeExamples = () => {
129128 />
130129 </ div >
131130
132- < div className = "text-center mt-16" >
133- < Button size = "lg" className = "bg-gradient-hero shadow-glow" >
131+ < div className = "flex flex-col sm:flex-row-reverse gap-4 justify-center mt-16" >
132+ < Button
133+ size = "lg"
134+ className = "bg-gradient-primary shadow-glow"
135+ onClick = { ( ) => navigate ( "/docs" ) }
136+ >
137+ < Play className = "w-5 h-5 mr-2" />
138+ Começar Agora
139+ </ Button >
140+ < Button
141+ size = "lg"
142+ className = "bg-gradient-hero shadow-glow"
143+ onClick = { ( ) => navigate ( "/docs/examples" ) }
144+ >
145+ < Code className = "w-5 h-5 mr-2" />
134146 Explorar Mais Exemplos
135147 </ Button >
136148 </ div >
0 commit comments