Move info to component

This commit is contained in:
Przemek Grondek 2023-07-29 00:17:05 +02:00
parent fee6927284
commit bbb880cf99
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ type Props = {
title: string
url: string
description: string
icon: string
}
export const AboutMeEntry: FunctionComponent<Props> = (props: Props) => {
@ -12,7 +13,7 @@ export const AboutMeEntry: FunctionComponent<Props> = (props: Props) => {
<a href={props.url}>
<div
className="feature-icon d-inline-flex align-items-center justify-content-center text-bg-primary bg-gradient fs-2 mb-3">
<i className="bi bi-github"></i>
<i className={props.icon}></i>
</div>
</a>
<div className="feature col align-items-center justify-content-center">

View File

@ -7,5 +7,6 @@ export const Github: FunctionComponent<any> = () => {
url="https://github.com/pgrondek"
title="Github"
description="My main public git repository"
icon="bi bi-github"
/>
}