chore: fixed bugs in macchinisti page and some refactoring

This commit is contained in:
2024-12-19 20:12:57 +01:00
parent 2dbdf99827
commit e49e2ff0c5
14 changed files with 188 additions and 165 deletions
+4 -3
View File
@@ -14,7 +14,8 @@ const ICONS_MAP = {
type Props = {
image: ImageMetadata
fullName: string
date: string
entranceDate: number
exitDate?: number
description: string
social?: {
github?: string
@@ -24,13 +25,13 @@ type Props = {
}
}
const { image, fullName, date, description, social } = Astro.props
const { image, fullName, entranceDate, exitDate, description, social } = Astro.props
---
<div class="bubble">
<img src={image.src} alt={fullName.toLowerCase()} />
<div class="title">{fullName}</div>
<div class="date">{date}</div>
<div class="date">{entranceDate}&mdash;{exitDate ?? 'Presente'}</div>
<div class="description">{description}</div>
{
social && (