-
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.
app dashboard updated with a new card
- Loading branch information
1 parent
2e026b8
commit 59950f8
Showing
6 changed files
with
134 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Cards = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
@media screen and (max-width: 425px){ | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
` |
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,39 @@ | ||
import React from 'react'; | ||
import { | ||
CardContainer, | ||
InnerCard, | ||
CardLabel, | ||
CardContent, | ||
CardColumn, | ||
MeasureContainer, | ||
MeasureLabel | ||
} from './styles'; | ||
import { Icon } from 'semantic-ui-react'; | ||
|
||
export const NewCard = ({label, icon, internalMeasure, externalMeasure}) => { | ||
|
||
return( | ||
<CardContainer> | ||
<InnerCard> | ||
<CardLabel> | ||
<Icon name={icon}/> | ||
<div>{label}</div> | ||
</CardLabel> | ||
<CardContent> | ||
<CardColumn> | ||
<MeasureLabel>Internal</MeasureLabel> | ||
<MeasureContainer> | ||
<div>{internalMeasure}</div> | ||
</MeasureContainer> | ||
</CardColumn> | ||
<CardColumn> | ||
<MeasureLabel>External</MeasureLabel> | ||
<MeasureContainer> | ||
<div>{externalMeasure}</div> | ||
</MeasureContainer> | ||
</CardColumn> | ||
</CardContent> | ||
</InnerCard> | ||
</CardContainer> | ||
); | ||
} |
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 styled from 'styled-components'; | ||
|
||
export const CardContainer = styled.div` | ||
width: 300px; | ||
height: 150px; | ||
box-shadow: 0 0 0 1px #d4d4d5, 0 2px 0 0 #00b5ad, 0 1px 3px 0 #d4d4d5; | ||
border-radius: 3px; | ||
background: var(--white); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin: 5px; | ||
` | ||
|
||
export const InnerCard = styled.div` | ||
padding: 15px; | ||
` | ||
|
||
export const CardLabel = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
font-size: 20px; | ||
justify-content: center; | ||
padding-bottom: 10px; | ||
` | ||
|
||
export const CardContent = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
padding-top: 15px; | ||
min-width: 230px; | ||
` | ||
|
||
export const CardColumn = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100%; | ||
` | ||
|
||
export const MeasureContainer = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
font-size: 25px; | ||
` | ||
|
||
export const MeasureLabel = styled.div` | ||
font-size: 14px; | ||
padding-bottom: 10px; | ||
` |
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