mirror of
https://github.com/theoludwig/theoludwig.git
synced 2026-02-20 03:09:20 +01:00
refactor: components struture
This commit is contained in:
32
packages/ui/src/Home/OpenSource/Repository.tsx
Normal file
32
packages/ui/src/Home/OpenSource/Repository.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import { Typography } from "../../Design/Typography/Typography"
|
||||
import { SectionContent } from "../../Layout/Section/Section"
|
||||
import { GitHubIcon } from "../About/SocialMediaList/SocialMediaIcons/GitHubIcon"
|
||||
|
||||
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="text-primary dark:text-primary-dark font-semibold">
|
||||
{name}
|
||||
</span>
|
||||
</Typography>
|
||||
<p className="mt-4">{description}</p>
|
||||
</SectionContent>
|
||||
</a>
|
||||
</li>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user