feat(brand): rebrand to Hedena Gold and bring main user-app chrome
Rename the brand, ship Hedena logos, persist login OTP text in the SMS list, and port home/nav/auth/theme polish from main while keeping expert customers intact. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,18 +1,26 @@
|
||||
"""
|
||||
Legacy Python generator — prefer scripts/generate-brand-icons.mjs when Node + sharp are available.
|
||||
|
||||
Point `src` at the icon-only master (scripts/brand-assets/hedena-icon.webp), then run from repo root.
|
||||
"""
|
||||
from PIL import Image
|
||||
from pathlib import Path
|
||||
|
||||
src = Path(r"C:\Users\mahmo\.cursor\projects\c-App-gold-bank\assets\c__Users_mahmo_AppData_Roaming_Cursor_User_workspaceStorage_e98278b20f306ff9e248e1d576e8bb3f_images_mzLogoDarkmode-079331ec-aa35-4a0f-bc63-1b0a0c4215eb.webp")
|
||||
src = Path(__file__).resolve().parent / "brand-assets" / "hedena-icon.webp"
|
||||
img = Image.open(src).convert("RGBA")
|
||||
print("source size", img.size)
|
||||
|
||||
root = Path(r"C:\App\gold-bank")
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
(root / "apps/user-app/public/img").mkdir(parents=True, exist_ok=True)
|
||||
(root / "apps/user-app/src/assets/img").mkdir(parents=True, exist_ok=True)
|
||||
(root / "apps/admin-panel/src/assets/images/logo").mkdir(parents=True, exist_ok=True)
|
||||
(root / "apps/admin-panel/public").mkdir(parents=True, exist_ok=True)
|
||||
|
||||
img.save(root / "apps/user-app/public/img/brand-logo.webp", "WEBP")
|
||||
img.save(root / "apps/user-app/public/img/brand-logo.png", "PNG")
|
||||
img.save(root / "apps/user-app/src/assets/img/brand-logo.png", "PNG")
|
||||
img.save(root / "apps/user-app/public/img/no-items.png", "PNG")
|
||||
img.save(root / "apps/user-app/src/assets/img/no-items.png", "PNG")
|
||||
img.save(root / "apps/admin-panel/src/assets/images/logo/brand-icon.webp", "WEBP")
|
||||
img.save(root / "apps/admin-panel/src/assets/images/logo/brand-icon.png", "PNG")
|
||||
img.save(root / "apps/admin-panel/src/assets/images/logo/brand-horizontal.png", "PNG")
|
||||
@@ -20,15 +28,17 @@ img.save(root / "apps/admin-panel/src/assets/images/logo/brand-horizontal.png",
|
||||
for size, path in [
|
||||
(192, root / "apps/user-app/public/icon-192.png"),
|
||||
(512, root / "apps/user-app/public/icon-512.png"),
|
||||
(192, root / "apps/admin-panel/public/icon-192.png"),
|
||||
(512, root / "apps/admin-panel/public/icon-512.png"),
|
||||
(32, root / "apps/admin-panel/public/favicon.png"),
|
||||
]:
|
||||
resized = img.resize((size, size), Image.Resampling.LANCZOS)
|
||||
resized.save(path, "PNG")
|
||||
print("wrote", path, size)
|
||||
icon = Image.new("RGBA", (size, size), (0, 0, 0, 255))
|
||||
fitted = img.copy()
|
||||
fitted.thumbnail((size, size), Image.Resampling.LANCZOS)
|
||||
x = (size - fitted.width) // 2
|
||||
y = (size - fitted.height) // 2
|
||||
icon.paste(fitted, (x, y), fitted)
|
||||
icon.save(path, "PNG")
|
||||
print("wrote", path)
|
||||
|
||||
favicon = img.resize((256, 256), Image.Resampling.LANCZOS)
|
||||
favicon.save(root / "apps/user-app/public/favicon.ico", sizes=[(16, 16), (32, 32), (48, 48), (64, 64)])
|
||||
favicon.save(
|
||||
root / "apps/admin-panel/src/assets/images/logo/favicon.ico",
|
||||
sizes=[(16, 16), (32, 32), (48, 48), (64, 64)],
|
||||
)
|
||||
print("done")
|
||||
print("Note: favicon.ico is generated by scripts/generate-brand-icons.mjs (to-ico).")
|
||||
|
||||
Reference in New Issue
Block a user