From 37ecdebcbaf0065c9d4668f117519115a80c3a71 Mon Sep 17 00:00:00 2001 From: Silabear <56885288+Silabear@users.noreply.github.com> Date: Fri, 14 Aug 2026 23:10:57 +0100 Subject: [PATCH 1/8] initial welcome screen design --- src/lib/components/WelcomeScreen.svelte | 68 +++++++++++++++++++++++++ src/routes/+page.svelte | 10 ++++ 2 files changed, 78 insertions(+) create mode 100644 src/lib/components/WelcomeScreen.svelte diff --git a/src/lib/components/WelcomeScreen.svelte b/src/lib/components/WelcomeScreen.svelte new file mode 100644 index 0000000..78d1878 --- /dev/null +++ b/src/lib/components/WelcomeScreen.svelte @@ -0,0 +1,68 @@ + + +
+
+ +
+
+ logo + Minecraft Text Editor +
+ +
+
+

Welcome!

+

With this tool, easily generate text for Minecraft datapacks, tellraw commands, and more. Here's what else we have to offer:

+
+ +
+ +
+ Import + Import text components from any version into the editor to make adjustments. +
+
+ +
+ +
+ Gradient + Easily add gradients to text, without the output being insanely long. +
+
+ +
+ +
+ Lore output + With two clicks, get an output correctly formatted for item lore components. +
+
+ +
+ +
+ Open source + All the code that makes this work is public. We maintain and update the site regularly. +
+
+
+

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

+
+
+
+
+ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a3d964e..867dbd4 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,4 +1,6 @@
-
+
+
-
-
- logo - Minecraft Text Editor -
- -
-
-

Welcome!

-

With this tool, easily generate text for Minecraft datapacks, tellraw commands, and more. Here's what else we have to offer:

-
+
+

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 to make adjustments. -
+
+ +
+ Import + Import text components from any version into the editor.
+
-
- -
- Gradient - Easily add gradients to text, without the output being insanely long. -
+
+ +
+ Gradient + Easily add gradients to text, we'll do the rest.
+
-
- -
- Lore output - With two clicks, get an output correctly formatted for item lore components. -
+
+ +
+ Lore output + Get an output correctly formatted for item lore components.
+
-
- -
- Open source - All the code that makes this work is public. We maintain and update the site regularly. -
+
+ +
+ Open source + All the code is public, and we maintain and update it regularly.
-

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

+ + + +

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 63b9aa8..59a6540 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 @@

Entity

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 @@