From d8c97a2df52d6a9342da429c43325eb7cb2e7271 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sun, 19 Mar 2023 00:39:52 +0100 Subject: [PATCH] Fix remaining warnings and remove leave necessary social links --- components/Card/index.tsx | 2 +- components/Footer/index.tsx | 10 +++------- components/Hero/index.tsx | 2 +- components/IconButton.tsx | 6 ++++-- components/MobileNav/index.tsx | 1 + components/Nav/index.tsx | 2 ++ pages/404.tsx | 2 +- pages/_app.tsx | 10 ---------- pages/_document.tsx | 7 +++++++ pages/blog/[slug].tsx | 4 ++-- pages/blog/index.tsx | 2 +- pages/portfolio/[slug].tsx | 4 ++-- pages/portfolio/index.tsx | 2 +- styles/shared.tsx | 3 +-- styles/theme.tsx | 4 ++-- 15 files changed, 29 insertions(+), 32 deletions(-) diff --git a/components/Card/index.tsx b/components/Card/index.tsx index d0485ff..835e033 100644 --- a/components/Card/index.tsx +++ b/components/Card/index.tsx @@ -14,7 +14,7 @@ interface Props { const Card: FC = ({ title, description, image, tags, href, target, onClick }) => { return ( - +

{title}

{description}

diff --git a/components/Footer/index.tsx b/components/Footer/index.tsx index 2ac41f8..fd6d59c 100644 --- a/components/Footer/index.tsx +++ b/components/Footer/index.tsx @@ -10,6 +10,7 @@ const Footer: FC = () => {
{ target='_blank' /> { target='_blank' /> -

Hazem Krimi © {new Date().getFullYear()}

diff --git a/components/Hero/index.tsx b/components/Hero/index.tsx index a8cbe8d..3516ffe 100644 --- a/components/Hero/index.tsx +++ b/components/Hero/index.tsx @@ -11,7 +11,7 @@ const Hero: FC = () => (

Life Long Learner

- + Hazem Krimi
); diff --git a/components/IconButton.tsx b/components/IconButton.tsx index 0c60646..ab24cc4 100644 --- a/components/IconButton.tsx +++ b/components/IconButton.tsx @@ -4,6 +4,7 @@ import Image from 'next/image'; import Link from 'next/link'; interface Props { + alt: string; icon: string; width?: number; height?: number; @@ -21,6 +22,7 @@ const Btn = styled(Link)` `; const IconButton: FC = ({ + alt, icon, href, target, @@ -31,11 +33,11 @@ const IconButton: FC = ({ }) => { return !href ? ( - + {alt} ) : ( - + {alt} ); }; diff --git a/components/MobileNav/index.tsx b/components/MobileNav/index.tsx index b34e920..43df7f5 100644 --- a/components/MobileNav/index.tsx +++ b/components/MobileNav/index.tsx @@ -32,6 +32,7 @@ const MobileNav: FC = ({ open, close }) => {
diff --git a/components/Nav/index.tsx b/components/Nav/index.tsx index e9798eb..52593ed 100644 --- a/components/Nav/index.tsx +++ b/components/Nav/index.tsx @@ -25,6 +25,7 @@ const Nav: FC = () => {
@@ -40,6 +41,7 @@ const Nav: FC = () => { Resume setMobileNavOpen(true)} /> diff --git a/pages/404.tsx b/pages/404.tsx index 00d242f..89f7afe 100644 --- a/pages/404.tsx +++ b/pages/404.tsx @@ -32,7 +32,7 @@ const NotFound: FC = () => {

404: This page could not be found

router.push('/')}> - + Go Home
diff --git a/pages/_app.tsx b/pages/_app.tsx index 45a3ea0..7e54954 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,7 +1,6 @@ import { useEffect } from 'react'; import type { AppProps } from 'next/app'; -import Head from 'next/head'; import Script from 'next/script'; import { useRouter } from 'next/router'; @@ -53,15 +52,6 @@ const App = ({ Component, pageProps }: AppProps) => { __html: initStyles() }} /> - - - - - - diff --git a/pages/_document.tsx b/pages/_document.tsx index 1c7ecad..2f038f5 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -35,6 +35,13 @@ class Doc extends Document { return ( + + + +