15 lines
1.4 KiB
JavaScript
15 lines
1.4 KiB
JavaScript
// Rôle : icônes au trait de la Carte du jour (indices, loupe et règles du départ), teintées par la couleur du texte.
|
|
const PATHS = {
|
|
zoomOut: <><rect x="3.5" y="3.5" width="17" height="17" rx="3" /><path d="M8.5 12h-3m13 0h-3M12 8.5v-3m0 13v-3M5.5 12l1.8-1.5M5.5 12l1.8 1.5M18.5 12l-1.8-1.5m1.8 1.5-1.8 1.5" /></>,
|
|
compare: <><rect x="3.5" y="5" width="7" height="14" rx="1.5" /><rect x="13.5" y="5" width="7" height="14" rx="1.5" /><path d="M6 10h2m8 0h2M6 14h2m8 0h2" /></>,
|
|
lens: <><circle cx="10.5" cy="10.5" r="6.5" /><path d="m15.5 15.5 5.5 5.5" /></>,
|
|
album: <><path d="M12 6.5C10 5 7 4.5 3.5 4.8v13.7c3.5-.3 6.5.2 8.5 1.7 2-1.5 5-2 8.5-1.7V4.8C17 4.5 14 5 12 6.5Z" /><path d="M12 6.5v13.7" /></>,
|
|
collection: <><rect x="9" y="3.5" width="11.5" height="15" rx="2" /><path d="M6.5 6.5v12.2a2 2 0 0 0 2 2h8M3.5 9.5v9" /></>,
|
|
page: <><path d="M6 3.5h8L18.5 8v12L16 18.5l-2 2-2.5-2-2 2-3-2-.5 1Z" /><path d="M14 3.5V8h4.5M9 11.5h6M9 14.5h4" /></>,
|
|
theme: <><path d="m12 3.5 2 6.5 6.5 2-6.5 2-2 6.5-2-6.5-6.5-2 6.5-2Z" /><path d="M19 3.5v3M17.5 5h3" /></>,
|
|
shape: <><path d="M3 18 7.2 6.5h.6L12 18M4.6 14h5.8" /><path d="M14.5 18H21M14.5 13H21" strokeDasharray="2.5 1.6" /></>
|
|
};
|
|
|
|
export function DailyIcon({ name }) {
|
|
return <svg className="nebula-daily-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">{PATHS[name]}</svg>;
|
|
}
|