Updated dynamic layout for mobile
This commit is contained in:
@@ -218,7 +218,7 @@ export default function Sidebar({ level, ign, player, guild, rank, specialRank,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className="w-1/4">
|
<Card className="w-full md:w-1/4">
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<General />
|
<General />
|
||||||
<Separator className="my-4" />
|
<Separator className="my-4" />
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default function SocialIcons(
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="flex flex-wrap">
|
||||||
<DiscordIcon username={discord} />
|
<DiscordIcon username={discord} />
|
||||||
<SocialIcon href={twitch}>
|
<SocialIcon href={twitch}>
|
||||||
<FaTwitch />
|
<FaTwitch />
|
||||||
@@ -29,7 +29,7 @@ export default function SocialIcons(
|
|||||||
<SocialIcon href={hypixel}>
|
<SocialIcon href={hypixel}>
|
||||||
<CgWebsite />
|
<CgWebsite />
|
||||||
</SocialIcon>
|
</SocialIcon>
|
||||||
</>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ async function SuspendedPage({ params }: Pick<PageProps<"/player/[ign]">, "param
|
|||||||
<h1>
|
<h1>
|
||||||
{player.uuid}
|
{player.uuid}
|
||||||
</h1>
|
</h1>
|
||||||
<div className="flex gap-6 px-6 mt-8 w-full max-w-7xl">
|
<div className="flex flex-col gap-6 px-6 pb-4 mt-8 w-full max-w-7xl md:flex-row">
|
||||||
<Sidebar
|
<Sidebar
|
||||||
level={level}
|
level={level}
|
||||||
ign={pign}
|
ign={pign}
|
||||||
@@ -110,7 +110,7 @@ async function SuspendedPage({ params }: Pick<PageProps<"/player/[ign]">, "param
|
|||||||
/>
|
/>
|
||||||
{player.stats !== undefined ?
|
{player.stats !== undefined ?
|
||||||
(
|
(
|
||||||
<div className="pb-4 w-3/4">
|
<div className="w-full md:w-3/4">
|
||||||
<Accordion type="multiple" className="space-y-4">
|
<Accordion type="multiple" className="space-y-4">
|
||||||
<BedwarsStats stats={player.stats.Bedwars} />
|
<BedwarsStats stats={player.stats.Bedwars} />
|
||||||
<SkyWarsStats
|
<SkyWarsStats
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export default function DisplayName(
|
|||||||
className="shadow-2xl"
|
className="shadow-2xl"
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<h1 className="text-3xl font-bold text-stroke text-stroke-foreground dark:text-stroke-transparent">
|
<h1 className="text-xl font-bold md:text-3xl text-stroke text-stroke-foreground dark:text-stroke-transparent">
|
||||||
<PlayerRank rank={rank} monthly={monthly} plusColor={plusColor} rankColor={rankColor} specialRank={specialRank} prefix={prefix} />
|
<PlayerRank rank={rank} monthly={monthly} plusColor={plusColor} rankColor={rankColor} specialRank={specialRank} prefix={prefix} />
|
||||||
{" "}
|
{" "}
|
||||||
<PlayerIGN ign={ign} rank={rank} monthly={monthly} rankColor={rankColor} specialRank={specialRank} prefix={prefix} />{" "}
|
<PlayerIGN ign={ign} rank={rank} monthly={monthly} rankColor={rankColor} specialRank={specialRank} prefix={prefix} />{" "}
|
||||||
|
|||||||
Reference in New Issue
Block a user