chore: minor refactor into some components and updated favicon
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-11-22 00:06:23 +01:00
parent 1d797e2dbe
commit a5d3edf6db
7 changed files with 161 additions and 165 deletions
+24
View File
@@ -0,0 +1,24 @@
---
// Card.astro
export interface Props {
title: string
href: string
imgSrc?: string
style?: string
}
const { href, imgSrc, style, title } = Astro.props
---
<a target="_blank" href={href} style={style}>
<div class="project">
<div class="image">
{imgSrc ? <img src={imgSrc} alt={'logo for ' + title.toLowerCase()} /> : <div class="box" />}
</div>
<div class="title">{title}</div>
<div class="description">
<slot />
</div>
</div>
</a>