0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 20:20:09 +09:00

Fix status badge & name positioning

This commit is contained in:
yude 2021-05-30 18:26:40 +09:00
parent 8406afaa29
commit a52d5a2074
Signed by: yude
GPG Key ID: EB0FE5D925C4A968
2 changed files with 6 additions and 9 deletions

View File

@ -16,6 +16,7 @@ const App = () => {
const status = data.members && data.members[0].status;
return (
<>
<div className="z-50 transform translate-x-96 -translate-y-10 w-5">
{
(() => {
if (status == "online"){
@ -29,6 +30,7 @@ const App = () => {
}
})()
}
</div>
</>
)
}

View File

@ -38,11 +38,7 @@ export default function About(props) {
{
// Heading
}
<div className="flex justify-center">
<div>
<div className="z-50 transform translate-x-40 translate-y-48 w-5">
<DiscordStatus />
</div>
<Image
className = "object-contain rounded-full hover:animate-rumble z-0"
src = "/static/images/avatar.png"
@ -51,14 +47,13 @@ export default function About(props) {
height = {200}
unoptimized = {true}
/>
<p className="text-4xl subpixel-antialiased">yude</p>
<DiscordStatus />
<p className="text-4xl transform -translate-y-4">yude</p>
<div>
<DiscordPlaying />
<Spotify />
</div>
</div>
</div>
{
// Description