diff --git a/deploy_to_hetzner.sh b/deploy_to_hetzner.sh index 740c102..41dfe77 100644 --- a/deploy_to_hetzner.sh +++ b/deploy_to_hetzner.sh @@ -12,9 +12,7 @@ echo "Uploading website files to $USER@$SERVER:$REMOTE_DIR ..." sshpass -p 'BiLqHib8s5Ag2FmL' sftp -oBatchMode=no -b - $USER@$SERVER < /dev/null; then + echo "Error: ImageMagick is not installed. Please install it first:" + echo " Ubuntu/Debian: sudo apt install imagemagick" + echo " macOS: brew install imagemagick" + echo " CentOS/RHEL: sudo yum install ImageMagick" + exit 1 +fi + +# Check if logo.png exists +if [ ! -f "src/img/logo.png" ]; then + echo "Error: src/img/logo.png not found!" + exit 1 +fi + +echo "Generating favicon.ico from logo.png..." + +# Generate favicon with multiple sizes (16x16, 32x32, 48x48) +# The -background transparent ensures transparency is preserved +# The -flatten combines all layers +convert src/img/logo.png \ + -background transparent \ + \( -clone 0 -resize 16x16 \) \ + \( -clone 0 -resize 32x32 \) \ + \( -clone 0 -resize 48x48 \) \ + -delete 0 \ + -alpha on \ + src/img/favicon.ico + +if [ $? -eq 0 ]; then + echo "✅ Successfully generated src/img/favicon.ico" + echo "Favicon sizes included: 16x16, 32x32, 48x48" +else + echo "❌ Failed to generate favicon" + exit 1 +fi diff --git a/src/device.png b/src/device.png deleted file mode 100644 index 047e2b0..0000000 Binary files a/src/device.png and /dev/null differ diff --git a/src/favicon.ico b/src/favicon.ico deleted file mode 100644 index 6d50fa8..0000000 Binary files a/src/favicon.ico and /dev/null differ diff --git a/src/img/device.png b/src/img/device.png new file mode 100644 index 0000000..e815d6d Binary files /dev/null and b/src/img/device.png differ diff --git a/src/img/favicon.ico b/src/img/favicon.ico new file mode 100644 index 0000000..a24f0b2 Binary files /dev/null and b/src/img/favicon.ico differ diff --git a/src/img/logo.png b/src/img/logo.png new file mode 100644 index 0000000..0baf6f6 Binary files /dev/null and b/src/img/logo.png differ diff --git a/src/index.html b/src/index.html index 2f938f7..4420ffc 100644 --- a/src/index.html +++ b/src/index.html @@ -5,19 +5,19 @@ SummitWave | Auracast Made Simple - - + + - +
- SummitWave logo + SummitWave logo