1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-05 13:01:30 +01:00
.profile/components/OpenSource/Repository.tsx

27 lines
880 B
TypeScript
Raw Normal View History

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 = (props: RepositoryProps): JSX.Element => {
2021-07-04 19:56:05 +02:00
const { name, description, href } = props
return (
<ShadowContainer className="relative !mb-4 max-h-32 cursor-pointer p-6 transition-transform duration-200 ease-in-out hover:-translate-y-2">
<a href={href} target="_blank" rel="noopener noreferrer">
<div className="flex">
<GitHubIcon className="mr-2 h-6" />
<span className="font-semibold text-yellow dark:text-yellow-dark">
2024-01-28 01:56:47 +01:00
{name}
</span>
2021-07-04 19:56:05 +02:00
</div>
<p className="my-4">{description}</p>
2021-07-04 19:56:05 +02:00
</a>
</ShadowContainer>
)
}