-
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.
The website has a list with different components
- Loading branch information
1 parent
e759202
commit 7c904df
Showing
7 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
apps/website/src/app/demos/dashboard-trade/styled/Table/Cell.ts
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,30 @@ | ||
import styled from 'styled-components' | ||
|
||
interface Props { | ||
width: string | ||
cursor: string | ||
} | ||
|
||
export const Cell = styled.div<Props>` | ||
position: relative; | ||
overflow: hidden; | ||
width: ${props => props.width}; | ||
padding: 0 1rem; | ||
cursor: ${props => props.cursor || 'default'}; | ||
` | ||
|
||
export const CoinCell = styled(Cell)` | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
min-width: 120px; | ||
` | ||
|
||
export const PriceUSDCell = styled(Cell)` | ||
min-width: 90px; | ||
` | ||
|
||
export default Cell |
15 changes: 15 additions & 0 deletions
15
apps/website/src/app/demos/dashboard-trade/styled/Table/Header.ts
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,15 @@ | ||
import styled from 'styled-components' | ||
|
||
export const TableHeader = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
padding: 1rem 0; | ||
background-color: #000; | ||
color: #fff; | ||
justify-content: flex-start; | ||
` | ||
|
||
export default TableHeader |
13 changes: 13 additions & 0 deletions
13
apps/website/src/app/demos/dashboard-trade/styled/Table/Row.ts
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 TableRow = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
border-bottom: 1px solid #cecece; | ||
justify-content: flex-start; | ||
` | ||
|
||
export default TableRow |
13 changes: 13 additions & 0 deletions
13
apps/website/src/app/demos/dashboard-trade/styled/Table/Table.ts
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' | ||
|
||
const Table = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
border: 0.1rem solid #000; | ||
margin-top: 0.5rem; | ||
` | ||
|
||
export default Table |
5 changes: 5 additions & 0 deletions
5
apps/website/src/app/demos/dashboard-trade/styled/Table/index.ts
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,5 @@ | ||
import Table from './Table' | ||
import TableHeader from './Header' | ||
import TableCell, {CoinCell, PriceUSDCell} from './Cell' | ||
|
||
export {Table, TableHeader, TableCell, CoinCell, PriceUSDCell} |
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,8 @@ | ||
import styled from 'styled-components' | ||
|
||
export const CryptoIcon = styled.img` | ||
width: 18px; | ||
height: 18px; | ||
margin-right: 0.5rem; | ||
` |
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,2 @@ | ||
export * from './Table' | ||
export * from './components' |