Skip to content

Commit

Permalink
Refactor Logotype component for improved SVG rendering and update vie…
Browse files Browse the repository at this point in the history
…wBox dimensions
  • Loading branch information
NateIsern committed Dec 19, 2024
1 parent e713a87 commit 6c5cf22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/view/icons/Logotype.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ export function Logotype({
}: {fill?: PathProps['fill']} & SvgProps) {
const pal = usePalette('default')
// @ts-ignore it's fiiiiine
const size = parseInt(rest.width || 32)
const size = parseInt(rest.width || 32, 10)

return (
<Svg
fill="none"
viewBox="0 0 64 17"
viewBox="0 0 141.8952 20.5762"
{...rest}
width={size}
height={Number(size) * ratio}>
<Path
fill={fill || pal.text.color}
d="M8.478 6.252c1.503.538 2.3 1.78 2.3 3.172 0 2.356-1.576 3.785-4.6 3.785H0V0h5.974c2.875 0 4.267 1.466 4.267 3.413 0 1.3-.594 2.245-1.763 2.839Zm-2.69-4.193H2.504v3.45h3.284c1.28 0 1.967-.667 1.967-1.78 0-1.02-.705-1.67-1.967-1.67Zm-3.284 9.072h3.544c1.41 0 2.17-.65 2.17-1.818 0-1.224-.723-1.837-2.17-1.837H2.504v3.655ZM14.251 13.209h-2.337V0h2.337v13.209ZM22.001 8.998V3.636h2.338v9.573h-2.263v-1.392c-.724 1.076-1.726 1.614-3.006 1.614-2.022 0-3.34-1.224-3.34-3.45V3.636h2.338v5.955c0 1.206.594 1.818 1.8 1.818 1.132 0 2.133-.835 2.133-2.411ZM34.979 8.59v.556h-7.161c.167 1.651 1.076 2.467 2.486 2.467 1.076 0 1.8-.463 2.189-1.372h2.244c-.5 1.947-2.17 3.19-4.452 3.19-1.428 0-2.579-.463-3.45-1.372-.872-.91-1.318-2.115-1.318-3.637 0-1.502.427-2.708 1.299-3.636.872-.909 2.004-1.372 3.432-1.372 1.447 0 2.597.482 3.45 1.428.854.946 1.28 2.208 1.28 3.747Zm-4.75-3.358c-1.28 0-2.17.742-2.393 2.281h4.805c-.204-1.391-1.057-2.281-2.411-2.281ZM40.16 13.469c-2.783 0-4.249-1.095-4.379-3.303h2.282c.13 1.188.724 1.633 2.134 1.633 1.261 0 1.892-.39 1.892-1.15 0-.687-.445-1.02-1.874-1.262l-1.094-.185c-2.097-.353-3.136-1.318-3.136-2.894 0-1.8 1.429-2.894 3.97-2.894 2.728 0 4.138 1.075 4.23 3.246h-2.207c-.056-1.169-.742-1.577-2.023-1.577-1.113 0-1.67.371-1.67 1.113 0 .668.483.965 1.596 1.169l1.206.186c2.32.426 3.32 1.28 3.32 2.912 0 1.93-1.557 3.006-4.247 3.006ZM54.667 13.209h-2.671l-2.783-4.453-1.447 1.447v3.006h-2.3V0h2.3v7.606l3.896-3.97h2.783l-3.618 3.618 3.84 5.955ZM60.772 6.048l.78-2.412H64l-3.692 10.352c-.39 1.057-.872 1.818-1.484 2.245-.612.426-1.484.63-2.634.63-.39 0-.724-.018-1.02-.055V14.97h.89c1.057 0 1.577-.65 1.577-1.54 0-.445-.149-1.094-.446-1.929l-2.746-7.866h2.487l.779 2.393c.575 1.8 1.076 3.58 1.521 5.343.408-1.521.928-3.302 1.54-5.324Z"
d="M 8.463 20.303 L 3.65 4.621 L 3.527 4.621 C 3.701 7.812 3.787 9.94 3.787 11.006 L 3.787 20.303 L 0 20.303 L 0 0.315 L 5.77 0.315 L 10.5 15.6 L 10.582 15.6 L 15.6 0.315 L 21.369 0.315 L 21.369 20.303 L 17.418 20.303 L 17.418 10.842 C 17.418 10.396 17.425 9.881 17.438 9.297 C 17.452 8.714 17.514 7.164 17.623 4.649 L 17.5 4.649 L 12.346 20.303 L 8.463 20.303 Z M 39.837 20.303 L 28.325 20.303 L 28.325 0.315 L 39.837 0.315 L 39.837 3.787 L 32.563 3.787 L 32.563 8.176 L 39.331 8.176 L 39.331 11.649 L 32.563 11.649 L 32.563 16.803 L 39.837 16.803 L 39.837 20.303 Z M 63.664 20.303 L 58.277 20.303 L 49.582 5.182 L 49.459 5.182 C 49.632 7.853 49.718 9.757 49.718 10.897 L 49.718 20.303 L 45.931 20.303 L 45.931 0.315 L 51.277 0.315 L 59.959 15.285 L 60.054 15.285 C 59.918 12.688 59.849 10.851 59.849 9.776 L 59.849 0.315 L 63.664 0.315 L 63.664 20.303 Z M 78.33 20.303 L 74.092 20.303 L 74.092 3.842 L 68.664 3.842 L 68.664 0.315 L 83.758 0.315 L 83.758 3.842 L 78.33 3.842 L 78.33 20.303 Z M 88.759 20.303 L 88.759 0.315 L 92.997 0.315 L 92.997 20.303 L 88.759 20.303 Z M 118.096 10.282 C 118.096 13.59 117.275 16.133 115.635 17.91 C 113.994 19.688 111.642 20.577 108.58 20.577 C 105.517 20.577 103.166 19.688 101.525 17.91 C 99.885 16.133 99.064 13.581 99.064 10.254 C 99.064 6.927 99.887 4.387 101.532 2.632 C 103.177 0.878 105.536 0 108.607 0 C 111.679 0 114.028 0.884 115.655 2.653 C 117.282 4.421 118.096 6.964 118.096 10.282 Z M 103.508 10.282 C 103.508 12.515 103.932 14.196 104.779 15.327 C 105.627 16.457 106.894 17.022 108.58 17.022 C 111.961 17.022 113.652 14.775 113.652 10.282 C 113.652 5.779 111.971 3.528 108.607 3.528 C 106.921 3.528 105.65 4.095 104.793 5.23 C 103.936 6.365 103.508 8.049 103.508 10.282 Z M 141.895 20.303 L 136.508 20.303 L 127.813 5.182 L 127.69 5.182 C 127.863 7.853 127.95 9.757 127.95 10.897 L 127.95 20.303 L 124.163 20.303 L 124.163 0.315 L 129.508 0.315 L 138.19 15.285 L 138.286 15.285 C 138.149 12.688 138.081 10.851 138.081 9.776 L 138.081 0.315 L 141.895 0.315 L 141.895 20.303 Z"
/>
</Svg>
)
Expand Down

0 comments on commit 6c5cf22

Please sign in to comment.