-
Notifications
You must be signed in to change notification settings - Fork 103
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 #3273 from Emurgo/feat/YOEXT-679/catalyst-voting-r…
…evamp feat(voting): revamp voting page & dialogs
- Loading branch information
Showing
20 changed files
with
648 additions
and
232 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
packages/yoroi-extension/app/assets/images/revamp/catalyst-step1.inline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions
40
packages/yoroi-extension/app/assets/images/revamp/catalyst-step2.inline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
packages/yoroi-extension/app/assets/images/revamp/icons/cross.inline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
...es/yoroi-extension/app/assets/images/revamp/icons/exclamation-circle.inline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions
39
packages/yoroi-extension/app/components/common/card/Card.js
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,39 @@ | ||
// @flow | ||
import type { Node } from 'react'; | ||
import { Box, Typography } from '@mui/material'; | ||
import styles from './Card.scss'; | ||
|
||
type Props = {| | ||
label: string, | ||
description: string | Node, | ||
imageSrc: string, | ||
onClick?: () => void, | ||
children?: Node, | ||
style?: Object, | ||
|}; | ||
|
||
export default function Card(props: Props): Node { | ||
const { label, description, imageSrc, onClick, style } = props; | ||
return ( | ||
<button onClick={onClick} className={styles.component} style={style}> | ||
<Box> | ||
<img src={imageSrc} alt={label} /> | ||
</Box> | ||
<Typography | ||
variant="h3" | ||
color="grayscale.max" | ||
fontWeight={500} | ||
textAlign="center" | ||
padding="0px 40px" | ||
mt="16px" | ||
mb="4px" | ||
> | ||
{label} | ||
</Typography> | ||
<Typography variant="body2" color="grayscale.900" mb="16px"> | ||
{description} | ||
</Typography> | ||
{props.children} | ||
</button> | ||
); | ||
} |
33 changes: 33 additions & 0 deletions
33
packages/yoroi-extension/app/components/common/card/Card.scss
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,33 @@ | ||
.component { | ||
background: linear-gradient(180deg, #e4e8f7 0%, #c6f7f7 100%); | ||
border-radius: 8px; | ||
padding: 16px; | ||
width: 100%; | ||
max-width: 312px; | ||
min-height: 352px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
cursor: pointer; | ||
position: relative; | ||
z-index: 1; | ||
|
||
&::before { | ||
position: absolute; | ||
content: ''; | ||
top: 0px; | ||
right: 0px; | ||
bottom: 0px; | ||
left: 0px; | ||
background: linear-gradient(180deg, #93f5e1 0%, #c6f7ed 100%); | ||
border-radius: 8px; | ||
z-index: -1; | ||
transition: opacity 300ms linear; | ||
opacity: 0; | ||
} | ||
|
||
&:hover::before { | ||
opacity: 1; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
border-style: solid; | ||
border-radius: 50%; | ||
transition: color 300ms ease; | ||
} | ||
} |
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
Oops, something went wrong.