From 3aebd4027963af578536ed826624e7d170ef3911 Mon Sep 17 00:00:00 2001 From: shay Date: Sat, 18 Apr 2026 12:50:23 -0400 Subject: [PATCH] chore(favicon): replace old SVG with new design for favicon icon chore(ResultScreen): simplify embed section layout and improve copy button chore(WorkshopScreen): replace emoji icons with inline SVGs for consistency chore(index.html): update page --- generator/frontend/index.html | 2 +- generator/frontend/public/favicon.svg | 10 +++- .../frontend/src/screens/ResultScreen.tsx | 28 ++++++---- .../frontend/src/screens/WorkshopScreen.tsx | 53 ++++++++++++++++--- 4 files changed, 74 insertions(+), 19 deletions(-) diff --git a/generator/frontend/index.html b/generator/frontend/index.html index 0fca6f0..c55f394 100644 --- a/generator/frontend/index.html +++ b/generator/frontend/index.html @@ -4,7 +4,7 @@ - frontend + GitHub Widgets
diff --git a/generator/frontend/public/favicon.svg b/generator/frontend/public/favicon.svg index 6893eb1..d30797e 100644 --- a/generator/frontend/public/favicon.svg +++ b/generator/frontend/public/favicon.svg @@ -1 +1,9 @@ - \ No newline at end of file + + + G + diff --git a/generator/frontend/src/screens/ResultScreen.tsx b/generator/frontend/src/screens/ResultScreen.tsx index 25025c1..63db692 100644 --- a/generator/frontend/src/screens/ResultScreen.tsx +++ b/generator/frontend/src/screens/ResultScreen.tsx @@ -81,22 +81,28 @@ export function ResultScreen({ username, generating, generatedSvg, generateError
-
-

Embed in your README

+

Embed in your README

+
+
+                  {embedSnippet}
+                
-
-                {embedSnippet}
-              
-

- GitHub requires HTTPS for README images — serve this behind a TLS - reverse proxy or Cloudflare Tunnel if the page is on http://. -

)} diff --git a/generator/frontend/src/screens/WorkshopScreen.tsx b/generator/frontend/src/screens/WorkshopScreen.tsx index f83eff3..0cbbb91 100644 --- a/generator/frontend/src/screens/WorkshopScreen.tsx +++ b/generator/frontend/src/screens/WorkshopScreen.tsx @@ -19,11 +19,50 @@ const ALL_WIDGETS = [ { id: 'achievements', label: 'Achievements' }, ] -const ICONS = [ - { id: 'trophy', label: '🏆' }, - { id: 'medal', label: '🥇' }, - { id: 'star', label: '⭐' }, - { id: 'hackathon', label: '💻' }, +// Inline SVGs keep parity with the backend (generator/src/widgets/achievements.py) +// and render deterministically across platforms where emoji coverage varies. +const ICONS: { id: string; svg: JSX.Element }[] = [ + { + id: 'trophy', + svg: ( + + + + + + + + ), + }, + { + id: 'medal', + svg: ( + + + + + + ), + }, + { + id: 'star', + svg: ( + + + + ), + }, + { + id: 'hackathon', + svg: ( + + + + + + + ), + }, ] const COLOR_PRESETS = [ @@ -344,7 +383,9 @@ export function WorkshopScreen({ }`} title={ic.id} > - {ic.label} + + {ic.svg} + ))}