|
| 1 | +import styled from 'styled-components' |
| 2 | + |
| 3 | +import type { TTestable } from '@/spec' |
| 4 | +import css, { theme } from '@/utils/css' |
| 5 | + |
| 6 | +import GtdWipSVG from '@/icons/GtdWip' |
| 7 | +import GtdDoneSVG from '@/icons/GtdDone' |
| 8 | +import GtdTodoSVG from '@/icons/GtdTodo' |
| 9 | + |
| 10 | +export const Wrapper = styled.div.attrs(({ testid }: TTestable) => ({ |
| 11 | + 'data-test-id': testid, |
| 12 | +}))<TTestable>` |
| 13 | + width: 100%; |
| 14 | + padding: 10px 25px; |
| 15 | +` |
| 16 | +export const ColumnsWrapper = styled.div` |
| 17 | + ${css.flex('align-start', 'justify-between')}; |
| 18 | + min-height: 500px; |
| 19 | + margin-top: 60px; |
| 20 | +` |
| 21 | +export const Column = styled.div` |
| 22 | + ${css.flexColumn('align-start')}; |
| 23 | + width: 29%; |
| 24 | + min-height: 70vh; |
| 25 | + /* border: 1px solid; */ |
| 26 | + /* border-color: ${theme('thread.extraInfo')}; */ |
| 27 | +` |
| 28 | +export const Header = styled.div` |
| 29 | + border-bottom: 2px solid; |
| 30 | + border-bottom-color: ${theme('thread.articleDigest')}; |
| 31 | + padding-bottom: 22px; |
| 32 | + width: 100%; |
| 33 | + padding-left: 3px; |
| 34 | +` |
| 35 | +export const Title = styled.div` |
| 36 | + ${css.flex('align-center')}; |
| 37 | +` |
| 38 | +export const SubTitle = styled.div` |
| 39 | + color: ${theme('thread.articleDigest')}; |
| 40 | + opacity: 0.8; |
| 41 | + font-size: 13px; |
| 42 | + margin-top: 4px; |
| 43 | +` |
| 44 | +export const Label = styled.div` |
| 45 | + color: ${theme('thread.articleTitle')}; |
| 46 | + font-size: 15px; |
| 47 | + font-weight: 600; |
| 48 | + margin-right: 10px; |
| 49 | +` |
| 50 | +export const TODOIcon = styled(GtdTodoSVG)` |
| 51 | + ${css.size(12)}; |
| 52 | + fill: ${theme('thread.extraInfo')}; |
| 53 | +` |
| 54 | +export const WipIcon = styled(GtdWipSVG)` |
| 55 | + ${css.size(12)}; |
| 56 | + fill: ${theme('thread.extraInfo')}; |
| 57 | +` |
| 58 | +export const DoneIcon = styled(GtdDoneSVG)` |
| 59 | + ${css.size(12)}; |
| 60 | + fill: ${theme('thread.extraInfo')}; |
| 61 | +` |
0 commit comments