Skip to content

Commit 0a1d244

Browse files
committed
🎈 perf: improve icon size with props
1 parent b5830ef commit 0a1d244

File tree

9 files changed

+47
-117
lines changed

9 files changed

+47
-117
lines changed
Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1 @@
1-
<svg
2-
xmlns="http://www.w3.org/2000/svg"
3-
width="242"
4-
height="256"
5-
fill="none"
6-
{...Astro.props}
7-
><g clip-path="url(#a)"
8-
><mask
9-
id="b"
10-
width="242"
11-
height="256"
12-
x="0"
13-
y="0"
14-
maskUnits="userSpaceOnUse"
15-
style="mask-type:luminance"
16-
><path fill="#fff" d="M0 0h242v256H0V0Z"></path></mask
17-
><g mask="url(#b)"
18-
><path
19-
fill="url(#c)"
20-
d="m241 43-9 136L149 0l92 43Zm-58 176-62 36-63-36 12-31h101l12 31ZM121 68l32 80H88l33-80ZM9 179 0 43 92 0 9 179Z"
21-
></path><path
22-
fill="url(#d)"
23-
d="m241 43-9 136L149 0l92 43Zm-58 176-62 36-63-36 12-31h101l12 31ZM121 68l32 80H88l33-80ZM9 179 0 43 92 0 9 179Z"
24-
></path></g
25-
></g
26-
><defs
27-
><linearGradient
28-
id="c"
29-
x1="53.2"
30-
x2="245"
31-
y1="231.9"
32-
y2="140.7"
33-
gradientUnits="userSpaceOnUse"
34-
><stop stop-color="#E40035"></stop><stop
35-
offset=".2"
36-
stop-color="#F60A48"></stop><stop
37-
offset=".4"
38-
stop-color="#F20755"></stop><stop
39-
offset=".5"
40-
stop-color="#DC087D"></stop><stop
41-
offset=".7"
42-
stop-color="#9717E7"></stop><stop
43-
offset="1"
44-
stop-color="#6C00F5"></stop></linearGradient
45-
>
46-
<linearGradient
47-
id="d"
48-
x1="44.5"
49-
x2="170"
50-
y1="30.7"
51-
y2="174"
52-
gradientUnits="userSpaceOnUse"
53-
>
54-
<stop stop-color="#FF31D9"></stop><stop
55-
offset="1"
56-
stop-color="#FF5BE1"
57-
stop-opacity="0"></stop></linearGradient
58-
><clipPath id="a"
59-
><path fill="#fff" d="M0 0h242v256H0z"></path></clipPath
60-
></defs
61-
></svg
62-
>
1+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 242 256"><g clip-path="url(#a)"><mask id="b" width="242" height="256" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h242v256H0z"/></mask><g mask="url(#b)"><path fill="url(#c)" d="m241 43-9 136L149 0zm-58 176-62 36-63-36 12-31h101zM121 68l32 80H88zM9 179 0 43 92 0z"/><path fill="url(#d)" d="m241 43-9 136L149 0zm-58 176-62 36-63-36 12-31h101zM121 68l32 80H88zM9 179 0 43 92 0z"/></g></g><defs><linearGradient id="c" x1="53.2" x2="245" y1="231.9" y2="140.7" gradientUnits="userSpaceOnUse"><stop stop-color="#e40035"/><stop offset=".2" stop-color="#f60a48"/><stop offset=".4" stop-color="#f20755"/><stop offset=".5" stop-color="#dc087d"/><stop offset=".7" stop-color="#9717e7"/><stop offset="1" stop-color="#6c00f5"/></linearGradient><linearGradient id="d" x1="44.5" x2="170" y1="30.7" y2="174" gradientUnits="userSpaceOnUse"><stop stop-color="#ff31d9"/><stop offset="1" stop-color="#ff5be1" stop-opacity="0"/></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h242v256H0z"/></clipPath></defs></svg>
Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1 @@
1-
<svg
2-
width="256"
3-
height="366"
4-
viewBox="0 0 256 366"
5-
xmlns="http://www.w3.org/2000/svg"
6-
preserveAspectRatio="xMidYMid"
7-
{...Astro.props}
8-
><path
9-
d="M182.022 9.147c2.982 3.702 4.502 8.697 7.543 18.687L256 246.074a276.467 276.467 0 0 0-79.426-26.891L133.318 73.008a5.63 5.63 0 0 0-10.802.017L79.784 219.11A276.453 276.453 0 0 0 0 246.04L66.76 27.783c3.051-9.972 4.577-14.959 7.559-18.654a24.541 24.541 0 0 1 9.946-7.358C88.67 0 93.885 0 104.314 0h47.683c10.443 0 15.664 0 20.074 1.774a24.545 24.545 0 0 1 9.95 7.373Z"
10-
></path><path
11-
fill="#FF5D01"
12-
d="M189.972 256.46c-10.952 9.364-32.812 15.751-57.992 15.751-30.904 0-56.807-9.621-63.68-22.56-2.458 7.415-3.009 15.903-3.009 21.324 0 0-1.619 26.623 16.898 45.14 0-9.615 7.795-17.41 17.41-17.41 16.48 0 16.46 14.378 16.446 26.043l-.001 1.041c0 17.705 10.82 32.883 26.21 39.28a35.685 35.685 0 0 1-3.588-15.647c0-16.886 9.913-23.173 21.435-30.48 9.167-5.814 19.353-12.274 26.372-25.232a47.588 47.588 0 0 0 5.742-22.735c0-5.06-.786-9.938-2.243-14.516Z"
13-
></path></svg
14-
>
1+
<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" viewBox="0 0 256 366"><path d="M182.022 9.147c2.982 3.702 4.502 8.697 7.543 18.687L256 246.074a276.5 276.5 0 0 0-79.426-26.891L133.318 73.008a5.63 5.63 0 0 0-10.802.017L79.784 219.11A276.5 276.5 0 0 0 0 246.04L66.76 27.783c3.051-9.972 4.577-14.959 7.559-18.654a24.54 24.54 0 0 1 9.946-7.358C88.67 0 93.885 0 104.314 0h47.683c10.443 0 15.664 0 20.074 1.774a24.55 24.55 0 0 1 9.95 7.373Z"/><path fill="#ff5d01" d="M189.972 256.46c-10.952 9.364-32.812 15.751-57.992 15.751-30.904 0-56.807-9.621-63.68-22.56-2.458 7.415-3.009 15.903-3.009 21.324 0 0-1.619 26.623 16.898 45.14 0-9.615 7.795-17.41 17.41-17.41 16.48 0 16.46 14.378 16.446 26.043l-.001 1.041c0 17.705 10.82 32.883 26.21 39.28a35.7 35.7 0 0 1-3.588-15.647c0-16.886 9.913-23.173 21.435-30.48 9.167-5.814 19.353-12.274 26.372-25.232a47.6 47.6 0 0 0 5.742-22.735c0-5.06-.786-9.938-2.243-14.516Z"/></svg>

src/components/icons/IconBriefcase.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
fill="none"
99
stroke-linecap="round"
1010
stroke-linejoin="round"
11-
{...Astro.props}
1211
><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path
1312
d="M3 7m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"
1413
></path><path d="M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2"></path><path
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<svg viewBox="0 0 569 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" {...Astro.props}>
3-
<g fill="none" fill-rule="evenodd">
4-
<g transform="translate(-227, -256)" fill="#58C4DC" fill-rule="nonzero">
5-
<g transform="translate(227, 256)">
6-
<path d="M285.5,201 C255.400481,201 231,225.400481 231,255.5 C231,285.599519 255.400481,310 285.5,310 C315.599519,310 340,285.599519 340,255.5 C340,225.400481 315.599519,201 285.5,201" id="Path"></path>
7-
<path d="M568.959856,255.99437 C568.959856,213.207656 529.337802,175.68144 466.251623,150.985214 C467.094645,145.423543 467.85738,139.922107 468.399323,134.521063 C474.621631,73.0415145 459.808523,28.6686204 426.709856,9.5541429 C389.677085,-11.8291748 337.36955,3.69129898 284.479928,46.0162134 C231.590306,3.69129898 179.282771,-11.8291748 142.25,9.5541429 C109.151333,28.6686204 94.3382249,73.0415145 100.560533,134.521063 C101.102476,139.922107 101.845139,145.443621 102.708233,151.02537 C97.4493791,153.033193 92.2908847,155.161486 87.3331099,157.39017 C31.0111824,182.708821 0,217.765415 0,255.99437 C0,298.781084 39.6220545,336.307301 102.708233,361.003527 C101.845139,366.565197 101.102476,372.066633 100.560533,377.467678 C94.3382249,438.947226 109.151333,483.32012 142.25,502.434597 C153.629683,508.887578 166.52439,512.186771 179.603923,511.991836 C210.956328,511.991836 247.567589,495.487529 284.479928,465.972527 C321.372196,495.487529 358.003528,511.991836 389.396077,511.991836 C402.475265,512.183856 415.36922,508.884856 426.75,502.434597 C459.848667,483.32012 474.661775,438.947226 468.439467,377.467678 C467.897524,372.066633 467.134789,366.565197 466.291767,361.003527 C529.377946,336.347457 569,298.761006 569,255.99437 M389.155214,27.1025182 C397.565154,26.899606 405.877839,28.9368502 413.241569,33.0055186 C436.223966,46.2772304 446.540955,82.2775015 441.522965,131.770345 C441.181741,135.143488 440.780302,138.556788 440.298575,141.990165 C414.066922,134.08804 387.205771,128.452154 360.010724,125.144528 C343.525021,103.224055 325.192524,82.7564475 305.214266,63.9661533 C336.586743,39.7116483 366.032313,27.1025182 389.135142,27.1025182 M378.356498,310.205598 C368.204912,327.830733 357.150626,344.919965 345.237759,361.405091 C325.045049,363.479997 304.758818,364.51205 284.459856,364.497299 C264.167589,364.51136 243.888075,363.479308 223.702025,361.405091 C211.820914,344.919381 200.80007,327.83006 190.683646,310.205598 C180.532593,292.629285 171.306974,274.534187 163.044553,255.99437 C171.306974,237.454554 180.532593,219.359455 190.683646,201.783142 C200.784121,184.229367 211.770999,167.201087 223.601665,150.764353 C243.824636,148.63809 264.145559,147.579168 284.479928,147.591877 C304.772146,147.579725 325.051559,148.611772 345.237759,150.68404 C357.109048,167.14607 368.136094,184.201112 378.27621,201.783142 C388.419418,219.363718 397.644825,237.458403 405.915303,255.99437 C397.644825,274.530337 388.419418,292.625022 378.27621,310.205598 M419.724813,290.127366 C426.09516,307.503536 431.324985,325.277083 435.380944,343.334682 C417.779633,348.823635 399.836793,353.149774 381.668372,356.285142 C388.573127,345.871232 395.263781,335.035679 401.740334,323.778483 C408.143291,312.655143 414.144807,301.431411 419.805101,290.207679 M246.363271,390.377981 C258.848032,391.140954 271.593728,391.582675 284.5,391.582675 C297.406272,391.582675 310.232256,391.140954 322.737089,390.377981 C310.880643,404.583418 298.10766,417.997563 284.5,430.534446 C270.921643,417.999548 258.18192,404.585125 246.363271,390.377981 Z M187.311556,356.244986 C169.137286,353.123646 151.187726,348.810918 133.578912,343.334682 C137.618549,325.305649 142.828222,307.559058 149.174827,290.207679 C154.754833,301.431411 160.736278,312.655143 167.239594,323.778483 C173.74291,334.901824 180.467017,345.864539 187.311556,356.285142 M149.174827,221.760984 C142.850954,204.473938 137.654787,186.794745 133.619056,168.834762 C151.18418,163.352378 169.085653,159.013101 187.211197,155.844146 C180.346585,166.224592 173.622478,176.986525 167.139234,188.210257 C160.65599,199.433989 154.734761,210.517173 149.074467,221.760984 M322.616657,121.590681 C310.131896,120.827708 297.3862,120.385987 284.379568,120.385987 C271.479987,120.385987 258.767744,120.787552 246.242839,121.590681 C258.061488,107.383537 270.801211,93.9691137 284.379568,81.4342157 C297.99241,93.9658277 310.765727,107.380324 322.616657,121.590681 Z M401.70019,188.210257 C395.196875,176.939676 388.472767,166.09743 381.527868,155.68352 C399.744224,158.819049 417.734224,163.151949 435.380944,168.654058 C431.331963,186.680673 426.122466,204.426664 419.785029,221.781062 C414.205023,210.55733 408.203506,199.333598 401.720262,188.230335 M127.517179,131.790423 C122.438973,82.3176579 132.816178,46.2973086 155.778503,33.0255968 C163.144699,28.9632474 171.455651,26.9264282 179.864858,27.1225964 C202.967687,27.1225964 232.413257,39.7317265 263.785734,63.9862316 C243.794133,82.7898734 225.448298,103.270812 208.949132,125.204763 C181.761691,128.528025 154.90355,134.14313 128.661281,141.990165 C128.199626,138.556788 127.778115,135.163566 127.456963,131.790423 M98.4529773,182.106474 C101.54406,180.767925 104.695358,179.429376 107.906872,178.090828 C114.220532,204.735668 122.781793,230.7969 133.498624,255.99437 C122.761529,281.241316 114.193296,307.357063 107.8868,334.058539 C56.7434387,313.076786 27.0971497,284.003505 27.0971497,255.99437 C27.0971497,229.450947 53.1907013,202.526037 98.4529773,182.106474 Z M155.778503,478.963143 C132.816178,465.691432 122.438973,429.671082 127.517179,380.198317 C127.838331,376.825174 128.259842,373.431953 128.721497,369.978497 C154.953686,377.878517 181.814655,383.514365 209.009348,386.824134 C225.500295,408.752719 243.832321,429.233234 263.805806,448.042665 C220.069,481.834331 180.105722,492.97775 155.838719,478.963143 M441.502893,380.198317 C446.520883,429.691161 436.203894,465.691432 413.221497,478.963143 C388.974566,493.017906 348.991216,481.834331 305.274481,448.042665 C325.241364,429.232737 343.566681,408.752215 360.050868,386.824134 C387.245915,383.516508 414.107066,377.880622 440.338719,369.978497 C440.820446,373.431953 441.221885,376.825174 441.563109,380.198317 M461.193488,334.018382 C454.869166,307.332523 446.294494,281.231049 435.561592,255.99437 C446.289797,230.744081 454.857778,204.629101 461.173416,177.930202 C512.216417,198.911955 541.942994,227.985236 541.942994,255.99437 C541.942994,284.003505 512.296705,313.076786 461.153344,334.058539" id="Shape"></path>
8-
</g>
9-
</g>
10-
</g>
11-
</svg>
1+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 569 512" {...Astro.props}
2+
><g fill="#58c4dc"
3+
><path
4+
d="M285.5 201c-30.1 0-54.5 24.4-54.5 54.5s24.4 54.5 54.5 54.5 54.5-24.4 54.5-54.5-24.4-54.5-54.5-54.5"
5+
></path><path
6+
d="M568.96 255.994c0-42.786-39.622-80.313-102.708-105.009.843-5.561 1.605-11.063 2.147-16.464 6.223-61.48-8.59-105.852-41.69-124.967-37.032-21.383-89.34-5.863-142.23 36.462C231.59 3.691 179.284-11.829 142.25 9.554c-33.099 19.115-47.912 63.488-41.69 124.967.542 5.401 1.285 10.923 2.148 16.504a289 289 0 0 0-15.375 6.365C31.011 182.71 0 217.765 0 255.994c0 42.787 39.622 80.313 102.708 105.01-.863 5.561-1.606 11.063-2.147 16.464-6.223 61.48 8.59 105.852 41.689 124.967a73.5 73.5 0 0 0 37.354 9.557c31.352 0 67.964-16.504 104.876-46.02 36.892 29.516 73.524 46.02 104.916 46.02a73.57 73.57 0 0 0 37.354-9.557c33.099-19.115 47.912-63.488 41.69-124.967-.542-5.401-1.305-10.903-2.148-16.464C529.378 336.347 569 298.76 569 255.994M389.155 27.103a47.44 47.44 0 0 1 24.087 5.903c22.982 13.271 33.299 49.272 28.281 98.764a267 267 0 0 1-1.224 10.22 479 479 0 0 0-80.288-16.845 480.3 480.3 0 0 0-54.797-61.179c31.373-24.254 60.818-36.863 83.921-36.863m-10.779 283.103a591 591 0 0 1-33.118 51.2 590 590 0 0 1-60.778 3.091 590 590 0 0 1-60.758-3.092 590 590 0 0 1-33.018-51.2 583 583 0 0 1-27.64-54.21 583 583 0 0 1 27.64-54.212 597 597 0 0 1 32.918-51.019 579 579 0 0 1 60.878-3.172 592 592 0 0 1 60.758 3.092 599 599 0 0 1 33.038 51.1 588 588 0 0 1 27.64 54.21 588 588 0 0 1-27.64 54.212m41.449-20.079a425.5 425.5 0 0 1 15.656 53.208 421 421 0 0 1-53.713 12.95 603 603 0 0 0 20.072-32.507c6.403-11.123 12.405-22.347 18.065-33.57m-173.442 100.17c12.485.763 25.23 1.205 38.137 1.205s25.732-.442 38.237-1.205a424 424 0 0 1-38.237 40.156 422 422 0 0 1-38.137-40.156m-59.051-34.133a421 421 0 0 1-53.733-12.91 425.5 425.5 0 0 1 15.596-53.127c5.58 11.223 11.561 22.447 18.065 33.57 6.503 11.124 13.227 22.087 20.072 32.507m-38.137-134.524a426 426 0 0 1-15.556-52.926 426 426 0 0 1 53.592-12.99c-6.864 10.38-13.589 21.142-20.072 32.365s-12.404 22.307-18.065 33.551m173.543-100.17c-12.485-.763-25.23-1.205-38.237-1.205q-19.35 0-38.137 1.205a422 422 0 0 1 38.137-40.157 422 422 0 0 1 38.237 40.157m79.083 66.62a591 591 0 0 0-20.172-32.527 421 421 0 0 1 53.853 12.97 429 429 0 0 1-15.596 53.127c-5.58-11.224-11.581-22.447-18.065-33.55m-274.203-56.44c-5.078-49.473 5.3-85.494 28.262-98.765a47.6 47.6 0 0 1 24.086-5.903c23.103 0 52.548 12.609 83.92 36.863a481 481 0 0 0-54.836 61.219 486 486 0 0 0-80.288 16.785c-.461-3.433-.883-6.826-1.204-10.2m-29.004 50.316a747 747 0 0 1 9.454-4.015 484.4 484.4 0 0 0 25.592 77.903 483.4 483.4 0 0 0-25.612 78.065c-51.144-20.982-80.79-50.055-80.79-78.065 0-26.543 26.094-53.468 71.356-73.888m57.326 296.857c-22.963-13.272-33.34-49.292-28.262-98.765.321-3.373.743-6.766 1.204-10.22a479 479 0 0 0 80.288 16.846 482 482 0 0 0 54.797 61.219c-43.737 33.791-83.7 44.935-107.967 30.92m285.664-98.765c5.018 49.493-5.3 85.493-28.282 98.765-24.246 14.055-64.23 2.871-107.947-30.92a482 482 0 0 0 54.777-61.219 479 479 0 0 0 80.288-16.846c.481 3.454.883 6.847 1.224 10.22m19.63-46.18a485.3 485.3 0 0 0-25.631-78.024 485.3 485.3 0 0 0 25.611-78.064c51.043 20.982 80.77 50.055 80.77 78.064 0 28.01-29.646 57.083-80.79 78.065"
7+
></path></g
8+
></svg
9+
>

0 commit comments

Comments
 (0)