Skip to content

Commit

Permalink
perf: ini shun token
Browse files Browse the repository at this point in the history
  • Loading branch information
shunkakinoki committed Sep 25, 2021
1 parent 66f01c0 commit e219023
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ interface FooterIconLinkProps {
href: string;
}

interface FooterTokenLinkProps {
children: ReactNode;
href: string;
}

export const FooterLink: FC<FooterLinkProps> = ({ children, href }) => {
return (
<div className="py-2 px-5">
Expand All @@ -51,6 +56,25 @@ export const FooterIconLink: FC<FooterIconLinkProps> = ({ children, href }) => {
);
};

export const FooterTokenLink: FC<FooterTokenLinkProps> = ({
children,
href,
}) => {
return (
<span className="group">
<a
className="group-hover:underline group-hover:uppercase"
href={href}
target="_blank"
rel="noopener noreferrer"
>
<span className="hidden group-hover:inline">$</span>
{children}
</a>
</span>
);
};

export const Footer: FC = () => {
return (
<footer className="overflow-hidden py-12 px-4 sm:px-6 lg:px-8 mx-auto max-w-7xl">
Expand Down Expand Up @@ -98,7 +122,8 @@ export const Footer: FC = () => {
>
v{packageJson.version}.
</a>{" "}
&copy; Shun Kakinoki. All rights reserved.
&copy; <FooterTokenLink href={SocialLinks.shun}>Shun</FooterTokenLink>{" "}
Kakinoki. All rights reserved.
</p>
<CreditsButton />
<div className="sm:flex-grow-0">
Expand Down
2 changes: 2 additions & 0 deletions src/const/CryptoLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ export class CryptoLinks {
static readonly ens = `${shunkakinoki}.eth`;

static readonly ethereum = "0x4fd9d0ee6d6564e80a9ee00c0163fc952d0a45ed";

static readonly shun = "0x656E569983B74A76B9aEaA442F0650165F95997F";
}
2 changes: 2 additions & 0 deletions src/const/SocialLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export class SocialLinks {
static readonly pioneer = "https://pioneer.app/winners/shun-kakinoki/";
static readonly website = `https://${shunkakinoki}.com`;

static readonly shun = `https://app.sushi.com/swap?inputCurrency=&outputCurrency=${CryptoLinks.shun}`;

static readonly discord = `https://discord.com/users/${shunkakinoki}`;
static readonly docker = `https://hub.docker.com/u/${shunkakinoki}`;
static readonly ethereum = `https://etherscan.io/address/${CryptoLinks.ethereum}`;
Expand Down

2 comments on commit e219023

@vercel
Copy link

@vercel vercel bot commented on e219023 Sep 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e219023 Sep 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.