Fix social buttons
This commit is contained in:
parent
181505f12b
commit
5e970125ef
@ -30,15 +30,17 @@ const typeToIcon: { [key in ContactType]: [IconDefinition, string?] } = {
|
|||||||
const ContactComp = ({ id, type }: Contact) => {
|
const ContactComp = ({ id, type }: Contact) => {
|
||||||
const iconDescr = typeToIcon[type];
|
const iconDescr = typeToIcon[type];
|
||||||
return (
|
return (
|
||||||
<a
|
<div className={'p-3 '}>
|
||||||
className={'text-5xl p-3 text-gray-600' + ' ' + iconDescr[1]}
|
<a
|
||||||
href={contactToLink({ id, type })}
|
className={'text-5xl text-gray-600' + ' ' + iconDescr[1]}
|
||||||
target="_blank">
|
href={contactToLink({ id, type })}
|
||||||
<FontAwesomeIcon key={type} icon={iconDescr[0]} />
|
target="_blank">
|
||||||
</a>
|
<FontAwesomeIcon key={type} icon={iconDescr[0]} />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ({ contacts }: Props) => (
|
export default ({ contacts }: Props) => (
|
||||||
<div className={'text-center'}>{contacts.map((c) => ContactComp(c))}</div>
|
<div className={'flex flex-row justify-center'}>{contacts.map((c) => ContactComp(c))}</div>
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,7 @@ import PersonalCard from '../components/personal-card/PersonalCard';
|
|||||||
|
|
||||||
const Home = () => {
|
const Home = () => {
|
||||||
return (
|
return (
|
||||||
<div className="bg-gray-100 flex flex-col h-screen justify-between">
|
<div className="bg-gray-50 flex flex-col h-auto justify-between">
|
||||||
<PersonalCard />
|
<PersonalCard />
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user