Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unichain #97

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/app/_assets/logos/unichain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 82 additions & 0 deletions src/app/_components/icons/gradient/logos/unichain.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import { LogoIconProps } from "./types";

export function UnichainIcon({ variant = "aqua", ...props }: LogoIconProps) {
const linearGradientBasedId = `unichain-paint_linear_gradient_${variant}`;

return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105" {...props}>
<defs>
<linearGradient
id="unichain-paint_linear_gradient_teal_1"
x1="0%"
y1="0%"
x2="0%"
y2="100%"
gradientUnits="userSpaceOnUse"
>
<stop offset="0.234414" stopColor="#6CD3F9" />
<stop offset="0.386534" stopColor="#B1EAFF" />
<stop offset="0.508728" stopColor="white" />
<stop offset="0.513716" stopColor="#00719A" />
<stop offset="0.620948" stopColor="#C1EEFF" />
<stop offset="0.708229" stopColor="#297B99" />
<stop offset="0.78803" stopColor="#ADE9FF" />
</linearGradient>
<linearGradient
id="unichain-paint_linear_gradient_purple_1"
x1="0%"
y1="0%"
x2="0%"
y2="100%"
gradientUnits="userSpaceOnUse"
>
<stop offset="0.234414" stopColor="#A26CF9" />
<stop offset="0.386534" stopColor="#CEB1FF" />
<stop offset="0.508728" stopColor="white" />
<stop offset="0.513716" stopColor="#3B009A" />
<stop offset="0.620948" stopColor="#D8C1FF" />
<stop offset="0.708229" stopColor="#542999" />
<stop offset="0.78803" stopColor="#CCADFF" />
</linearGradient>
<linearGradient
id="unichain-paint_linear_gradient_teal_1"
x1="0%"
y1="0%"
x2="0%"
y2="100%"
gradientUnits="userSpaceOnUse"
>
<stop offset="0.234414" stopColor="#6CD3F9" />
<stop offset="0.386534" stopColor="#B1EAFF" />
<stop offset="0.508728" stopColor="white" />
<stop offset="0.513716" stopColor="#00719A" />
<stop offset="0.620948" stopColor="#C1EEFF" />
<stop offset="0.708229" stopColor="#297B99" />
<stop offset="0.78803" stopColor="#ADE9FF" />
</linearGradient>
<linearGradient
id="unichain-paint_linear_gradient_purple_1"
x1="0%"
y1="0%"
x2="0%"
y2="100%"
gradientUnits="userSpaceOnUse"
>
<stop offset="0.234414" stopColor="#A26CF9" />
<stop offset="0.386534" stopColor="#CEB1FF" />
<stop offset="0.508728" stopColor="white" />
<stop offset="0.513716" stopColor="#3B009A" />
<stop offset="0.620948" stopColor="#D8C1FF" />
<stop offset="0.708229" stopColor="#542999" />
<stop offset="0.78803" stopColor="#CCADFF" />
</linearGradient>
</defs>
<path
id="path-to-animate"
fill-rule="evenodd"
fill={`url(#${linearGradientBasedId}_1)`}
d="M20 0H85a20 20 0 0 1 20 20V85a20 20 0 0 1-20 20H20a20 20 0 0 1-20-20V20A20 20 0 0 1 20 0Z M94 51.71c-22.495 0-40.71-18.234-40.71-40.71h-1.58v40.71H11v1.58c22.494 0 40.71 18.233 40.71 40.71h1.58V53.29H94v-1.58Z"
/>
</svg>
);
}
1 change: 1 addition & 0 deletions src/app/_components/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ export { WorldChainIcon } from "./gradient/logos/worldchain";
export { AlephZeroIcon } from "./gradient/logos/alephzero";
export { InkIcon } from "./gradient/logos/ink";
export { SoneiumIcon } from "./gradient/logos/soneium";
export { UnichainIcon } from "./gradient/logos/unichain";
5 changes: 5 additions & 0 deletions src/app/_components/supported-chains-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
AlephZeroIcon,
InkIcon,
SoneiumIcon,
UnichainIcon,
} from "@/app/_components/icons";
import { Text } from "@/app/_components/text";

Expand Down Expand Up @@ -93,6 +94,10 @@ const chains = [
label: "Soneium",
Icon: SoneiumIcon,
},
{
label: "Unichain",
Icon: UnichainIcon,
},
];

const variants = {
Expand Down
4 changes: 4 additions & 0 deletions src/app/_components/supported-chains-ticker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import worldChainIconSrc from "@/app/_assets/logos/world-chain.svg";
import alephZeroIconSrc from "@/app/_assets/logos/alephzero.svg";
import inkLogoSrc from "@/app/_assets/logos/ink.svg";
import soneiumLogoSrc from "@/app/_assets/logos/soneium.svg";
import unichainLofoSrc from "@/app/_assets/logos/unichain.svg";

const chains = [
{
Expand Down Expand Up @@ -72,6 +73,9 @@ const chains = [
{
logo: <Image className="px-4" src={soneiumLogoSrc} alt="soneium logo" />,
},
{
logo: <Image className="px-4" src={unichainLofoSrc} alt="unichain logo" />,
},
];

export function SupportedChainsTicker() {
Expand Down
Loading