2023-07-30 18:50:14 +02:00
|
|
|
import { ShadowContainer } from '@/components/design/ShadowContainer'
|
|
|
|
import { GitHubIcon } from '@/components/Profile/SocialMediaList/SocialMediaIcons/GitHubIcon'
|
2021-07-04 19:56:05 +02:00
|
|
|
|
|
|
|
export interface RepositoryProps {
|
|
|
|
name: string
|
|
|
|
description: string
|
|
|
|
href: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export const Repository: React.FC<RepositoryProps> = (props) => {
|
|
|
|
const { name, description, href } = props
|
|
|
|
|
|
|
|
return (
|
2021-12-04 15:52:51 +01:00
|
|
|
<ShadowContainer className='relative !mb-4 max-h-32 cursor-pointer p-6 transition-transform duration-200 ease-in-out hover:-translate-y-2'>
|
2021-07-04 19:56:05 +02:00
|
|
|
<a href={href} target='_blank' rel='noopener noreferrer'>
|
|
|
|
<div className='flex'>
|
2021-12-04 15:52:51 +01:00
|
|
|
<GitHubIcon className='mr-2 h-6' />
|
2021-07-27 18:31:41 +02:00
|
|
|
<span className='text-yellow dark:text-yellow-dark'>{name}</span>
|
2021-07-04 19:56:05 +02:00
|
|
|
</div>
|
|
|
|
<p className='my-4'>{description}</p>
|
|
|
|
</a>
|
|
|
|
</ShadowContainer>
|
|
|
|
)
|
|
|
|
}
|