From 93c47d48701d4006a7fb581566da7b444f8f32df Mon Sep 17 00:00:00 2001
From: arch0Xd <71967828+arch0Xd@users.noreply.github.com>
Date: Sun, 14 Aug 2022 21:15:06 +0200
Subject: [PATCH] buzi nyomorek
---
components/Footer.tsx | 11 +++++++++++
pages/index.tsx | 10 ++++++----
2 files changed, 17 insertions(+), 4 deletions(-)
create mode 100644 components/Footer.tsx
diff --git a/components/Footer.tsx b/components/Footer.tsx
new file mode 100644
index 0000000..9012459
--- /dev/null
+++ b/components/Footer.tsx
@@ -0,0 +1,11 @@
+export const Footer = () => {
+ return(
+
+ )
+}
\ No newline at end of file
diff --git a/pages/index.tsx b/pages/index.tsx
index bb2df9f..9a37449 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -5,19 +5,21 @@ import useSWR from 'swr'
import FadeIn from 'react-fade-in'
import { socials } from 'components/data/socials'
+import { Footer } from 'components/Footer'
import { Icon } from 'components/Icon'
-import profilePic from '../public/profile.webp'
import { Toaster } from 'react-hot-toast'
import { FaSpotify } from 'react-icons/fa'
+import profilePic from '../public/profile.webp'
+
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 (
- <>
@@ -54,9 +56,9 @@ export default function() {
))}
-
+
+
- >
)
}
\ No newline at end of file