-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
3 changed files
with
101 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
import { Button, Card } from 'antd' | ||
import React, { useMemo } from 'react' | ||
import { ReactComponent as Close } from '../assets/images/close.svg' | ||
import { ReactComponent as Hexagon } from '../assets/images/hexagon.svg' | ||
import PropTypes from 'prop-types' | ||
import styled from 'styled-components/macro' | ||
|
||
const StyledCard = styled(Card)` | ||
margin: 20px 0; | ||
text-align: center; | ||
.ant-card-actions { | ||
border: none; | ||
& > li { | ||
border: none; | ||
} | ||
} | ||
` | ||
const StyledCardGrid = styled(Card.Grid)` | ||
box-shadow: none; | ||
position: relative; | ||
width: 50%; | ||
&:first-child { | ||
border-right: 1px solid silver; | ||
padding: 8.5px; | ||
} | ||
` | ||
const StyledDiv = styled.div` | ||
color: white; | ||
left: 50%; | ||
position: absolute; | ||
top: 45%; | ||
transform: translate(-50%, -50%); | ||
` | ||
const StyledAmountDiv = styled.div` | ||
font-weight: bold; | ||
` | ||
const CourtCard = ({ ID }) => { | ||
console.log(ID) | ||
return ( | ||
<StyledCard | ||
actions={useMemo( | ||
() => [ | ||
<Button size="large">Unstake</Button>, | ||
<Button size="large" type="primary"> | ||
Stake | ||
</Button> | ||
], | ||
[] | ||
)} | ||
extra={<Close />} | ||
hoverable | ||
loading={false} | ||
title="Air Transport" | ||
> | ||
<StyledCardGrid> | ||
<Hexagon className="ternary-fill" /> | ||
<StyledDiv> | ||
<StyledAmountDiv>0</StyledAmountDiv>PNK | ||
</StyledDiv> | ||
</StyledCardGrid> | ||
<StyledCardGrid> | ||
Min Stake<StyledAmountDiv>350 PNK</StyledAmountDiv> | ||
</StyledCardGrid> | ||
<StyledCardGrid> | ||
Coherence Reward<StyledAmountDiv>0.01 ETH +</StyledAmountDiv> | ||
</StyledCardGrid> | ||
<StyledCardGrid> | ||
Stake Locked Per Vote<StyledAmountDiv>200 PNK</StyledAmountDiv> | ||
</StyledCardGrid> | ||
</StyledCard> | ||
) | ||
} | ||
|
||
CourtCard.propTypes = { | ||
ID: PropTypes.number.isRequired | ||
} | ||
|
||
export default CourtCard |
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