Begin migrate to leptos

This commit is contained in:
Florian RICHER 2023-10-08 20:26:40 +02:00
parent 1060e12513
commit 79daad993e
45 changed files with 3202 additions and 1975 deletions

View file

@ -0,0 +1,20 @@
import react from 'react'
type ProjectElementProps = {
image_src?: string,
description: string,
url: string
}
function ProjectElement({ image_src, description, url }: ProjectElementProps) {
return (
<a href={url} target='_blank'>
{
image_src && <img src={image_src} />
}
<div><p>{description}</p></div>
</a>
)
}
export default ProjectElement