-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0abe43
commit 2fb968c
Showing
13 changed files
with
108 additions
and
72 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
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,32 @@ | ||
import { ReactComponent as IconLink } from 'assets/icons/link.svg'; | ||
|
||
export interface LegacyVoteCardProps { | ||
className?: string; | ||
} | ||
|
||
export const LegacyVoteCard: React.FC<LegacyVoteCardProps> = ({ | ||
className, | ||
}) => { | ||
return ( | ||
<div | ||
className={`flex flex-col justify-between lt-md:min-h-[180px] ${className}`} | ||
> | ||
<div className="text-16 text-charcoal dark:text-white mb-18 font-medium"> | ||
Legacy onchain contract | ||
</div> | ||
|
||
<div className="text-secondary text-12 mb-auto"> | ||
View previous votes and decisions made onchain. | ||
</div> | ||
|
||
<a | ||
href="https://etherscan.io/address/0x892f481bd6e9d7d26ae365211d9b45175d5d00e4" | ||
target="_blank" | ||
className="flex items-center lt-md:justify-center text-primary dark:text-primary-light font-medium h-[47px]" | ||
rel="noreferrer" | ||
> | ||
View Legacy Gov <IconLink className="w-14 ml-6" /> | ||
</a> | ||
</div> | ||
); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Button, ButtonSize, ButtonVariant } from 'components/button/Button'; | ||
import { Navigate } from 'components/navigate/Navigate'; | ||
import { openNewTab } from 'utils/pureFunctions'; | ||
import { ReactComponent as IconLink } from 'assets/icons/link.svg'; | ||
|
||
export interface VoteCardProps { | ||
stakedAny: boolean; | ||
className?: string; | ||
} | ||
|
||
export const VoteCard: React.FC<VoteCardProps> = ({ stakedAny, className }) => { | ||
return ( | ||
<div className={`flex flex-col justify-between ${className}`}> | ||
<div className="text-16 text-charcoal dark:text-white mb-18 font-medium"> | ||
Voting on Bancor DAO | ||
</div> | ||
|
||
<div className="text-secondary text-12 mb-auto"> | ||
Voting on Bancor DAO is free as it is using the Snapshot off-chain | ||
infrastructure. Every user can vote on every available proposal and help | ||
shape the future of the Bancor Protocol. | ||
</div> | ||
<div className="flex flex-col md:flex-row md:items-baseline items-center w-full"> | ||
<Button | ||
variant={stakedAny ? ButtonVariant.Primary : ButtonVariant.Secondary} | ||
size={ButtonSize.Medium} | ||
className="mt-20 lt-md:w-full" | ||
onClick={() => openNewTab('https://vote.bancor.network/')} | ||
> | ||
{'Vote on Snapshot'} | ||
</Button> | ||
<Navigate | ||
to="https://support.bancor.network/hc/en-us/articles/5476957904914" | ||
className="flex items-center text-primary dark:text-primary-light font-medium md:ml-40 lt-md:mt-20" | ||
> | ||
How to Vote <IconLink className="w-14 ml-6" /> | ||
</Navigate> | ||
</div> | ||
</div> | ||
); | ||
}; |
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