polish UI to all menus

This commit is contained in:
RandyJC
2025-12-09 10:23:46 +01:00
parent 7bfb138f99
commit a572eb35cd
2 changed files with 18 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ import QuizEditor from "@rahoot/web/components/game/create/QuizEditor"
import MediaLibrary from "@rahoot/web/components/game/create/MediaLibrary"
import ThemeEditor from "@rahoot/web/components/game/create/ThemeEditor"
import SelectQuizz from "@rahoot/web/components/game/create/SelectQuizz"
import Button from "@rahoot/web/components/Button"
import { useEvent, useSocket } from "@rahoot/web/contexts/socketProvider"
import { useManagerStore } from "@rahoot/web/stores/manager"
import { useRouter } from "next/navigation"
@@ -57,14 +58,15 @@ const Manager = () => {
if (showMedia) {
return (
<div className="flex w-full flex-col gap-4">
<div className="flex gap-2">
<button
onClick={() => setShowMedia(false)}
className="rounded-md bg-gray-700 px-3 py-2 text-white"
>
<div className="flex w-full max-w-6xl flex-col gap-4 rounded-md bg-white p-4 shadow-sm">
<div className="flex items-center gap-2">
<Button onClick={() => setShowMedia(false)} className="bg-gray-700">
Back
</button>
</Button>
<div className="flex flex-col leading-tight">
<h2 className="text-lg font-semibold text-gray-900">Media library</h2>
<p className="text-xs text-gray-500">Upload, view, and delete unused media.</p>
</div>
</div>
<MediaLibrary />
</div>

View File

@@ -97,18 +97,17 @@ const ThemeEditor = ({ onBack }: Props) => {
}
return (
<div className="flex w-full flex-col gap-4">
<div className="flex items-center justify-between rounded-md bg-white/90 px-4 py-3 shadow-sm backdrop-blur">
<div className="flex items-center gap-3">
<button
onClick={onBack}
className="rounded-md bg-gray-800 px-3 py-2 text-white shadow hover:bg-gray-700"
>
<div className="flex w-full max-w-6xl flex-col gap-4 rounded-md bg-white p-4 shadow-sm">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<Button onClick={onBack} className="bg-gray-700">
Back
</button>
<div>
</Button>
<div className="flex flex-col leading-tight">
<h2 className="text-lg font-semibold text-gray-900">Theme editor</h2>
<p className="text-xs text-gray-500">Set the game background from uploads or a custom URL.</p>
<p className="text-xs text-gray-500">
Set the game background from uploads or a custom URL.
</p>
</div>
</div>
</div>