Begin migrate to leptos
This commit is contained in:
parent
1060e12513
commit
79daad993e
45 changed files with 3202 additions and 1975 deletions
20
src_old/components/project/ProjectElement.tsx
Normal file
20
src_old/components/project/ProjectElement.tsx
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue