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
This commit is contained in:
shay
2026-04-18 12:50:23 -04:00
parent eadd074402
commit 3aebd40279
4 changed files with 74 additions and 19 deletions
@@ -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: (
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<path d="M6 9H4a2 2 0 0 1-2-2V5h4" />
<path d="M18 9h2a2 2 0 0 0 2-2V5h-4" />
<path d="M6 3h12v6a6 6 0 0 1-12 0V3z" />
<path d="M10 21h4" />
<path d="M12 15v6" />
</svg>
),
},
{
id: 'medal',
svg: (
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<circle cx="12" cy="15" r="6" />
<path d="M8.5 2l3.5 7 3.5-7" />
<path d="M7 2h10" />
</svg>
),
},
{
id: 'star',
svg: (
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<polygon points="12 2 15 9 22 9.5 17 14.5 18.5 22 12 18 5.5 22 7 14.5 2 9.5 9 9 12 2" />
</svg>
),
},
{
id: 'hackathon',
svg: (
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<rect x="2" y="4" width="20" height="14" rx="2" />
<path d="M8 10l-2 2 2 2" />
<path d="M16 10l2 2-2 2" />
<path d="M2 20h20" />
</svg>
),
},
]
const COLOR_PRESETS = [
@@ -344,7 +383,9 @@ export function WorkshopScreen({
}`}
title={ic.id}
>
{ic.label}
<span className={ach.icon === ic.id ? 'text-white' : 'text-gray-600'}>
{ic.svg}
</span>
</button>
))}
<div className="flex-1" />