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,18 @@
import react, { ReactNode } from 'react'
type SocialLinkProps = {
icon: ReactNode,
url: string,
name: string
}
function SocialLink({ icon, url, name }: SocialLinkProps) {
return (
<a className="social_link" href={url} target="_blank">
{icon}
<span>{name}</span>
</a>
)
}
export default SocialLink

View file

@ -0,0 +1,13 @@
.social_links {
@apply flex gap-5 justify-center flex-wrap my-5;
& > .social_link {
& > svg {
@apply mx-auto scale-150 mb-1;
}
& > span {
@apply text-sm;
}
}
}

View file

@ -0,0 +1,16 @@
import './SocialLinks.scss'
import react, { ReactNode } from 'react'
type SocialLinksProps = {
children: ReactNode
}
function SocialLinks({ children }: SocialLinksProps) {
return (
<div className='social_links'>
{children}
</div>
)
}
export default SocialLinks