monorepo/gm-dash/ui/src/Dashboard.tsx

78 lines
1.8 KiB
TypeScript
Raw Normal View History

2024-08-20 16:10:01 +00:00
import './Dashboard.css';
2024-08-20 01:52:17 +00:00
import Card from './components/Card/Card';
2024-08-20 16:07:38 +00:00
import Launcher from './components/Launcher/Launcher';
import Launchpad from './components/Launchpad/Launchpad';
2024-08-19 23:07:49 +00:00
2024-08-20 01:52:17 +00:00
const LightThemes = () => <Card name="Light Themes">
<Launchpad
2024-08-20 16:02:25 +00:00
exclusive={true}
options={[
{ title: "Dark reds" },
{ title: "Watery" },
{ title: "Sunset" },
{ title: "Darkness" },
]}
/>
2024-08-20 01:52:17 +00:00
</Card>
const LightSetup = () => <div> </div>
interface LightProps {
name: string,
}
const Light = ({ name }: LightProps) => <div> <p> {name} </p> </div>
const Tracks = () => <Card name="Tracks">
<Launchpad
2024-08-20 16:02:25 +00:00
exclusive={false}
options={[
{ title: "City BGM" },
{ title: "Chat on the streets" },
{ title: "Abandoned structure" },
{ title: "Water dripping" },
]}
/>
2024-08-20 01:52:17 +00:00
</Card>
interface TrackProps {
name: string,
}
2024-08-20 16:07:38 +00:00
const Track = ({ name }: TrackProps) => <Launcher title={name} />
2024-08-20 01:52:17 +00:00
const Presets = () => <Card name="Presets">
<Launchpad
2024-08-20 16:02:25 +00:00
exclusive={true}
options={[
{ title: "Gilcrest Falls day" },
{ title: "Gilcrest Falls night" },
{ title: "Empty colony" },
{ title: "Surk colony" },
]}
/>
2024-08-20 01:52:17 +00:00
</Card>
interface PresetProps {
name: string
}
2024-08-20 16:07:38 +00:00
// const Scene = ({ name }: PresetProps) => <Launcher title={name} activated={false} />
2024-08-20 01:52:17 +00:00
const SceneEditor = () => <div> </div>
2024-08-20 16:10:01 +00:00
const Dashboard = () => {
2024-08-20 01:52:17 +00:00
return (
<div className="app">
<div className="layout">
<Presets />
<div>
<LightThemes />
<Tracks />
</div>
</div>
</div>
);
2024-08-19 23:07:49 +00:00
}
2024-08-20 16:10:01 +00:00
export default Dashboard;