From c7b02f02ad0a7e2888f2d7d3599719e59bbd1ee2 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 13 Nov 2025 14:56:02 +0100 Subject: frontend: design prototype --- static/icons/192.png | Bin 0 -> 3608 bytes static/icons/512.png | Bin 0 -> 10138 bytes static/icons/add.js | 3 +++ static/icons/calendar.js | 3 +++ static/icons/check.js | 3 +++ static/icons/close.js | 3 +++ static/icons/edit.js | 3 +++ static/icons/home.js | 4 ++++ static/icons/icon.svg | 51 +++++++++++++++++++++++++++++++++++++++++++++++ static/icons/index.js | 31 ++++++++++++++++++++++++++++ static/icons/search.js | 3 +++ static/icons/settings.js | 3 +++ static/icons/shuffle.js | 4 ++++ 13 files changed, 111 insertions(+) create mode 100644 static/icons/192.png create mode 100644 static/icons/512.png create mode 100644 static/icons/add.js create mode 100644 static/icons/calendar.js create mode 100644 static/icons/check.js create mode 100644 static/icons/close.js create mode 100644 static/icons/edit.js create mode 100644 static/icons/home.js create mode 100644 static/icons/icon.svg create mode 100644 static/icons/index.js create mode 100644 static/icons/search.js create mode 100644 static/icons/settings.js create mode 100644 static/icons/shuffle.js (limited to 'static/icons') diff --git a/static/icons/192.png b/static/icons/192.png new file mode 100644 index 0000000..802e580 Binary files /dev/null and b/static/icons/192.png differ diff --git a/static/icons/512.png b/static/icons/512.png new file mode 100644 index 0000000..3a3ceed Binary files /dev/null and b/static/icons/512.png differ diff --git a/static/icons/add.js b/static/icons/add.js new file mode 100644 index 0000000..12650a8 --- /dev/null +++ b/static/icons/add.js @@ -0,0 +1,3 @@ +export default ` + +`; diff --git a/static/icons/calendar.js b/static/icons/calendar.js new file mode 100644 index 0000000..9d9b2ec --- /dev/null +++ b/static/icons/calendar.js @@ -0,0 +1,3 @@ +export default ` + +`; diff --git a/static/icons/check.js b/static/icons/check.js new file mode 100644 index 0000000..dfc2763 --- /dev/null +++ b/static/icons/check.js @@ -0,0 +1,3 @@ +export default ` + +` diff --git a/static/icons/close.js b/static/icons/close.js new file mode 100644 index 0000000..8c96dbd --- /dev/null +++ b/static/icons/close.js @@ -0,0 +1,3 @@ +export default ` + +`; diff --git a/static/icons/edit.js b/static/icons/edit.js new file mode 100644 index 0000000..e13bb8a --- /dev/null +++ b/static/icons/edit.js @@ -0,0 +1,3 @@ +export default ` + +`; diff --git a/static/icons/home.js b/static/icons/home.js new file mode 100644 index 0000000..a6b4886 --- /dev/null +++ b/static/icons/home.js @@ -0,0 +1,4 @@ +export default ` + + +`; diff --git a/static/icons/icon.svg b/static/icons/icon.svg new file mode 100644 index 0000000..87b8771 --- /dev/null +++ b/static/icons/icon.svg @@ -0,0 +1,51 @@ + + + + + + + + + + diff --git a/static/icons/index.js b/static/icons/index.js new file mode 100644 index 0000000..08ab7ea --- /dev/null +++ b/static/icons/index.js @@ -0,0 +1,31 @@ +import * as sfw from 'sfw'; +const { I } = sfw.element.native; + +const icons = [ + 'settings', + 'shuffle', + 'calendar', + 'search', + 'close', + 'home', + 'add', + 'edit', + 'check', +]; + +const target = { + icons: await Promise.all( + icons.map(async v => [v, await import(`./${v}.js`)]) + ).then(r => r.reduce((obj, [v, m]) => (obj[v] = m, obj), {})), +}; + +const handler = { + get(target, prop, receiver) { + return I.new({ + innerHTML: target.icons[prop]?.default ?? '?', + className: 'icon', + }); + } +}; + +export default new Proxy(target, handler); diff --git a/static/icons/search.js b/static/icons/search.js new file mode 100644 index 0000000..a35ff2a --- /dev/null +++ b/static/icons/search.js @@ -0,0 +1,3 @@ +export default ` + +`; diff --git a/static/icons/settings.js b/static/icons/settings.js new file mode 100644 index 0000000..258c8f8 --- /dev/null +++ b/static/icons/settings.js @@ -0,0 +1,3 @@ +export default ` + +`; diff --git a/static/icons/shuffle.js b/static/icons/shuffle.js new file mode 100644 index 0000000..d538fd8 --- /dev/null +++ b/static/icons/shuffle.js @@ -0,0 +1,4 @@ +export default ` + + +`; -- cgit v1.2.3-70-g09d2