From a4bb5aff9cbdb053910d280642d30d8a2b3540d3 Mon Sep 17 00:00:00 2001 From: David Bushell Date: Sun, 8 Mar 2026 12:51:58 +0000 Subject: [PATCH] pwa assets --- .gitignore | 1 + src/app.html | 3 +++ src/css/base/properties.css | 5 +++++ src/css/components/button.css | 8 ++++---- src/css/components/input.css | 2 +- static/images/192x192.png | Bin 0 -> 611 bytes static/images/512x512.png | Bin 0 -> 1672 bytes static/images/button-danger.svg | 6 +++--- static/images/button-hover.svg | 4 ++-- static/images/button.svg | 4 ++-- static/images/favicon.svg | 4 ++++ static/images/input.svg | 4 ++-- static/images/pointer.svg | 2 +- static/manifest.webmanifest | 20 ++++++++++++++++++++ 14 files changed, 48 insertions(+), 15 deletions(-) create mode 100644 static/images/192x192.png create mode 100644 static/images/512x512.png create mode 100644 static/images/favicon.svg create mode 100644 static/manifest.webmanifest diff --git a/.gitignore b/.gitignore index e2c970d..b36c1f4 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ !static/**/*.png !static/**/*.svg !static/**/*.txt +!static/*.webmanifest !.env.example !.gitignore !lex.config.ts diff --git a/src/app.html b/src/app.html index 9e70654..e64cf02 100644 --- a/src/app.html +++ b/src/app.html @@ -3,6 +3,9 @@ + + + %sveltekit.head% diff --git a/src/css/base/properties.css b/src/css/base/properties.css index 06131e9..7f84bd2 100644 --- a/src/css/base/properties.css +++ b/src/css/base/properties.css @@ -18,4 +18,9 @@ --color-red: 222 34 68; --app-margin: max(20px, min(5vi, 100px)); + + --input-border: url('data:image/svg+xml;utf8,'); + --button-border: url('data:image/svg+xml;utf8,'); + --button-border-hover: url('data:image/svg+xml;utf8,'); + --button-border-danger: url('data:image/svg+xml;utf8,'); } diff --git a/src/css/components/button.css b/src/css/components/button.css index 27a4aac..48036a0 100644 --- a/src/css/components/button.css +++ b/src/css/components/button.css @@ -1,6 +1,6 @@ button[type] { border: 15px solid transparent; - border-image: url("/images/button.svg") 15 fill stretch; + border-image: var(--button-border) 15 fill stretch; block-size: calc(var(--font-size-button) + 30px); color: rgb(var(--color-black)); font-family: var(--font-family-2); @@ -12,15 +12,15 @@ button[type] { text-box: trim-both ex alphabetic; text-transform: uppercase; text-shadow: 2px 2px rgb(var(--color-brown) / 0.3); - transition: border-image 200ms; + transition: border-image 100ms; &:hover { - border-image-source: url("/images/button-hover.svg"); + border-image-source: var(--button-border-hover); } &[data-danger] { &:not(:hover) { - border-image-source: url("/images/button-danger.svg"); + border-image-source: var(--button-border-danger); color: rgb(var(--color-red)); } } diff --git a/src/css/components/input.css b/src/css/components/input.css index 5a0facc..4e32f66 100644 --- a/src/css/components/input.css +++ b/src/css/components/input.css @@ -1,6 +1,6 @@ input { border: 15px solid transparent; - border-image: url("/images/input.svg") 15 fill stretch; + border-image: var(--input-border) 15 fill stretch; block-size: calc(var(--font-size-button) + 30px); color: rgb(var(--color-black)); font-family: var(--font-family-1); diff --git a/static/images/192x192.png b/static/images/192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..8268e127d9a8df9817bd8412db1fd29e880ecc06 GIT binary patch literal 611 zcmeAS@N?(olHy`uVBq!ia0y~yU^oE6EX)iH3=2LLnlLah@CW#WxH_mQJzK!Aw~2Fd zvS600)Px5=W-u@?@q4;BhE&{odm}LKm4QI(L*{Qx678%%Zw&#Z{B8 zt$X=EGHS_B`OgOTyO%aMq()8yqic8b#NC8%SSB46t5I3Dpk{s>kKe=_ya`h}LRx2f zgwA+*Q0*9VsEEwObpk6FPbk#)kNqpbA)eOBDRb~mRs$oO#0QxJ`*m~or#K!Ez5QBQ zmbKy2@=O1}cFR0S-q72J z)`l;u8CV*2)Nn4(4V07Ec$SmtYW%a`Pm?QH4}>?~wc-tOxW*JCy5kh{3PyKRg_DfG z#R?`cH!%h5o4)mjNJqF7}nIOVkVcprIQ<(d*99A*L$yszT_Z)r0 zc&m9C{{rz0{#kYcR~qKZT#(xm&LGvS#y_R`8<#`%g)0pjtZVfDy$xREu=w*aAAY9r zUzzoyA0}GNJ;?f?;=3h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..93a8b0c 100644 --- a/static/images/button-danger.svg +++ b/static/images/button-danger.svg @@ -1,4 +1,4 @@ - - - + + + diff --git a/static/images/button-hover.svg b/static/images/button-hover.svg index 4a235b7..9cc8f7f 100644 --- a/static/images/button-hover.svg +++ b/static/images/button-hover.svg @@ -1,4 +1,4 @@ - - + + diff --git a/static/images/button.svg b/static/images/button.svg index 0aef633..434c203 100644 --- a/static/images/button.svg +++ b/static/images/button.svg @@ -1,4 +1,4 @@ - - + + diff --git a/static/images/favicon.svg b/static/images/favicon.svg new file mode 100644 index 0000000..2c4732d --- /dev/null +++ b/static/images/favicon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/images/input.svg b/static/images/input.svg index 67217d3..2c76114 100644 --- a/static/images/input.svg +++ b/static/images/input.svg @@ -1,4 +1,4 @@ - - + + diff --git a/static/images/pointer.svg b/static/images/pointer.svg index b77e691..001d32c 100644 --- a/static/images/pointer.svg +++ b/static/images/pointer.svg @@ -1,4 +1,4 @@ - + diff --git a/static/manifest.webmanifest b/static/manifest.webmanifest new file mode 100644 index 0000000..e044763 --- /dev/null +++ b/static/manifest.webmanifest @@ -0,0 +1,20 @@ +{ + "name": "Attic", + "short_name": "Attic", + "icons": [ + { + "src": "/images/192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/images/512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#402622", + "background_color": "#402622", + "display": "standalone", + "start_url": "/" +} -- 2.51.2