mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
Lighthouse fixes
This commit is contained in:
parent
c2d2b9b76a
commit
678a16b3fa
2 changed files with 8 additions and 2 deletions
|
@ -3,6 +3,7 @@ import { FaDiscord, FaEnvelope, FaGithub, FaInstagram, FaSteam } from 'react-ico
|
||||||
|
|
||||||
type Socials = {
|
type Socials = {
|
||||||
id: number,
|
id: number,
|
||||||
|
name: string
|
||||||
ref: string
|
ref: string
|
||||||
icon: IconType,
|
icon: IconType,
|
||||||
copyValue?: boolean,
|
copyValue?: boolean,
|
||||||
|
@ -11,27 +12,32 @@ type Socials = {
|
||||||
export const socials: Array<Socials> = [
|
export const socials: Array<Socials> = [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
name: 'Github',
|
||||||
ref: 'https://github.com/skidoodle',
|
ref: 'https://github.com/skidoodle',
|
||||||
icon: FaGithub,
|
icon: FaGithub,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
|
name: 'Steam',
|
||||||
ref: 'https://steamcommunity.com/id/_albert',
|
ref: 'https://steamcommunity.com/id/_albert',
|
||||||
icon: FaSteam,
|
icon: FaSteam,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
|
name: 'Email',
|
||||||
ref: 'contact@albert.lol',
|
ref: 'contact@albert.lol',
|
||||||
icon: FaEnvelope,
|
icon: FaEnvelope,
|
||||||
copyValue: true,
|
copyValue: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
|
name: 'Instagram',
|
||||||
ref: 'https://www.instagram.com/albertadam_/',
|
ref: 'https://www.instagram.com/albertadam_/',
|
||||||
icon: FaInstagram,
|
icon: FaInstagram,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 5,
|
id: 5,
|
||||||
|
name: 'Discord',
|
||||||
ref: 'albert#8838',
|
ref: 'albert#8838',
|
||||||
icon: FaDiscord,
|
icon: FaDiscord,
|
||||||
copyValue: true,
|
copyValue: true,
|
||||||
|
|
|
@ -21,7 +21,7 @@ export default function() {
|
||||||
<FadeIn>
|
<FadeIn>
|
||||||
<div className='px-8 w-11/12 m-auto rounded-lg max-w-4xl'>
|
<div className='px-8 w-11/12 m-auto rounded-lg max-w-4xl'>
|
||||||
<div className='flex flex-col justify-center items-center mt-28 md:mt-36'>
|
<div className='flex flex-col justify-center items-center mt-28 md:mt-36'>
|
||||||
<Image src={profilePic} className="rounded-full text-center" height={150} width={150}/>
|
<Image src={profilePic} alt='Profile Picture' className="rounded-full text-center" height={150} width={150}/>
|
||||||
|
|
||||||
<h1 className='text-4xl font-bold mt-1'>albert</h1>
|
<h1 className='text-4xl font-bold mt-1'>albert</h1>
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ export default function() {
|
||||||
|
|
||||||
<div className='flex justify-between items-center text-3xl mt-11 md:mt-16 max-w-sm m-auto'>
|
<div className='flex justify-between items-center text-3xl mt-11 md:mt-16 max-w-sm m-auto'>
|
||||||
{ socials.map(social => (
|
{ socials.map(social => (
|
||||||
<Icon key={ social.id } reference={ social.ref } copyValue={ social.copyValue }>{ React.createElement(social.icon) }</Icon>
|
<Icon key={ social.id } aria-label={ social.name } reference={ social.ref } copyValue={ social.copyValue }>{ React.createElement(social.icon) }</Icon>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue