|
| 1 | +import styled from 'styled-components' |
| 2 | + |
| 3 | +import type { TTestable } from '@/spec' |
| 4 | +import css, { theme } from '@/utils/css' |
| 5 | +import PostSVG from '@/icons/Post' |
| 6 | +import CommentSVG from '@/icons/Comment' |
| 7 | +import UserSVG from '@/icons/User' |
| 8 | +import EmojiSVG from '@/icons/Emoji' |
| 9 | +import PulseSVG from '@/icons/Pulse' |
| 10 | + |
| 11 | +export const Wrapper = styled.div.attrs(({ testid }: TTestable) => ({ |
| 12 | + 'data-test-id': testid, |
| 13 | +}))<TTestable>` |
| 14 | + ${css.flex()}; |
| 15 | + width: calc(100% + 38px); |
| 16 | + /* border: 1px solid; */ |
| 17 | + margin-top: 30px; |
| 18 | + margin-bottom: 16px; |
| 19 | +` |
| 20 | +export const Block = styled.div` |
| 21 | + ${css.flexColumn('align-start')}; |
| 22 | + width: 20%; |
| 23 | + height: 100px; |
| 24 | +` |
| 25 | +const IconWrapper = styled.div` |
| 26 | + ${css.circle(24)}; |
| 27 | + ${css.flex('align-both')}; |
| 28 | + margin-bottom: 12px; |
| 29 | + opacity: 0.65; |
| 30 | + margin-left: -1px; |
| 31 | +` |
| 32 | +export const UsersWrapper = styled(IconWrapper)` |
| 33 | + background: #c5e1f4; |
| 34 | +` |
| 35 | +export const ContentWrapper = styled(IconWrapper)` |
| 36 | + background: #d5c7e0; |
| 37 | +` |
| 38 | +export const CommentsWrapper = styled(IconWrapper)` |
| 39 | + background: #f9dfc9; |
| 40 | +` |
| 41 | +export const EmojisWrapper = styled(IconWrapper)` |
| 42 | + background: #bcede5; |
| 43 | +` |
| 44 | +export const TrendWrapper = styled(IconWrapper)` |
| 45 | + background: #dfdfdf; |
| 46 | +` |
| 47 | +export const UsersIcon = styled(UserSVG)` |
| 48 | + ${css.size(12)}; |
| 49 | + fill: #2f71ff; |
| 50 | +` |
| 51 | +export const ContentIcon = styled(PostSVG)` |
| 52 | + ${css.size(14)}; |
| 53 | + fill: #860075; |
| 54 | +` |
| 55 | +export const CommentIcon = styled(CommentSVG)` |
| 56 | + ${css.size(15)}; |
| 57 | + fill: #e75908; |
| 58 | +` |
| 59 | +export const EmojiIcon = styled(EmojiSVG)` |
| 60 | + ${css.size(14)}; |
| 61 | + fill: #00a88b; |
| 62 | +` |
| 63 | +export const TrendIcon = styled(PulseSVG)` |
| 64 | + ${css.size(14)}; |
| 65 | + fill: ${theme('thread.articleTitle')}; |
| 66 | +` |
| 67 | +export const Title = styled.div` |
| 68 | + color: ${theme('thread.articleTitle')}; |
| 69 | + font-weight: 600; |
| 70 | + font-size: 13px; |
| 71 | +` |
| 72 | +export const Desc = styled.div` |
| 73 | + color: ${theme('thread.articleDigest')}; |
| 74 | + font-size: 10px; |
| 75 | +` |
| 76 | +export const Num = styled.div` |
| 77 | + color: ${theme('thread.articleTitle')}; |
| 78 | + font-size: 24px; |
| 79 | + font-weight: 600; |
| 80 | + margin-top: 5px; |
| 81 | +` |
| 82 | +export const TrendLineWrapper = styled.div` |
| 83 | + margin-top: 8px; |
| 84 | + margin-left: -5px; |
| 85 | + width: 100%; |
| 86 | +` |
0 commit comments