Merge pull request #23 from svc-design/feat/homepage-icons

feat: generate favicon.ico and 32px icon from logo.png
This commit is contained in:
shenlan 2025-06-19 17:11:55 +08:00 committed by GitHub
commit 05ee17fad0
4 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,17 @@ YARN := $(shell command -v yarn 2>/dev/null)
.PHONY: init dev build export clean info
icon:
@echo "🎨 Generating favicon and icon images..."
@if ! command -v magick &> /dev/null; then \
echo "❌ ImageMagick (magick) not found. Please install it (e.g. brew install imagemagick)."; \
exit 1; \
fi
@mkdir -p public/icons
@magick ../logo.png -resize 32x32 public/icons/cloudnative_32.png
@magick ../logo.png -resize 64x64 -background none -define icon:auto-resize=64,48,32,16 public/favicon.ico
@echo "✅ Icons generated successfully."
init:
@echo "🔧 Installing dependencies for homepage..."
@if [ -z "$(YARN)" ]; then \

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
ui/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB