Skip to content

Commit

Permalink
Activate Page UI update (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 authored Sep 26, 2023
1 parent f99c521 commit 2ceae25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/common/ImageTextBlock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ const ImageTextBlock = ({
<p className="text-sm">{buttonText ?? 'Apply Now'}</p>
</PrimaryButton>
) : (
<OutlineButton classes="cursor-auto">
<OutlineButton
classes={!onClick && 'cursor-auto'}
onClick={onClick}
>
<p className="text-sm">{buttonText ?? 'Coming Soon'}</p>
</OutlineButton>
)}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/Activate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ const ActivatePage = () => {
title="NEAR General Election"
description="The NDC is launching the inaugural ecosystem wide General Election to enable decentralized governance on-chain. #Vote in the September 8th General Election and mint your “I Voted” reputation Soul Bound Token!"
buttonText="Closed"
onClick={() => window.open(Links.ELECTIONS, '_blank')}
/>
<ImageTextBlock
imageSrc={ImageSrc.NDCLogo}
title="NDC Nomination"
description="Are you a dedicated OG member of the NEAR community? Nominate yourself for a seat in the NDC General Election. Realize your vision to grow the NEAR ecosystem. Verified humans, comment and upvote on your favorite candidates."
buttonText="Closed"
onClick={() => window.open(Links.NOMINATIONS, '_blank')}
/>
<ImageTextBlock
imageSrc={ImageSrc.NDCPoll}
Expand Down Expand Up @@ -97,6 +99,7 @@ const ActivatePage = () => {
title="Astra++"
description="Astra++ is a comprehensive suite of DAO tooling that makes possible for any DAO to easily self-manage and grow its membership, and filling a void left by AstroDAO."
buttonText="Coming Soon"
onClick={() => window.open(Links.ASTRA, '_blank')}
/>
<ImageTextBlock
imageSrc={ImageSrc.CommunityFund}
Expand Down
3 changes: 3 additions & 0 deletions src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ export const Links = {
'https://bafkreidwdxocdkfsv6srynw7ipnogfuw76fzncmxd5jv7furbsn5cp4bz4.ipfs.nftstorage.link/',
ELECTIONS:
'https://near.org/election.ndctools.near/widget/NDC.Elections.Main',
NOMINATIONS:
'https://near.org/nomination.ndctools.near/widget/NDC.Nomination.Page',
ASTRA: 'https://near.org/astraplusplus.ndctools.near/widget/home?page=daos',
};

export const AccountFlag = {
Expand Down

0 comments on commit 2ceae25

Please sign in to comment.