rotate
This commit is contained in:
parent
394e0d1315
commit
3260257108
2 changed files with 39 additions and 20 deletions
22
app/app.css
22
app/app.css
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue