From de01f5d5e7b08ff69791776b359ea22f67e493fd Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 23 Dec 2021 22:02:38 +0100 Subject: [PATCH] feat: Initial UI design --- src/ui/public/global.css | 2 + src/ui/src/App.svelte | 4 +- src/ui/src/components/HelloWorld.svelte | 81 ------------------- src/ui/src/components/Main.svelte | 39 +++++++++ .../src/components/resources/Resources.svelte | 45 +++++++++++ 5 files changed, 88 insertions(+), 83 deletions(-) delete mode 100644 src/ui/src/components/HelloWorld.svelte create mode 100644 src/ui/src/components/Main.svelte create mode 100644 src/ui/src/components/resources/Resources.svelte diff --git a/src/ui/public/global.css b/src/ui/public/global.css index 8a06963..055f781 100644 --- a/src/ui/public/global.css +++ b/src/ui/public/global.css @@ -1,3 +1,5 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap'); + * { margin: 0; padding: 0; diff --git a/src/ui/src/App.svelte b/src/ui/src/App.svelte index 3f3e759..7614e93 100644 --- a/src/ui/src/App.svelte +++ b/src/ui/src/App.svelte @@ -1,6 +1,6 @@ - -
-

Svelte NUI Popup!

-
Player coords: {JSON.stringify(clientData) || ''}
-
- - -
- Or press the escape key! -
- - diff --git a/src/ui/src/components/Main.svelte b/src/ui/src/components/Main.svelte new file mode 100644 index 0000000..5f18cca --- /dev/null +++ b/src/ui/src/components/Main.svelte @@ -0,0 +1,39 @@ + + +
+ +
+
Some Data here
+
+
+ + diff --git a/src/ui/src/components/resources/Resources.svelte b/src/ui/src/components/resources/Resources.svelte new file mode 100644 index 0000000..d2dd0cd --- /dev/null +++ b/src/ui/src/components/resources/Resources.svelte @@ -0,0 +1,45 @@ + + +
+ {#each executingResources as resource} +
+
+ {resource} +
+
+ {/each} +
+ +