Skip to content

Commit

Permalink
The website has a list with different components
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitardanailov committed May 23, 2024
1 parent e759202 commit 7c904df
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 0 deletions.
30 changes: 30 additions & 0 deletions apps/website/src/app/demos/dashboard-trade/styled/Table/Cell.ts
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 apps/website/src/app/demos/dashboard-trade/styled/Table/Header.ts
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 apps/website/src/app/demos/dashboard-trade/styled/Table/Row.ts
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 apps/website/src/app/demos/dashboard-trade/styled/Table/Table.ts
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
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}
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;
`
2 changes: 2 additions & 0 deletions apps/website/src/app/demos/dashboard-trade/styled/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './Table'
export * from './components'

0 comments on commit 7c904df

Please sign in to comment.