-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Extract the part of the svg icon that contains the id as the com…
…mon component
- Loading branch information
Showing
5 changed files
with
71 additions
and
55 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
apps/canonical-bridge-ui/core/components/icons/SvgDefs.tsx
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { Icon } from '@bnb-chain/space'; | ||
|
||
export function SvgDefs() { | ||
return ( | ||
<Icon | ||
position={'absolute'} | ||
w={0} | ||
h={0} | ||
viewBox="0 0 440 280" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<clipPath id="clip0_9685_21608"> | ||
<rect width="18" height="15" fill="white" transform="translate(3 4)" /> | ||
</clipPath> | ||
|
||
<mask id="mask0_18_3" maskUnits="userSpaceOnUse" x="0" y="0" width="65" height="65"> | ||
<path | ||
d="M7.30721 0C3.27132 0 0 3.59886 0 8.03839V56.9616C0 61.4011 3.27132 65 7.30721 65H57.6928C61.7283 65 65 61.4011 65 56.9616V8.03839C65 3.59886 61.7283 0 57.6928 0H7.30721Z" | ||
fill="white" | ||
/> | ||
</mask> | ||
|
||
<linearGradient | ||
id="paint0_linear_18_3" | ||
x1="537.383" | ||
y1="266.088" | ||
x2="6244.77" | ||
y2="6544.28" | ||
gradientUnits="userSpaceOnUse" | ||
> | ||
<stop stopColor="#145ECC" /> | ||
<stop offset="1" stopColor="#1260CC" /> | ||
</linearGradient> | ||
|
||
<clipPath id="clip0_18_3"> | ||
<rect width="65" height="65" fill="white" /> | ||
</clipPath> | ||
|
||
<linearGradient | ||
id="paint0_linear_7476_132116" | ||
x1="4.77107" | ||
y1="21.3854" | ||
x2="7.65309" | ||
y2="0.538518" | ||
gradientUnits="userSpaceOnUse" | ||
> | ||
<stop offset="0.26" stopColor="#48FF91" /> | ||
<stop offset="0.66" stopColor="#0094FF" /> | ||
<stop offset="0.8" stopColor="#0038FF" /> | ||
<stop offset="0.89" stopColor="#0500FF" /> | ||
</linearGradient> | ||
|
||
<linearGradient | ||
id="paint1_linear_7476_132116" | ||
x1="11.7182" | ||
y1="21.3853" | ||
x2="17.1746" | ||
y2="1.64876" | ||
gradientUnits="userSpaceOnUse" | ||
> | ||
<stop offset="0.26" stopColor="#48FF91" /> | ||
<stop offset="0.66" stopColor="#0094FF" /> | ||
<stop offset="0.8" stopColor="#0038FF" /> | ||
<stop offset="0.89" stopColor="#0500FF" /> | ||
</linearGradient> | ||
</Icon> | ||
); | ||
} |
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