-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): cases-grid-and-list-display
- Loading branch information
1 parent
6b6eaf4
commit caafd1d
Showing
16 changed files
with
345 additions
and
62 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,79 @@ | ||
import React from "react"; | ||
import styled, { css } from "styled-components"; | ||
import { smallScreenStyle } from "styles/smallScreenStyle"; | ||
import WithHelpTooltip from "pages/Dashboard/WithHelpTooltip"; | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
gap: 40vw; | ||
width: 100%; | ||
`; | ||
|
||
const CasesData = styled.div` | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
gap: 48px; | ||
flex-wrap: wrap; | ||
padding: 0 4%; | ||
justify-content: space-between; | ||
${smallScreenStyle(css` | ||
margin-left: calc(0px + (33) * (100vw - 370px) / (1250 - 370)); | ||
gap: 12px; | ||
`)} | ||
`; | ||
|
||
const CategoryLabel = styled.label` | ||
margin-left: 32px; | ||
`; | ||
|
||
const RewardsContainer = styled.div` | ||
margin-right: -16px; | ||
`; | ||
|
||
const CaseTitle = styled.div` | ||
display: flex; | ||
margin-left: 32px; | ||
gap: 36px; | ||
label { | ||
font-weight: 400; | ||
font-size: 14px; | ||
line-height: 19px; | ||
color: ${({ theme }) => theme.secondaryText} !important; | ||
} | ||
${smallScreenStyle(css` | ||
display: none; | ||
`)} | ||
`; | ||
|
||
const tooltipMsg = | ||
"Users have an economic interest in serving as jurors in Kleros: " + | ||
"collecting the Juror Rewards in exchange for their work. Each juror who " + | ||
"is coherent with the final ruling receive the Juror Rewards composed of " + | ||
"arbitration fees (ETH) + PNK redistribution between jurors."; | ||
|
||
const CasesListHeader: React.FC = () => { | ||
return ( | ||
<Container> | ||
<CaseTitle> | ||
<label>#</label> | ||
<label>Title</label> | ||
</CaseTitle> | ||
<CasesData> | ||
<label>Court</label> | ||
<CategoryLabel>Category</CategoryLabel> | ||
<RewardsContainer> | ||
<WithHelpTooltip place="top" {...{ tooltipMsg }}> | ||
<label> Rewards: </label> | ||
</WithHelpTooltip> | ||
</RewardsContainer> | ||
<label>Next Deadline</label> | ||
</CasesData> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default CasesListHeader; |
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
Oops, something went wrong.