make realtime scores mobile responsive
This commit is contained in:
parent
e1c665193b
commit
8814b9881e
@ -47,14 +47,14 @@ scores = Array.from({ length: 32 }, () => scores).flat();
|
|||||||
|
|
||||||
export default function RealtimeScores() {
|
export default function RealtimeScores() {
|
||||||
return (
|
return (
|
||||||
<div className="px-5 -mt-20 flex flex-row-reverse gap-10 select-none">
|
<div className="px-5 -mt-20 flex flex-col lg:flex-row-reverse gap-10 select-none">
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<div className="flex flex-col gap-2.5 text-right items-end">
|
<div className="flex flex-col gap-2.5 text-right items-end">
|
||||||
<div className="flex flex-row-reverse gap-3 items-center text-yellow-400">
|
<div className="flex flex-row-reverse gap-3 items-center text-yellow-400">
|
||||||
<Database className="p-2 size-11 bg-yellow-800/15 rounded-lg" />
|
<Database className="p-2 size-11 bg-yellow-800/15 rounded-lg" />
|
||||||
<h1 className="text-3xl sm:text-4xl font-bold">Realtime Scores</h1>
|
<h1 className="text-3xl sm:text-4xl font-bold">Realtime Scores</h1>
|
||||||
</div>
|
</div>
|
||||||
<p className="max-w-5xl text-sm sm:text-base opacity-85">
|
<p className="max-w-2xl lg:max-w-5xl text-sm sm:text-base opacity-85">
|
||||||
<span className="text-lg font-semibold text-yellow-500">Nec detracto voluptatibus!</span> Vulputate duis
|
<span className="text-lg font-semibold text-yellow-500">Nec detracto voluptatibus!</span> Vulputate duis
|
||||||
dolorum iuvaret disputationi ceteros te noluisse himenaeos bibendum dolores molestiae lorem elaboraret porro
|
dolorum iuvaret disputationi ceteros te noluisse himenaeos bibendum dolores molestiae lorem elaboraret porro
|
||||||
brute tation simul laudem netus odio has in tibique.
|
brute tation simul laudem netus odio has in tibique.
|
||||||
@ -63,7 +63,7 @@ export default function RealtimeScores() {
|
|||||||
|
|
||||||
{/* Content */}
|
{/* Content */}
|
||||||
<div className="w-full flex flex-col justify-center items-center">
|
<div className="w-full flex flex-col justify-center items-center">
|
||||||
<AnimatedList className="h-96 divide-y divide-muted overflow-hidden">
|
<AnimatedList className="w-full max-w-[32rem] h-96 divide-y divide-muted overflow-hidden">
|
||||||
{scores.map((score, index) => (
|
{scores.map((score, index) => (
|
||||||
<Score key={index} {...score} />
|
<Score key={index} {...score} />
|
||||||
))}
|
))}
|
||||||
@ -75,7 +75,7 @@ export default function RealtimeScores() {
|
|||||||
|
|
||||||
function Score({ songArt, songName, songAuthor, setBy }: ScoreProps) {
|
function Score({ songArt, songName, songAuthor, setBy }: ScoreProps) {
|
||||||
return (
|
return (
|
||||||
<figure className="w-[32rem] py-2 flex flex-col text-sm">
|
<figure className="py-2 flex flex-col text-sm">
|
||||||
{/* Set By */}
|
{/* Set By */}
|
||||||
<span>
|
<span>
|
||||||
Set by <span className="text-ssr">{setBy}</span>
|
Set by <span className="text-ssr">{setBy}</span>
|
||||||
|
Reference in New Issue
Block a user