diff --git a/src/components/Projects.astro b/src/components/Projects.astro index b499b1c..f255c15 100644 --- a/src/components/Projects.astro +++ b/src/components/Projects.astro @@ -1,12 +1,18 @@ --- +import { Icon } from "astro-icon/components"; import Section from "./ui/Section.astro"; const { projects } = Astro.props; -interface project { +interface ProjectTag { + name: string; + icon?: string; +} + +interface ProjectProps { title: string; description: string; - tags: string[]; + tags: ProjectTag[]; liveUrl?: string; repoUrl: string; } @@ -17,7 +23,7 @@ interface project {
{ - projects.map((project: project) => ( + projects.map((project: ProjectProps) => (

@@ -25,13 +31,15 @@ interface project {

{project.description}

- {project.tags.map((tag) => ( - - {tag} + {project.tags.map((tag: ProjectTag) => ( + + ))} -
-
{project.liveUrl && ( - - URL Live )} +
+