From 20bf62f42f41638733e0b02affe90c04b1cb2938 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Thu, 20 Jan 2022 00:37:52 +0100 Subject: initial commit on thunderstore support Only frontend stuff, nothing that queries Thunderstore. --- src/app/browser.js | 29 +++++++++++++++++++++++++++++ src/app/index.html | 3 +++ src/app/main.css | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 src/app/browser.js (limited to 'src') diff --git a/src/app/browser.js b/src/app/browser.js new file mode 100644 index 0000000..1fe6930 --- /dev/null +++ b/src/app/browser.js @@ -0,0 +1,29 @@ +function Browser() { + browser.classList.toggle("shown") +};Browser() + +function BrowserEl(properties) { + properties = { + title: "No name", + image: "", + author: "Unnamed Pilot", + description: "No description", + ...properties + } + + browser.innerHTML += ` +
+
+ +
+
+
${properties.title}
+
${properties.description} - by ${properties.author}
+
+
+ ` +} + +new BrowserEl() +new BrowserEl() +new BrowserEl() diff --git a/src/app/index.html b/src/app/index.html index fe383a0..424265e 100644 --- a/src/app/index.html +++ b/src/app/index.html @@ -12,6 +12,8 @@
+ +