-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from oasisprotocol/ml/upcoming-vote
Upcoming vote
- Loading branch information
Showing
10 changed files
with
172 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
VITE_NETWORK=23294 | ||
VITE_WEB3_GATEWAY=https://sapphire.oasis.io | ||
VITE_PROPOSAL_START_TIME=1710946800 | ||
VITE_PROPOSAL_START_TIME=0 | ||
|
||
VITE_CONTRACT_ACL_ALLOWALL= | ||
VITE_CONTRACT_ACL_NATIVEBALANCE= | ||
VITE_CONTRACT_POLLMANAGER= | ||
VITE_CONTRACT_POLLMANAGER_ACL= | ||
VITE_PROPOSAL_ID= | ||
VITE_CONTRACT_ACL_ALLOWALL=0x0000000000000000000000000000000000000000 | ||
VITE_CONTRACT_ACL_NATIVEBALANCE=0x0000000000000000000000000000000000000000 | ||
VITE_CONTRACT_POLLMANAGER=0x0000000000000000000000000000000000000000 | ||
VITE_CONTRACT_POLLMANAGER_ACL=0x0000000000000000000000000000000000000000 | ||
VITE_PROPOSAL_ID=0x0000000000000000000000000000000000000000 | ||
|
||
VITE_REACT_APP_BUILD_VERSION=$REACT_APP_BUILD_SHA | ||
VITE_REACT_APP_BUILD_DATETIME=$REACT_APP_BUILD_DATETIME |
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,81 @@ | ||
.cardHeaderText { | ||
font-size: 18px; | ||
font-weight: 400; | ||
line-height: 23px; | ||
letter-spacing: 0; | ||
text-align: center; | ||
margin-bottom: 1.5625rem; | ||
opacity: 0.8; | ||
text-wrap: balance; | ||
} | ||
|
||
.mascotCards { | ||
display: grid; | ||
grid-template-columns: repeat(3, minmax(218px, 1fr)); | ||
grid-gap: 2.0625rem; | ||
margin-bottom: 2.25rem; | ||
} | ||
|
||
.cardFooterText { | ||
font-size: 14px; | ||
font-weight: 500; | ||
line-height: 21px; | ||
letter-spacing: 0; | ||
text-align: center; | ||
color: var(--palatinate-blue); | ||
text-wrap: balance; | ||
} | ||
|
||
.landingPageLink { | ||
color: var(--dark-gunmetal); | ||
} | ||
|
||
@media screen and (max-width: 1000px) { | ||
.mascotCards { | ||
grid-template-columns: 1fr; | ||
grid-auto-flow: row; | ||
grid-gap: 1.25rem; | ||
margin-bottom: 1.5rem; | ||
} | ||
|
||
.headerText { | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 130%; | ||
letter-spacing: 0; | ||
text-align: left; | ||
margin-top: 0.625rem; | ||
margin-bottom: 2rem; | ||
} | ||
|
||
.landingPageLink { | ||
color: var(--white); | ||
} | ||
|
||
.cardFooterText { | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 130%; | ||
letter-spacing: -0.03em; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 1000px) { | ||
.mascotCard { | ||
&.mascotCard { | ||
&.mascotCard { | ||
height: 368px; | ||
} | ||
} | ||
} | ||
|
||
.cardFooterText { | ||
margin-top: auto; | ||
} | ||
|
||
.upcomingVotePageCard { | ||
&.upcomingVotePageCard { | ||
min-height: 450px; | ||
} | ||
} | ||
} |
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,52 @@ | ||
import { FC } from 'react' | ||
import { Card } from '../../components/Card' | ||
import classes from './index.module.css' | ||
import { MascotCard } from '../../components/MascotCard' | ||
import { POLL_CHOICES, VOTING_LANDING_PAGE_URL } from '../../constants/config' | ||
import { useAppState } from '../../hooks/useAppState' | ||
|
||
// TODO: Mark this page for removal | ||
export const UpcomingVotePage: FC = () => { | ||
const { | ||
state: { isMobileScreen, isDesktopScreen }, | ||
} = useAppState() | ||
|
||
const headerText = ( | ||
<> | ||
Read more about the campaign | ||
<a | ||
className={classes.landingPageLink} | ||
href={VOTING_LANDING_PAGE_URL} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
on our website | ||
</a> | ||
. | ||
</> | ||
) | ||
|
||
return ( | ||
<> | ||
{isMobileScreen && <p className={classes.headerText}>{headerText}</p>} | ||
<Card className={classes.upcomingVotePageCard}> | ||
{isDesktopScreen && <p className={classes.cardHeaderText}>{headerText}</p>} | ||
<div className={classes.mascotCards}> | ||
{POLL_CHOICES.map(({ name, description, imagePath }) => ( | ||
<MascotCard | ||
key={name} | ||
title={name} | ||
description={description} | ||
image={<img alt={name} src={imagePath} />} | ||
className={classes.mascotCard} | ||
/> | ||
))} | ||
</div> | ||
<p className={classes.cardFooterText}> | ||
Thank you for your vote! We’re running a second ballot in April. Please stay tuned as we announce | ||
the new voting period. | ||
</p> | ||
</Card> | ||
</> | ||
) | ||
} |
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