mirror of
https://github.com/silicoflare/silicoflare-website.git
synced 2026-05-26 20:17:58 +05:30
feat: complete revamp using daisyui
This commit is contained in:
35
src/components/ProjectCard.tsx
Normal file
35
src/components/ProjectCard.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import { Project } from "../data";
|
||||
|
||||
export default function ProjectCard({
|
||||
name,
|
||||
tech,
|
||||
description,
|
||||
repo,
|
||||
}: Project) {
|
||||
return (
|
||||
<a
|
||||
href={`https://github.com/${repo}`}
|
||||
target="_blank"
|
||||
className="card bg-base-300 w-full shadow-xl hover:scale-105 transition ease-in-out duration-200"
|
||||
>
|
||||
<div className="card-body text-sm text-justify md:text-left md:text-base">
|
||||
<h2 className="card-title flex items-center justify-between text-secondary">
|
||||
{name}
|
||||
<div className="flex items-center gap-2 text-neutral-content">
|
||||
{tech.map((x) => (
|
||||
<img
|
||||
key={x}
|
||||
height="20"
|
||||
width="20"
|
||||
src={`https://cdn.simpleicons.org/${x}/57C6F3`}
|
||||
className="text-neutral-content fill-neutral-content stroke-neutral-content"
|
||||
title={x}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</h2>
|
||||
<p>{description}</p>
|
||||
</div>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user