|
| 1 | +import React from "react"; |
| 2 | +import styled, { css } from "styled-components"; |
| 3 | +import { landscapeStyle } from "styles/landscapeStyle"; |
| 4 | +import { responsiveSize } from "styles/responsiveSize"; |
| 5 | +import { Card } from "@kleros/ui-components-library"; |
| 6 | +import GnosisIcon from "svgs/chains/gnosis.svg"; |
| 7 | +import PileCoinsIcon from "svgs/icons/pile-coins.svg"; |
| 8 | + |
| 9 | +const Container = styled.div` |
| 10 | + display: flex; |
| 11 | + justify-content: center; |
| 12 | +`; |
| 13 | + |
| 14 | +const StyledCard = styled(Card)` |
| 15 | + display: flex; |
| 16 | + margin-top: 60px; |
| 17 | + margin-bottom: ${responsiveSize(36, 36)}; |
| 18 | + padding: 24px ${responsiveSize(24, 32)}; |
| 19 | + width: 80vw; |
| 20 | + height: auto; |
| 21 | + justify-content: space-between; |
| 22 | + gap: 24px; |
| 23 | + flex-wrap: wrap; |
| 24 | +
|
| 25 | + ${landscapeStyle( |
| 26 | + () => css` |
| 27 | + width: 91vw; |
| 28 | + ` |
| 29 | + )} |
| 30 | +`; |
| 31 | + |
| 32 | +const LeftContent = styled.div` |
| 33 | + display: flex; |
| 34 | + gap: 8px; |
| 35 | + flex-wrap: wrap; |
| 36 | +`; |
| 37 | + |
| 38 | +const Title = styled.p` |
| 39 | + font-size: 24px; |
| 40 | + font-weight: 600; |
| 41 | + margin: 0; |
| 42 | + color: ${({ theme }) => theme.primaryText}; |
| 43 | +`; |
| 44 | + |
| 45 | +const ListName = styled.p` |
| 46 | + font-size: 24px; |
| 47 | + font-weight: 600; |
| 48 | + margin: 0; |
| 49 | + color: ${({ theme }) => theme.secondaryPurple}; |
| 50 | +`; |
| 51 | + |
| 52 | +const RightContent = styled.div` |
| 53 | + display: flex; |
| 54 | + gap: 16px 48px; |
| 55 | + align-items: center; |
| 56 | + flex-wrap: wrap; |
| 57 | +`; |
| 58 | + |
| 59 | +const DepositRequired = styled.div` |
| 60 | + display: flex; |
| 61 | + flex-wrap: wrap; |
| 62 | +
|
| 63 | + svg { |
| 64 | + fill: ${({ theme }) => theme.secondaryPurple}; |
| 65 | + margin-right: 8px; |
| 66 | + width: 16px; |
| 67 | + } |
| 68 | +`; |
| 69 | + |
| 70 | +const StyledP = styled.p` |
| 71 | + margin: 0; |
| 72 | + color: ${({ theme }) => theme.primaryText}; |
| 73 | +`; |
| 74 | + |
| 75 | +const Amount = styled.p` |
| 76 | + margin: 0; |
| 77 | +`; |
| 78 | + |
| 79 | +const Chain = styled.div` |
| 80 | + display: flex; |
| 81 | + flex-direction: row; |
| 82 | +
|
| 83 | + svg { |
| 84 | + margin-right: 8px; |
| 85 | + width: 24px; |
| 86 | + } |
| 87 | +`; |
| 88 | + |
| 89 | +interface IHeader {} |
| 90 | + |
| 91 | +const Header: React.FC<IHeader> = ({}) => { |
| 92 | + return ( |
| 93 | + <Container> |
| 94 | + <StyledCard> |
| 95 | + <LeftContent> |
| 96 | + <Title>Submit Item to</Title> |
| 97 | + <ListName>Address Tags List</ListName> |
| 98 | + </LeftContent> |
| 99 | + <RightContent> |
| 100 | + <DepositRequired> |
| 101 | + <PileCoinsIcon /> |
| 102 | + <StyledP>Deposit required: </StyledP> |
| 103 | + <Amount>0.003 ETH</Amount> |
| 104 | + </DepositRequired> |
| 105 | + <Chain> |
| 106 | + <GnosisIcon /> |
| 107 | + <StyledP>Gnosis</StyledP> |
| 108 | + </Chain> |
| 109 | + </RightContent> |
| 110 | + </StyledCard> |
| 111 | + </Container> |
| 112 | + ); |
| 113 | +}; |
| 114 | + |
| 115 | +export default Header; |
0 commit comments