Skip to content

Commit d3de8fc

Browse files
committed
feat: Constructo page improvements
1 parent 0745658 commit d3de8fc

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/packages/Installation.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@ import CodeBlock from "@/components/CodeBlock.tsx";
55
interface InstallationProps {
66
onPackagistClick: () => void;
77
onDocsClick: () => void;
8+
buttonVariant?: string;
9+
buttonTextColor?: string;
810
}
911

10-
const Installation = ({ onPackagistClick, onDocsClick }: InstallationProps) => {
12+
const Installation = ({
13+
onPackagistClick,
14+
onDocsClick,
15+
buttonVariant = "bg-gradient-constructo",
16+
buttonTextColor = "text-constructo-foreground",
17+
}: InstallationProps) => {
1118
return (
1219
<section id="installation" className="py-16 bg-card/30">
1320
<div className="container mx-auto">
@@ -28,7 +35,7 @@ const Installation = ({ onPackagistClick, onDocsClick }: InstallationProps) => {
2835
</Button>
2936
<Button
3037
onClick={onDocsClick}
31-
className="bg-gradient-constructo text-constructo-foreground transition-all hover:shadow-glow gap-2"
38+
className={`${buttonVariant} ${buttonTextColor} transition-all hover:shadow-glow gap-2`}
3239
>
3340
<BookOpen className="w-4 h-4" />
3441
Primeiros Passos

src/pages/Constructo.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { scrollTo } from "@/lib/utils.ts";
1313
import {
1414
Blocks,
1515
Cog,
16-
Command,
1716
Database,
1817
Download,
1918
Github,
@@ -23,7 +22,6 @@ import {
2322
Shield,
2423
TestTube,
2524
Users,
26-
Zap,
2725
} from "lucide-react";
2826

2927
const Constructo = () => {
@@ -108,7 +106,6 @@ const Constructo = () => {
108106
description:
109107
"Apenas defina os tipos dos argumentos do construtor que sua classe deve receber e deixa o resto com o Builder",
110108
code: `use Constructo\\Core\\Serialize\\Builder;
111-
use Constructo\\Support\\Set;
112109
use DateTime;
113110
114111
// Defina sua entidade informando os valores das propriedades no construtor

0 commit comments

Comments
 (0)