From 84bf1b38159dfe5e4746fec2a5dadf14e80a4b9d Mon Sep 17 00:00:00 2001 From: skidoodle <skidoodle> Date: Mon, 15 Aug 2022 15:21:27 +0200 Subject: [PATCH] many --- components/data/socials.ts | 6 ------ pages/_app.tsx | 8 +++++++- pages/_document.tsx | 1 - pages/index.tsx | 9 +++++++-- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/components/data/socials.ts b/components/data/socials.ts index 1ce4fc7..bf503ee 100644 --- a/components/data/socials.ts +++ b/components/data/socials.ts @@ -3,7 +3,6 @@ import { FaDiscord, FaEnvelope, FaGithub, FaInstagram, FaSteam } from 'react-ico type Socials = { id: number, - name: string ref: string icon: IconType, copyValue?: boolean, @@ -12,32 +11,27 @@ type Socials = { export const socials: Array<Socials> = [ { id: 1, - name: 'Github', ref: 'https://github.com/skidoodle', icon: FaGithub, }, { id: 2, - name: 'Steam', ref: 'https://steamcommunity.com/id/_albert', icon: FaSteam, }, { id: 3, - name: 'Email', ref: 'contact@albert.lol', icon: FaEnvelope, copyValue: true, }, { id: 4, - name: 'Instagram', ref: 'https://www.instagram.com/albertadam_/', icon: FaInstagram, }, { id: 5, - name: 'Discord', ref: 'albert#8838', icon: FaDiscord, copyValue: true, diff --git a/pages/_app.tsx b/pages/_app.tsx index 3292ae2..d807a67 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,9 +1,15 @@ import 'styles/globals.scss' +import Head from 'next/head' import { AppProps } from 'next/app' export default function({ Component, pageProps }: AppProps) { return ( - <Component {...pageProps} /> + <> + <Head> + <title>albert</title> + </Head> + <Component {...pageProps} /> + </> ) } \ No newline at end of file diff --git a/pages/_document.tsx b/pages/_document.tsx index 1f435a8..77abb2c 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -6,7 +6,6 @@ class AppDocument extends Document { <Html lang='en'> <Head> <link rel='preconnect' href='https://vitals.vercel-insights.com' /> - <title>albert</title> <meta name='title' content='albert' /> <meta name='og:title' content='albert' /> <meta name='description' content='system administrator' /> diff --git a/pages/index.tsx b/pages/index.tsx index 9fdab8e..5fab647 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -16,7 +16,6 @@ const fetcher = (url: RequestInfo) => fetch(url).then(r => r.json()) export default function() { const { data: spotify } = useSWR('/api/spotify', fetcher, { refreshInterval: 1000 }) if(!spotify) return - return ( <FadeIn> <div className='px-8 w-11/12 m-auto rounded-lg max-w-4xl'> @@ -50,7 +49,13 @@ export default function() { <div className='flex justify-between items-center text-3xl mt-11 md:mt-16 max-w-sm m-auto'> { socials.map(social => ( - <Icon key={ social.id } aria-label={ social.name } reference={ social.ref } copyValue={ social.copyValue }>{ React.createElement(social.icon) }</Icon> + <Icon + key={ social.id } + reference={ social.ref } + copyValue={ social.copyValue } + > + { React.createElement(social.icon) } + </Icon> ))} </div> </div>