diff --git a/src/app.css b/src/app.css index e7ca08d..8a5ff9e 100644 --- a/src/app.css +++ b/src/app.css @@ -120,6 +120,14 @@ strong { @apply rounded-md p-1 text-lg font-medium hover:bg-white/3; } +.input-basic { + @apply rounded-md bg-zinc-900 p-2; +} + +.link { + @apply font-bold underline; +} + .tippy-box[data-theme~="dph"] { background-color: var(--color-zinc-700); font-family: "Lexend", sans-serif; diff --git a/src/lib/components/TopUI.svelte b/src/lib/components/TopUI.svelte index 8ff1b7d..e8f8083 100644 --- a/src/lib/components/TopUI.svelte +++ b/src/lib/components/TopUI.svelte @@ -8,7 +8,7 @@ import IconUpload from "~icons/tabler/upload"; import IconSettings from "~icons/tabler/settings"; - const { editor }: { editor: Editor | undefined } = $props(); + let { editor, welcomeScreenVisible = $bindable() }: { editor: Editor | undefined, welcomeScreenVisible: boolean } = $props(); let snapshots = $state([]); let importText: string = $state(""); @@ -34,10 +34,10 @@
-
+
+ +
+
+

Welcome!

+

With this tool, you can easily generate text components for Minecraft datapacks, tellraw commands, and more. Here's what makes us unique:

+ +
+ +
+ +
+ Import + Import text components from any version into the editor. +
+
+ +
+ +
+ Gradient + Add gradients to text, while keeping styles and interactivity. +
+
+ +
+ +
+ Lore output + Get an output correctly formatted for item lore components. +
+
+ +
+ +
+ Open source + All the code is public, and we maintain and update it regularly. +
+
+
+ +

Feedback? We are a small team and would love to hear any feedback you have! Let us know what you think on our Discord server.

+ +

Bugs? Report them on our Discord server, or create an issue on Github.

+ +

This site is maintained by Datapack Hub, and is not endorsed by Mojang Studios.

+ + +
+ + + +{/if} \ No newline at end of file diff --git a/src/lib/components/modals/ClickEventModal.svelte b/src/lib/components/modals/ClickEventModal.svelte index ca35c1a..c4ebbfe 100644 --- a/src/lib/components/modals/ClickEventModal.svelte +++ b/src/lib/components/modals/ClickEventModal.svelte @@ -11,7 +11,7 @@

Event Type

- @@ -32,7 +32,7 @@

Command:

Note: the player must have permission to run the command!

@@ -40,7 +40,7 @@

Command:

Note: the player must have permission to run the command!

@@ -48,21 +48,21 @@

Text to copy:

{:else if clickEventType == "change_page"}

Page to go to:

{:else if clickEventType == "open_dialog"}

Dialog ID:

{/if} diff --git a/src/lib/components/modals/CustomSourceModal.svelte b/src/lib/components/modals/CustomSourceModal.svelte index 7c51907..861538d 100644 --- a/src/lib/components/modals/CustomSourceModal.svelte +++ b/src/lib/components/modals/CustomSourceModal.svelte @@ -122,7 +122,7 @@ {/if} {:else} - @@ -136,14 +136,14 @@

Translate Key

Fallback

@@ -198,13 +198,13 @@

Objective

Player, Fake Player, or Entity

@@ -225,7 +225,7 @@ {:else if customType === "nbt"}

NBT Source type

- @@ -234,14 +234,14 @@

Storage ID

NBT path

@@ -270,14 +270,14 @@

Entity

NBT path

@@ -306,14 +306,14 @@

Block

NBT path

@@ -343,7 +343,7 @@

Keybind

{/if}
diff --git a/src/lib/components/modals/topbar/SettingsModal.svelte b/src/lib/components/modals/topbar/SettingsModal.svelte index 6f0d927..6fb412a 100644 --- a/src/lib/components/modals/topbar/SettingsModal.svelte +++ b/src/lib/components/modals/topbar/SettingsModal.svelte @@ -55,7 +55,7 @@