Skip to content

Commit

Permalink
created a project container component
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanMarAntonsson committed Nov 20, 2024
1 parent 1eaeb65 commit 805bd6e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/components/ProjectContainer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
interface Props {
title: string
}
const { title } = Astro.props
---

<div class="project-grid-container mb-16">
<h2 class="px-4 mb-8 text-center">{title}</h2>
<div class="project-grid">
<slot />
</div>
</div>

<style>
/* .project-grid-container {
outline: dashed 2px yellow;
} */

.project-grid {
display: flex;
flex-wrap: wrap;
row-gap: 2rem;
justify-content: space-evenly;
}
</style>

0 comments on commit 805bd6e

Please sign in to comment.