spoon bunny
Build Full Stack / release-image (push) Successful in 2m12s

This commit is contained in:
2026-04-12 22:03:03 +02:00
parent 311f23a0d1
commit f0f248ae36
2 changed files with 5 additions and 2 deletions

No files matched your search

+5 -2
View File
@@ -3,6 +3,7 @@
import { authClient } from "@/lib/auth-client"; import { authClient } from "@/lib/auth-client";
import websites from "@/lib/websites"; import websites from "@/lib/websites";
import Image from "next/image"; import Image from "next/image";
import { useState } from "react";
import useSWR, { Fetcher } from "swr"; import useSWR, { Fetcher } from "swr";
type LastFM = { type LastFM = {
@@ -22,6 +23,7 @@ const fetcher: Fetcher<LastFM, string> = (...args) =>
fetch(...args).then((res) => res.json()); fetch(...args).then((res) => res.json());
export default function Home() { export default function Home() {
const [isBunny, setIsBunny] = useState(false);
const { data: session, isPending, error } = authClient.useSession(); const { data: session, isPending, error } = authClient.useSession();
const { data, isLoading } = useSWR("/api/lastfm", fetcher, { const { data, isLoading } = useSWR("/api/lastfm", fetcher, {
@@ -32,7 +34,7 @@ export default function Home() {
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "WebSite", "@type": "WebSite",
name: "Nikola Kubiczek", name: "Nikola Kubiczek",
url: "https://yaemiku.dev/", url: "https://www.yaemiku.dev/",
}; };
return ( 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"> <header className="text-center backdrop-blur-sm p-2 border-2 border-gray-700 rounded-md">
<Image <Image
src={"/pfp_pic.webp"} src={isBunny ? "/spoon_bunny.webp" : "/pfp_pic.webp"}
width={200} width={200}
height={200} height={200}
alt="My Picture" alt="My Picture"
priority priority
className="mx-auto rounded-full m-2 shadow-md" className="mx-auto rounded-full m-2 shadow-md"
onClick={() => setIsBunny(!isBunny)}
/> />
<h1>Nikola Kubiczek</h1> <h1>Nikola Kubiczek</h1>
{isLoading ? ( {isLoading ? (
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB