feat: add SiteLogo component and remove unused logo image

This commit is contained in:
hamed
2026-08-08 21:06:14 +03:30
parent da3f1e5458
commit e8a073cae6
2 changed files with 0 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
function SiteLogo({ city, className, stroke = "#5559CE" }) {
if (city?.logo_url) {
return (
<img
src={city.logo_url}
alt="logo"
crossOrigin="anonymous"
className={`object-contain ${className}`}
/>
);
}
return (
<svg
viewBox="0 0 100 100"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M50 12 A38 38 0 1 0 88 50 A19 19 0 0 0 55.6 36.6"
fill="none"
stroke={stroke}
strokeWidth="7.5"
strokeLinecap="round"
/>
<rect x="46.5" y="40" width="7" height="20" rx="3.5" fill="#FF8848" />
<rect x="40" y="46.5" width="20" height="7" rx="3.5" fill="#FF8848" />
</svg>
);
}
export default SiteLogo;