Skip to content

Commit e0e979f

Browse files
committed
docs: Update logo SVG dimensions and simplify icon paths for improved performance
- Reduced the width and viewBox dimensions of the logo SVG for better scaling. - Simplified the icon paths to enhance rendering performance and reduce file size.
1 parent 448fcb8 commit e0e979f

File tree

1 file changed

+5
-37
lines changed

1 file changed

+5
-37
lines changed

docs/src/components/icons.tsx

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,16 @@ type IconProps = React.HTMLAttributes<SVGElement>;
33
export const Icons = {
44
logo: (props: IconProps) => (
55
<svg
6-
{...props}
7-
width="142"
6+
width="136"
87
height="17"
9-
viewBox="0 0 142 17"
8+
viewBox="0 0 136 17"
109
fill="none"
1110
xmlns="http://www.w3.org/2000/svg"
11+
{...props}
1212
>
1313
<path
14-
d="M0.00254059 16.1649V0.722389H3.30854V15.2731L1.48154 13.3809H10.4208V16.1649H0.00254059Z"
15-
fill="currentColor"
16-
/>
17-
<path
18-
d="M18.1709 16.1218H14.3535L23.2735 0.671604H27.0909L18.1709 16.1218Z"
19-
fill="currentColor"
20-
/>
21-
<path
22-
d="M37.1737 16.4698C35.6802 16.4698 34.4042 16.129 33.3457 15.4475C32.2872 14.766 31.468 13.8235 30.888 12.62C30.3225 11.402 30.0397 10.0028 30.0397 8.4223C30.0397 6.8708 30.3297 5.48605 30.9097 4.26805C31.4897 3.05005 32.3234 2.09305 33.4109 1.39705C34.5129 0.686549 35.8324 0.331299 37.3694 0.331299C38.7034 0.331299 39.8272 0.556049 40.7407 1.00555C41.6687 1.44055 42.4082 2.06405 42.9592 2.87605C43.5102 3.68805 43.8945 4.64505 44.1119 5.74705L40.6972 5.8993C40.5377 5.0438 40.1969 4.36955 39.6749 3.87655C39.1674 3.36905 38.4062 3.1153 37.3912 3.1153C36.5067 3.1153 35.7672 3.3473 35.1727 3.8113C34.5927 4.2753 34.1577 4.90605 33.8677 5.70355C33.5922 6.50105 33.4545 7.4073 33.4545 8.4223C33.4545 9.4518 33.5922 10.3653 33.8677 11.1628C34.1577 11.9458 34.5927 12.562 35.1727 13.0115C35.7672 13.461 36.5285 13.6858 37.4565 13.6858C38.138 13.6858 38.7252 13.548 39.2182 13.2725C39.7257 12.997 40.1172 12.62 40.3927 12.1415C40.6827 11.663 40.8567 11.1193 40.9147 10.5103H37.3912V8.09605H44.1555V16.1218H42.111L41.937 12.8158L42.3285 12.9898C42.1835 13.6713 41.8645 14.273 41.3715 14.795C40.8785 15.317 40.2695 15.7303 39.5445 16.0348C38.834 16.3248 38.0437 16.4698 37.1737 16.4698Z"
23-
fill="currentColor"
24-
/>
25-
<path
26-
d="M49.4033 16.1218V0.679298H52.7093V8.00905L51.2521 6.96505H60.0391L58.5601 8.00905V0.679298H61.8661V16.1218H58.5601V8.70505L60.0391 9.74905H51.2521L52.7093 8.70505V16.1218H49.4033Z"
27-
fill="currentColor"
28-
/>
29-
<path
30-
d="M70.3134 16.1218V3.4633H65.7024V0.679298H78.2739V3.4633H73.6411V16.1218H70.3134Z"
31-
fill="currentColor"
32-
/>
33-
<path
34-
d="M82.2993 16.1218V0.679298H92.9568V3.4633H83.7783L85.6053 1.57105V8.6398L83.7783 7.2043H92.5653V9.9448H83.7783L85.6053 8.5093V16.1218H82.2993Z"
35-
fill="currentColor"
36-
/>
37-
<path
38-
d="M94.9917 16.1218L100.56 0.679298H104.475L110.043 16.1218H106.606L105.475 12.8375H99.5374L98.4064 16.1218H94.9917ZM100.473 10.1188H104.562L102.517 4.1593L100.473 10.1188Z"
39-
fill="currentColor"
40-
/>
41-
<path
42-
d="M119.884 16.4698C118.55 16.4698 117.405 16.245 116.448 15.7955C115.491 15.346 114.744 14.7153 114.207 13.9033C113.671 13.0913 113.366 12.1343 113.294 11.0323L116.622 10.88C116.709 11.489 116.883 12.011 117.144 12.446C117.419 12.8665 117.782 13.1855 118.231 13.403C118.695 13.6205 119.261 13.7293 119.928 13.7293C120.479 13.7293 120.943 13.664 121.32 13.5335C121.711 13.403 122.008 13.2073 122.211 12.9463C122.414 12.6708 122.516 12.3373 122.516 11.9458C122.516 11.5833 122.429 11.2715 122.255 11.0105C122.081 10.735 121.747 10.4885 121.254 10.271C120.761 10.039 120.036 9.8143 119.079 9.5968C117.76 9.2923 116.694 8.95155 115.882 8.57455C115.085 8.19755 114.505 7.7263 114.142 7.1608C113.78 6.5808 113.598 5.8558 113.598 4.9858C113.598 4.0578 113.823 3.2458 114.273 2.5498C114.737 1.8538 115.404 1.31005 116.274 0.918548C117.144 0.527048 118.18 0.331299 119.384 0.331299C120.66 0.331299 121.74 0.556049 122.625 1.00555C123.509 1.45505 124.198 2.0713 124.691 2.8543C125.198 3.6373 125.503 4.5363 125.604 5.5513L122.298 5.7253C122.255 5.1888 122.11 4.7248 121.863 4.3333C121.617 3.9273 121.283 3.61555 120.863 3.39805C120.442 3.18055 119.935 3.0718 119.34 3.0718C118.586 3.0718 117.992 3.23855 117.557 3.57205C117.136 3.90555 116.926 4.34055 116.926 4.87705C116.926 5.25405 117.02 5.57305 117.209 5.83405C117.412 6.08055 117.738 6.29805 118.188 6.48655C118.652 6.67505 119.304 6.8563 120.145 7.0303C121.581 7.3203 122.712 7.69005 123.538 8.13955C124.379 8.57455 124.974 9.09655 125.322 9.70555C125.67 10.3145 125.844 11.0105 125.844 11.7935C125.844 12.7505 125.597 13.5843 125.104 14.2948C124.626 14.9908 123.937 15.5273 123.038 15.9043C122.153 16.2813 121.102 16.4698 119.884 16.4698Z"
43-
fill="currentColor"
44-
/>
45-
<path
46-
d="M133.557 16.1218V3.4633H128.946V0.679298H141.517V3.4633H136.884V16.1218H133.557Z"
47-
fill="currentColor"
14+
d="M33.6895 -1.14441e-05C35.0233 -1.14441e-05 36.1471 0.224414 37.0605 0.673817C37.9884 1.10876 38.7283 1.73208 39.2793 2.54393C39.8303 3.3559 40.2151 4.31309 40.4326 5.41503L37.0176 5.56737C36.8581 4.71195 36.5171 4.03788 35.9951 3.54491C35.4877 3.03749 34.7267 2.78327 33.7119 2.78319C32.8275 2.78319 32.0876 3.01557 31.4932 3.47948C30.9132 3.94348 30.4775 4.57456 30.1875 5.37206C29.9121 6.16947 29.7744 7.07597 29.7744 8.09081C29.7744 9.12014 29.9121 10.0336 30.1875 10.831C30.4775 11.614 30.9132 12.2302 31.4932 12.6797C32.0876 13.1291 32.8486 13.3544 33.7764 13.3545C34.4578 13.3545 35.0451 13.2159 35.5381 12.9404C36.0456 12.6649 36.4374 12.2881 36.7129 11.8096C37.0028 11.3311 37.1773 10.7876 37.2354 10.1787H33.7119V7.76464H40.4756V15.79H38.4316L38.3145 13.5898C38.1527 13.9019 37.946 14.1933 37.6914 14.4629C37.1984 14.9849 36.5893 15.3986 35.8643 15.7031C35.1539 15.993 34.3639 16.1377 33.4941 16.1377C32.0008 16.1377 30.7245 15.7976 29.666 15.1162C28.6075 14.4347 27.788 13.4916 27.208 12.2881C26.6426 11.0702 26.3604 9.67109 26.3604 8.09081C26.3604 6.53946 26.6496 5.15442 27.2295 3.93651C27.8095 2.71851 28.6439 1.76142 29.7314 1.06542C30.8334 0.355006 32.1526 2.38227e-05 33.6895 -1.14441e-05ZM113.529 -1.14441e-05C114.805 2.25964e-05 115.885 0.224405 116.77 0.673817C117.654 1.1233 118.343 1.73949 118.836 2.52245C119.343 3.30545 119.648 4.20471 119.749 5.21972L116.443 5.39354C116.4 4.85724 116.255 4.39335 116.009 4.00194C115.762 3.59594 115.428 3.28389 115.008 3.06639C114.587 2.84893 114.08 2.74022 113.485 2.74022C112.731 2.74025 112.137 2.90681 111.702 3.24022C111.282 3.57365 111.071 4.00858 111.071 4.54491C111.071 4.92191 111.166 5.24094 111.354 5.50194C111.557 5.74843 111.884 5.96677 112.333 6.15526C112.797 6.34369 113.449 6.5243 114.29 6.69823C115.726 6.98823 116.857 7.35811 117.684 7.80761C118.524 8.24259 119.119 8.76506 119.467 9.37401C119.815 9.98297 119.988 10.679 119.988 11.4619C119.988 12.4189 119.742 13.2524 119.249 13.9629C118.771 14.6589 118.082 15.1953 117.183 15.5723C116.298 15.9492 115.247 16.1377 114.029 16.1377C112.695 16.1377 111.55 15.9133 110.593 15.4639C109.636 15.0144 108.889 14.3833 108.353 13.5713C107.816 12.7593 107.512 11.8021 107.439 10.7002L110.767 10.5478C110.854 11.1568 111.028 11.6792 111.289 12.1142C111.565 12.5346 111.927 12.8538 112.376 13.0713C112.84 13.2888 113.406 13.3974 114.073 13.3974C114.624 13.3974 115.088 13.3326 115.465 13.2021C115.856 13.0716 116.153 12.8752 116.356 12.6142C116.559 12.3388 116.661 12.0056 116.661 11.6142C116.661 11.2518 116.574 10.9397 116.4 10.6787C116.226 10.4032 115.892 10.1569 115.399 9.93944C114.906 9.70745 114.182 9.48213 113.225 9.26464C111.905 8.96016 110.839 8.62011 110.027 8.24315C109.23 7.86615 108.65 7.39459 108.287 6.82909C107.925 6.24915 107.743 5.52416 107.743 4.65429C107.743 3.72629 107.968 2.91376 108.418 2.21776C108.882 1.5219 109.549 0.97835 110.419 0.586903C111.289 0.195437 112.326 -1.14441e-05 113.529 -1.14441e-05ZM3.30566 13.0058H10.418V15.79H0V0.347645H3.30566V13.0058ZM17.6865 15.79H14.4678L19.7812 0.353504H23L17.6865 15.79ZM48.5947 6.6328H54.4453V0.347645H57.751V15.79H54.4453V9.41698H48.5947V15.79H45.2881V0.347645H48.5947V6.6328ZM73.7246 3.13182H69.0918V15.79H65.7637V3.13182H61.1523V0.347645H73.7246V3.13182ZM87.9717 3.13182H80.6201V6.87206H87.5811V9.61327H80.6201V15.79H77.3145V0.347645H87.9717V3.13182ZM104.623 15.79H101.187L100.056 12.5058H94.1172L92.9863 15.79H89.5723L95.1396 0.347645H99.0547L104.623 15.79ZM135.228 3.13182H130.595V15.79H127.267V3.13182H122.656V0.347645H135.228V3.13182ZM95.0527 9.7871H99.1416L97.0977 3.82714L95.0527 9.7871Z"
15+
fill="#D9D9D9"
4816
/>
4917
</svg>
5018
),

0 commit comments

Comments
 (0)