mirror of
https://github.com/yude-jp/yude.jp
synced 2025-12-16 20:54:17 +09:00
Fix status badge position on smartphone (or narrow width devices)
This commit is contained in:
@@ -15,17 +15,17 @@ const App = () => {
|
||||
const status = data.members && data.members[0].status;
|
||||
return (
|
||||
<>
|
||||
<div className="z-50 transform translate-x-96 -translate-y-10 w-5">
|
||||
<div className="z-50 w-6 transform translate-y-3/4 -translate-x-full">
|
||||
{
|
||||
(() => {
|
||||
if (status == "online"){
|
||||
return <div className="z-1000 text-green-700 rounded-full bg-green-500 flex w-5 h-5"></div>
|
||||
return <div className="text-green-700 rounded-full bg-green-500 flex w-6 h-6"></div>
|
||||
} else if (status == "idle"){
|
||||
return <div className="z-1000 text-yellow-700 rounded-full bg-green-500 flex w-5 h-5"></div>
|
||||
return <div className="text-yellow-700 rounded-full bg-green-500 flex w-6 h-6"></div>
|
||||
} else if (status == "dnd"){
|
||||
return <div className="z-1000 text-yellow-700 rounded-full bg-red-500 flex w-5 h-5"></div>
|
||||
return <div className="text-yellow-700 rounded-full bg-red-500 flex w-6 h-6"></div>
|
||||
} else {
|
||||
return <div className="z-1000 text-gray-700 rounded-full bg-red-500 flex w-5 h-5"></div>
|
||||
return <div className="text-gray-700 rounded-full bg-red-500 flex w-6 h-6"></div>
|
||||
}
|
||||
})()
|
||||
}
|
||||
|
||||
@@ -41,8 +41,9 @@ export default function About(props) {
|
||||
// Heading
|
||||
}
|
||||
<div>
|
||||
<div className="flex mb-10 justify-center">
|
||||
<Image
|
||||
className = "object-contain rounded-full hover:animate-rumble z-0"
|
||||
className = "rounded-full hover:animate-rumble z-0"
|
||||
src = "/static/images/avatar.png"
|
||||
alt = "yude's avatar"
|
||||
width = {200}
|
||||
@@ -50,6 +51,7 @@ export default function About(props) {
|
||||
unoptimized = {true}
|
||||
/>
|
||||
<DiscordStatus />
|
||||
</div>
|
||||
<p className="text-4xl transform -translate-y-4">yude</p>
|
||||
<div>
|
||||
<DiscordPlaying />
|
||||
|
||||
Reference in New Issue
Block a user