diff --git a/opal-web/generate-icons.sh b/opal-web/generate-icons.sh new file mode 100755 index 0000000..0909aa2 --- /dev/null +++ b/opal-web/generate-icons.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Generate PWA icons from SVG using ImageMagick (if available) +# Otherwise, create placeholder text files + +SIZES=(72 96 128 144 152 192 384 512) +ICON_DIR="static/icons" + +mkdir -p "$ICON_DIR" + +if command -v convert &> /dev/null; then + echo "Generating icons with ImageMagick..." + for size in "${SIZES[@]}"; do + convert -background "#4f46e5" -fill white -font Arial-Bold \ + -size ${size}x${size} -gravity center \ + label:O "$ICON_DIR/icon-$size.png" + echo "Created icon-$size.png" + done +else + echo "ImageMagick not found. Creating placeholder icon files..." + for size in "${SIZES[@]}"; do + echo "Placeholder $size x $size icon" > "$ICON_DIR/icon-$size.png" + done + echo "Note: Install ImageMagick and re-run to generate real icons" +fi diff --git a/opal-web/src/app.html b/opal-web/src/app.html index f273cc5..1262ab3 100644 --- a/opal-web/src/app.html +++ b/opal-web/src/app.html @@ -2,7 +2,11 @@ - + + + + + %sveltekit.head% diff --git a/opal-web/static/favicon.svg b/opal-web/static/favicon.svg new file mode 100644 index 0000000..b96d64a --- /dev/null +++ b/opal-web/static/favicon.svg @@ -0,0 +1,4 @@ + + + O + diff --git a/opal-web/static/icons/icon-128.png b/opal-web/static/icons/icon-128.png new file mode 100644 index 0000000..a360fa6 Binary files /dev/null and b/opal-web/static/icons/icon-128.png differ diff --git a/opal-web/static/icons/icon-144.png b/opal-web/static/icons/icon-144.png new file mode 100644 index 0000000..5146ab8 Binary files /dev/null and b/opal-web/static/icons/icon-144.png differ diff --git a/opal-web/static/icons/icon-152.png b/opal-web/static/icons/icon-152.png new file mode 100644 index 0000000..de37768 Binary files /dev/null and b/opal-web/static/icons/icon-152.png differ diff --git a/opal-web/static/icons/icon-192.png b/opal-web/static/icons/icon-192.png new file mode 100644 index 0000000..9ef7954 Binary files /dev/null and b/opal-web/static/icons/icon-192.png differ diff --git a/opal-web/static/icons/icon-384.png b/opal-web/static/icons/icon-384.png new file mode 100644 index 0000000..60380af Binary files /dev/null and b/opal-web/static/icons/icon-384.png differ diff --git a/opal-web/static/icons/icon-512.png b/opal-web/static/icons/icon-512.png new file mode 100644 index 0000000..cef4881 Binary files /dev/null and b/opal-web/static/icons/icon-512.png differ diff --git a/opal-web/static/icons/icon-72.png b/opal-web/static/icons/icon-72.png new file mode 100644 index 0000000..0979763 Binary files /dev/null and b/opal-web/static/icons/icon-72.png differ diff --git a/opal-web/static/icons/icon-96.png b/opal-web/static/icons/icon-96.png new file mode 100644 index 0000000..3792996 Binary files /dev/null and b/opal-web/static/icons/icon-96.png differ diff --git a/opal-web/static/offline.html b/opal-web/static/offline.html new file mode 100644 index 0000000..dd2ae30 --- /dev/null +++ b/opal-web/static/offline.html @@ -0,0 +1,76 @@ + + + + + + Offline - Opal Task Manager + + + +
+ + + +

You're Offline

+

It looks like you've lost your internet connection. Please check your connection and try again.

+ +
+ +