This commit is contained in:
imnyang 2025-01-20 21:35:33 +09:00
commit 3260257108
2 changed files with 39 additions and 20 deletions

View file

@ -2,8 +2,26 @@
@tailwind components;
@tailwind utilities;
html, body {
html,
body {
background-color: #0a0a0a;
color-scheme: dark;
height: 100%;
}
}
#avatar {
transition: transform 0.5s linear;
}
#avatar:hover {
animation: rotate 1s linear infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

View file

@ -1,20 +1,21 @@
export default function Top() {
return (
<div
id="top"
className="w-auto text-center flex items-center justify-center flex-col gap-4"
>
<img
src="https://f.imnya.ng/profile/34b47ba35448cc74a659bcec443c3fbc.webp"
alt="imnyang"
width={200}
height={200}
className="rounded-full"
/>
<div>
<h1 className="text-2xl font-bold"></h1>
<p className="text-sm text-neutral-400">@imnyang</p>
</div>
return (
<div
id="top"
className="w-auto text-center flex items-center justify-center flex-col gap-4"
>
<img
src="https://f.imnya.ng/profile/34b47ba35448cc74a659bcec443c3fbc.webp"
alt="imnyang"
width={200}
height={200}
id="avatar"
className="rounded-full"
/>
<div>
<h1 className="text-2xl font-bold"></h1>
<p className="text-sm text-neutral-400">@imnyang</p>
</div>
);
}
</div>
);
}