mirror of
https://github.com/theoludwig/theoludwig.git
synced 2026-02-20 03:09:20 +01:00
31 lines
1000 B
TypeScript
31 lines
1000 B
TypeScript
import { Typography } from "../../Design/Typography/Typography.tsx"
|
|
import { SectionContent } from "../../Layout/Section/Section.tsx"
|
|
import { GitHubIcon } from "../About/SocialMediaList/SocialMediaIcons/GitHubIcon.tsx"
|
|
|
|
export interface RepositoryProps {
|
|
name: string
|
|
description: string
|
|
href: string
|
|
}
|
|
|
|
export const Repository: React.FC<RepositoryProps> = (props) => {
|
|
const { name, description, href } = props
|
|
|
|
return (
|
|
<li>
|
|
<a href={href} target="_blank">
|
|
<SectionContent
|
|
className="relative cursor-pointer p-6 transition-all duration-300 ease-in-out hover:scale-[1.03] sm:p-6"
|
|
shadowContainer
|
|
>
|
|
<Typography as="h3" variant="text1" className="flex items-center">
|
|
<GitHubIcon className="mr-2 h-6" />
|
|
<span className="font-semibold text-primary dark:text-primary-dark">{name}</span>
|
|
</Typography>
|
|
<p className="mt-4">{description}</p>
|
|
</SectionContent>
|
|
</a>
|
|
</li>
|
|
)
|
|
}
|