diff options
Diffstat (limited to 'src/components/ProjectCard.astro')
| -rw-r--r-- | src/components/ProjectCard.astro | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/ProjectCard.astro b/src/components/ProjectCard.astro new file mode 100644 index 0000000..a4fa4f7 --- /dev/null +++ b/src/components/ProjectCard.astro @@ -0,0 +1,14 @@ +--- +const { projects } = Astro.props; +--- + +{ + projects.map((project: Project) => ( + <div> + <a class="block" href={project.url}> + <h2 class="underline underline-offset-2">{project.name}</h2> + </a> + <p>{project.description}</p> + </div> + )) +} |
