Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/cards/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./project.card";
export * from "./new.project.button";
11 changes: 11 additions & 0 deletions src/components/cards/new.project.button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { FaPlus } from "react-icons/fa";
import { Card } from "@/components/ui/card";

export function NewProjectButton() {
return (
<Card className="w-48 h-64 bg-primary rounded-xl border border-dashed border-gray-300 hover:border-white hover:opacity-80 transition-colors flex flex-col items-center justify-center text-white shadow-md cursor-pointer">
<FaPlus size={48} className="mb-4" />
<span className="text-xl font-semibold">New project</span>
</Card>
);
}
29 changes: 29 additions & 0 deletions src/components/cards/project.card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Card, CardContent, CardFooter } from "@/components/ui/card";
import { GripVertical, MoreVertical } from "lucide-react";
import React from "react";

interface ProjectCardProps {
nome: string;
icone: React.ReactNode;
}

export function ProjectCard({ nome, icone }: ProjectCardProps) {
return (
<Card className="relative w-48 h-64 p-6 text-white rounded-xl shadow-md flex flex-col items-center justify-between overflow-hidden">
<div className="absolute top-2 left-2 text-gray-400">
<GripVertical size={16} />
</div>
<div className="absolute top-2 right-2 text-gray-400">
<MoreVertical size={16} />
</div>

<CardContent className="flex flex-col flex-grow items-center justify-center pt-6">
<div className="text-8xl ">{icone}</div>
</CardContent>
<CardFooter>
{" "}
<span className="text-lg font-semibold text-center">{nome}</span>
</CardFooter>
</Card>
);
}
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from "./header";
export * from "./setings&preferrences";
export * from "./docs";
export * from "./statusbadge";
export * from "./cards";