aboutsummaryrefslogtreecommitdiff
path: root/src/app/browser.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-20 00:37:52 +0100
committer0neGal <mail@0negal.com>2022-01-20 00:37:52 +0100
commit20bf62f42f41638733e0b02affe90c04b1cb2938 (patch)
tree0f30e6069e622b46743d15cbeb2a9be66e246e06 /src/app/browser.js
parentae7de46f4748c800097f0f3c700e6525d7d7cc4f (diff)
downloadViper-20bf62f42f41638733e0b02affe90c04b1cb2938.tar.gz
Viper-20bf62f42f41638733e0b02affe90c04b1cb2938.zip
initial commit on thunderstore support
Only frontend stuff, nothing that queries Thunderstore.
Diffstat (limited to 'src/app/browser.js')
-rw-r--r--src/app/browser.js29
1 files changed, 29 insertions, 0 deletions
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 += `
+ <div class="el">
+ <div class="image">
+ <img src="${properties.image}">
+ </div>
+ <div class="text">
+ <div class="title">${properties.title}</div>
+ <div class="description">${properties.description} - by ${properties.author}</div>
+ </div>
+ </div>
+ `
+}
+
+new BrowserEl()
+new BrowserEl()
+new BrowserEl()