Skip to content

Commit

Permalink
Bootcamp: Details page #157: Add BootcampViewSection component and re…
Browse files Browse the repository at this point in the history
…lated styles
  • Loading branch information
ballyalley-o committed May 5, 2024
1 parent aeeade7 commit 6fc4e09
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/section/bootcamp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ export { default as Bootcamp } from './bootcamp'
export { default as BootcampSearch } from './bootcamp-search'
export { default as BootcampCard } from './bootcamp-card'
export { default as BootcampCareer } from './bootcamp-career'
export { default as BootcampViewSection } from './view/view'
export * from './style'
40 changes: 40 additions & 0 deletions src/section/bootcamp/style.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { styled } from '@mui/material/styles'
import { m } from 'framer-motion'
import { TableRow, TableContainer, TableCell, Collapse } from '@mui/material'

export const SRoot = styled(m.div)({
maxWidth: '100vw',
margin: '0 auto'
})

export const STableContainer = styled(TableContainer)({
boxShadow: '0 0 20px rgba(0, 0, 0, 0.1)',
borderRadius: 2,
overflow: 'hidden'
})

export const STableHeader = styled(TableRow)(({ theme }) => ({
backgroundColor: theme.palette.secondary.main,
color: theme.palette.common.white,
paddingRight: '1rem',
paddingLeft: '1rem'
}))

export const STableRow = styled(TableRow)(({ theme }) => ({
'&:nth-of-type(odd)': {
backgroundColor: theme.palette.action.hover
}
}))

export const SCollapse = styled(Collapse)(({ theme }) => ({
'& .MuiTableCell-root': {
padding: '1rem',
backgroundColor: 'transparent'
}
}))

export const STableHeadCell = styled(TableCell)(({ theme }) => ({
fontWeight: 'bold',
fontSize: '1rem',
backgroundColor: 'transparent'
}))

0 comments on commit 6fc4e09

Please sign in to comment.