chore: fixed bugs in macchinisti page and some refactoring
This commit is contained in:
@@ -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}—{exitDate ?? 'Presente'}</div>
|
||||
<div class="description">{description}</div>
|
||||
{
|
||||
social && (
|
||||
|
||||
Reference in New Issue
Block a user