Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .claude/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.0.1",
"configurations": [
{
"name": "dev",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "dev"],
"port": 3000,
"autoPort": true
}
]
}
18 changes: 18 additions & 0 deletions app/editor/[name]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import EditorApp from "@/components/editor/editor-app";

export default async function EditorPage({
params,
searchParams,
}: {
params: Promise<{ name: string }>;
searchParams: Promise<{ mode?: string }>;
}) {
const { name } = await params;
const { mode } = await searchParams;
return (
<EditorApp
pageName={decodeURIComponent(name)}
initialPreview={mode === "preview"}
/>
);
}
23 changes: 22 additions & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,25 @@
html {
@apply font-sans;
}
}
}
/* UltimateUI-Editor: interaktive Elemente im Preview-Modus */
.uui-interactive {
cursor: pointer;
}
.uui-interactive:hover {
filter: brightness(1.35);
}

/* Minecraft-Look für Canvas-Texte (Monocraft, SIL OFL — public/fonts/) */
@font-face {
font-family: "Monocraft";
src: url("/fonts/Monocraft.ttf") format("truetype");
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: "Monocraft";
src: url("/fonts/Monocraft-Bold.ttf") format("truetype");
font-weight: 700;
font-display: swap;
}
8 changes: 5 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ export default function RootLayout({
suppressHydrationWarning
>
<body className="min-h-full flex flex-col">
<Providers>{children}</Providers>
<Toaster />
<ThemeSwitcher />
<Providers>
{children}
<Toaster />
<ThemeSwitcher />
</Providers>
</body>
</html>
);
Expand Down
16 changes: 8 additions & 8 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"use client";

import CreateUiDialog from "@/components/home/create-ui-dialog";
import HomeCard from "@/components/home/home-card";
import SelectPageDialog from "@/components/page/select-page-dialog";
import { Button } from "@/components/ui/button";
import { CirclePlus, ExternalLink, Pen } from "lucide-react";
import Link from "next/link";

export default function Home() {
return (
<div className="grid grid-cols-3 gap-2 justify-center items-center h-screen w-screen p-5">
<div className="grid h-screen w-screen grid-cols-3 items-center justify-center gap-2 p-5">
<HomeCard
icon={<Pen />}
title="Edit existing UI"
Expand All @@ -17,8 +17,8 @@ export default function Home() {
<SelectPageDialog
trigger={<Button>Edit</Button>}
title="Edit existing UI"
description="Edit the UI you previously created in the editor by clicking here"
footer={<div />}
description="Pick one of your saved UIs to continue editing."
mode="edit"
/>
}
/>
Expand All @@ -27,7 +27,7 @@ export default function Home() {
icon={<CirclePlus />}
title="Create UI"
description="Create a new UI that your players will be able to use while playing on the server"
button={<Link href={"#"} />}
button={<CreateUiDialog trigger={<Button>Create</Button>} />}
/>

<HomeCard
Expand All @@ -36,10 +36,10 @@ export default function Home() {
description="Open the UI and see how it looks after finishing it in the editor"
button={
<SelectPageDialog
trigger={<Button>Edit</Button>}
trigger={<Button>Open</Button>}
title="Open UI"
description="Open the UI and see how it looks after finishing it in the editor"
footer={<div />}
description="Pick a saved UI to preview it like in game."
mode="preview"
/>
}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Providers({ children }: PropsWithChildren) {
defaultTheme="system"
disableTransitionOnChange
>
<TooltipProvider>{children}</TooltipProvider>;
<TooltipProvider>{children}</TooltipProvider>
</ThemeProvider>
);
}
Loading