-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bridge-ui-v2): Styling adjustments (#14588)
- Loading branch information
1 parent
87c9d53
commit 85bef05
Showing
11 changed files
with
102 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
<script lang="ts"> | ||
export let size = 20; | ||
export let width = size; | ||
export let height = size; | ||
export let width: number = size; | ||
export let height: number = size; | ||
const originalViewBoxSize = 20; | ||
const targetViewBoxSize = 20; | ||
const scale: number = targetViewBoxSize / originalViewBoxSize; | ||
</script> | ||
|
||
<svg {width} {height} viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<circle cx="10" cy="10" r="10" fill="#E81899" /> | ||
<path | ||
d="M16.0316 12.8858L13.9257 10.0246C13.6969 9.71365 13.3581 9.5274 12.9974 9.48634C12.9152 9.4768 12.8419 9.42914 12.8008 9.35728C12.7591 9.28542 12.7546 9.19816 12.7876 9.1219C12.9321 8.78899 12.9409 8.40256 12.7854 8.04912L11.3607 4.79487C11.1495 4.31164 10.6722 4 10.1449 4C9.61772 4 9.14035 4.31237 8.92917 4.79487L7.50443 8.04912C7.34971 8.40256 7.35777 8.78899 7.50223 9.1219C7.53522 9.19816 7.53009 9.28542 7.48903 9.35728C7.44723 9.42914 7.37464 9.4768 7.29251 9.48634C6.93174 9.5274 6.59297 9.71365 6.36419 10.0246L4.25824 12.8858C3.94586 13.3103 3.91433 13.8794 4.17758 14.3362C4.44155 14.7923 4.95044 15.0497 5.474 14.9917L9.0047 14.5987C9.3882 14.5562 9.71891 14.356 9.93449 14.0641C9.98362 13.9974 10.0621 13.9578 10.1449 13.9578C10.2278 13.9578 10.3055 13.9974 10.3554 14.0641C10.571 14.356 10.9017 14.5562 11.2852 14.5987L14.8159 14.9917C15.3394 15.0504 15.8483 14.793 16.1123 14.3362C16.3755 13.8794 16.344 13.3103 16.0316 12.8858ZM8.42542 8.45756L9.85236 5.19963C9.90369 5.08304 10.0188 5.00751 10.1457 5.00751C10.2725 5.00751 10.3876 5.08304 10.439 5.19963L11.8659 8.45756C11.9107 8.56021 11.9011 8.679 11.8395 8.77286C11.7779 8.86672 11.6738 8.92318 11.5609 8.92318H8.72972C8.61753 8.92318 8.51268 8.86672 8.45108 8.77286C8.38949 8.679 8.37995 8.56021 8.42468 8.45756H8.42542ZM9.15795 13.4174C9.10736 13.5179 9.0091 13.5853 8.89764 13.5978L5.36327 13.9908C5.23715 14.0048 5.11396 13.9432 5.05017 13.8332C4.98637 13.7232 4.99444 13.5861 5.06996 13.4834L7.17812 10.6192C7.24485 10.529 7.35191 10.4777 7.4641 10.4843C7.57629 10.4902 7.67748 10.5525 7.73394 10.65L7.73614 10.6537L9.14769 13.0984L9.14989 13.1021C9.20635 13.1996 9.20928 13.3184 9.15869 13.4181L9.15795 13.4174ZM10.4353 12.3116C10.3752 12.415 10.2652 12.4796 10.1449 12.4796C10.0254 12.4796 9.91469 12.4158 9.85456 12.3124L8.77005 10.4345C8.70993 10.3311 8.70993 10.2027 8.77005 10.0994C8.83018 9.99596 8.94017 9.93143 9.06043 9.93143H11.2287C11.3482 9.93143 11.459 9.99449 11.5191 10.0986C11.5792 10.2027 11.5792 10.3303 11.5191 10.4337L10.4353 12.3116ZM15.2404 13.8332C15.1766 13.9432 15.0542 14.0055 14.9273 13.9916L11.393 13.5985C11.2815 13.5861 11.1833 13.5186 11.1327 13.4181C11.0821 13.3177 11.085 13.1989 11.1415 13.1021L11.1437 13.0984L12.5552 10.6537L12.5574 10.65C12.6139 10.5525 12.7151 10.4902 12.8272 10.4843C12.9394 10.4785 13.0465 10.529 13.1132 10.6192L15.2214 13.4834C15.2969 13.5861 15.3042 13.7232 15.2412 13.8332H15.2404Z" | ||
fill="#FAFAFA" /> | ||
<svg | ||
{width} | ||
{height} | ||
viewBox={`0 0 ${targetViewBoxSize} ${targetViewBoxSize}`} | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
preserveAspectRatio="xMinYMin meet"> | ||
<g transform={`scale(${scale})`}> | ||
<circle cx="10" cy="10" r="10" fill="#E81899" /> | ||
<path | ||
d="M15.8867 12.8858L13.7807 10.0246C13.5519 9.71365 13.2132 9.5274 12.8524 9.48634C12.7703 9.4768 12.697 9.42914 12.6559 9.35728C12.6141 9.28542 12.6097 9.19816 12.6427 9.1219C12.7871 8.78899 12.7959 8.40256 12.6405 8.04912L11.2157 4.79487C11.0046 4.31164 10.5272 4 9.99998 4C9.47276 4 8.9954 4.31237 8.78421 4.79487L7.35947 8.04912C7.20475 8.40256 7.21281 8.78899 7.35727 9.1219C7.39027 9.19816 7.38513 9.28542 7.34407 9.35728C7.30227 9.42914 7.22968 9.4768 7.14755 9.48634C6.78678 9.5274 6.44801 9.71365 6.21923 10.0246L4.11328 12.8858C3.8009 13.3103 3.76937 13.8794 4.03262 14.3362C4.29659 14.7923 4.80548 15.0497 5.32904 14.9917L8.85974 14.5987C9.24324 14.5562 9.57395 14.356 9.78953 14.0641C9.83866 13.9974 9.91712 13.9578 9.99998 13.9578C10.0828 13.9578 10.1606 13.9974 10.2104 14.0641C10.426 14.356 10.7567 14.5562 11.1402 14.5987L14.6709 14.9917C15.1945 15.0504 15.7034 14.793 15.9673 14.3362C16.2306 13.8794 16.1991 13.3103 15.8867 12.8858ZM8.28046 8.45756L9.7074 5.19963C9.75873 5.08304 9.87386 5.00751 10.0007 5.00751C10.1276 5.00751 10.2427 5.08304 10.294 5.19963L11.721 8.45756C11.7657 8.56021 11.7562 8.679 11.6946 8.77286C11.633 8.86672 11.5289 8.92318 11.4159 8.92318H8.58476C8.47257 8.92318 8.36772 8.86672 8.30612 8.77286C8.24453 8.679 8.23499 8.56021 8.27972 8.45756H8.28046ZM9.01299 13.4174C8.9624 13.5179 8.86414 13.5853 8.75268 13.5978L5.21832 13.9908C5.09219 14.0048 4.969 13.9432 4.90521 13.8332C4.84141 13.7232 4.84948 13.5861 4.92501 13.4834L7.03316 10.6192C7.09989 10.529 7.20695 10.4777 7.31914 10.4843C7.43133 10.4902 7.53252 10.5525 7.58898 10.65L7.59118 10.6537L9.00273 13.0984L9.00493 13.1021C9.06139 13.1996 9.06432 13.3184 9.01373 13.4181L9.01299 13.4174ZM10.2904 12.3116C10.2302 12.415 10.1202 12.4796 9.99998 12.4796C9.88046 12.4796 9.76973 12.4158 9.7096 12.3124L8.6251 10.4345C8.56497 10.3311 8.56497 10.2027 8.6251 10.0994C8.68522 9.99596 8.79521 9.93143 8.91547 9.93143H11.0838C11.2033 9.93143 11.314 9.99449 11.3741 10.0986C11.4343 10.2027 11.4343 10.3303 11.3741 10.4337L10.2904 12.3116ZM15.0955 13.8332C15.0317 13.9432 14.9092 14.0055 14.7824 13.9916L11.248 13.5985C11.1365 13.5861 11.0383 13.5186 10.9877 13.4181C10.9371 13.3177 10.94 13.1989 10.9965 13.1021L10.9987 13.0984L12.4102 10.6537L12.4124 10.65C12.4689 10.5525 12.5701 10.4902 12.6823 10.4843C12.7945 10.4785 12.9015 10.529 12.9683 10.6192L15.0764 13.4834C15.1519 13.5861 15.1593 13.7232 15.0962 13.8332H15.0955Z" | ||
fill="#FAFAFA" /> | ||
</g> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85bef05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bridge-ui-v2 – ./packages/bridge-ui-v2
taiko-mono-bridge-ui-v2.vercel.app
bridge-ui-v2-taikoxyz.vercel.app
bridge-ui-v2-git-main-taikoxyz.vercel.app