This commit is contained in:
No files matched your search
+5
-2
@@ -3,6 +3,7 @@
|
||||
import { authClient } from "@/lib/auth-client";
|
||||
import websites from "@/lib/websites";
|
||||
import Image from "next/image";
|
||||
import { useState } from "react";
|
||||
import useSWR, { Fetcher } from "swr";
|
||||
|
||||
type LastFM = {
|
||||
@@ -22,6 +23,7 @@ const fetcher: Fetcher<LastFM, string> = (...args) =>
|
||||
fetch(...args).then((res) => res.json());
|
||||
|
||||
export default function Home() {
|
||||
const [isBunny, setIsBunny] = useState(false);
|
||||
const { data: session, isPending, error } = authClient.useSession();
|
||||
|
||||
const { data, isLoading } = useSWR("/api/lastfm", fetcher, {
|
||||
@@ -32,7 +34,7 @@ export default function Home() {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
name: "Nikola Kubiczek",
|
||||
url: "https://yaemiku.dev/",
|
||||
url: "https://www.yaemiku.dev/",
|
||||
};
|
||||
|
||||
return (
|
||||
@@ -45,12 +47,13 @@ export default function Home() {
|
||||
/>
|
||||
<header className="text-center backdrop-blur-sm p-2 border-2 border-gray-700 rounded-md">
|
||||
<Image
|
||||
src={"/pfp_pic.webp"}
|
||||
src={isBunny ? "/spoon_bunny.webp" : "/pfp_pic.webp"}
|
||||
width={200}
|
||||
height={200}
|
||||
alt="My Picture"
|
||||
priority
|
||||
className="mx-auto rounded-full m-2 shadow-md"
|
||||
onClick={() => setIsBunny(!isBunny)}
|
||||
/>
|
||||
<h1>Nikola Kubiczek</h1>
|
||||
{isLoading ? (
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user