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 title: string
url: string url: string
description: string description: string
icon: string
} }
export const AboutMeEntry: FunctionComponent<Props> = (props: Props) => { export const AboutMeEntry: FunctionComponent<Props> = (props: Props) => {
@ -12,7 +13,7 @@ export const AboutMeEntry: FunctionComponent<Props> = (props: Props) => {
<a href={props.url}> <a href={props.url}>
<div <div
className="feature-icon d-inline-flex align-items-center justify-content-center text-bg-primary bg-gradient fs-2 mb-3"> 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> </div>
</a> </a>
<div className="feature col align-items-center justify-content-center"> <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" url="https://github.com/pgrondek"
title="Github" title="Github"
description="My main public git repository" description="My main public git repository"
icon="bi bi-github"
/> />
} }