Merge pull request #198 from arch0Xd/patch-1

buzi nyomorek
This commit is contained in:
skidoodle 2022-08-14 21:39:49 +02:00 committed by GitHub
commit 8c2fd07aeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

11
components/Footer.tsx Normal file
View file

@ -0,0 +1,11 @@
export const Footer = () => {
return(
<div className='text-center text-lg'>
<footer className='fixed bottom-2 left-0 right-0 text-[#727277] font-thin'>
<a href='https://arch.gay' target='_blank'>Made by
<span className='gradient font-semibold'> arch</span>
</a>
</footer>
</div>
)
}

View file

@ -6,14 +6,18 @@ import FadeIn from 'react-fade-in'
import profilePic from '../public/profile.webp' import profilePic from '../public/profile.webp'
import { socials } from 'components/data/socials' import { socials } from 'components/data/socials'
import { Footer } from 'components/Footer'
import { Icon } from 'components/Icon' import { Icon } from 'components/Icon'
import { Toaster } from 'react-hot-toast' import { Toaster } from 'react-hot-toast'
import { FaSpotify } from 'react-icons/fa' import { FaSpotify } from 'react-icons/fa'
import profilePic from '../public/profile.webp'
const fetcher = (url: RequestInfo) => fetch(url).then(r => r.json()) const fetcher = (url: RequestInfo) => fetch(url).then(r => r.json())
export default function() { export default function() {
const { data: spotify } = useSWR('/api/spotify', fetcher, { refreshInterval: 1000 }) const { data: spotify } = useSWR('/api/spotify', fetcher, { refreshInterval: 1000 })
if(!spotify) return if(!spotify) return
return ( return (
@ -54,6 +58,7 @@ export default function() {
</div> </div>
</div> </div>
<Footer />
<Toaster /> <Toaster />
</FadeIn> </FadeIn>
) )