forked from wednesday-solutions/next-bulletproof-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
42 lines (37 loc) · 973 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import styled, { CSSProperties } from "styled-components";
import { Card, Tag } from "antd";
import { colors, styles } from "@themes";
interface Props {
maxwidth: CSSProperties["maxWidth"];
padding: CSSProperties["padding"];
}
export const Container = styled.div<Props>`
&& {
display: flex;
flex-direction: column;
max-width: ${props => props.maxwidth}px;
width: 100%;
margin: 0 auto;
padding: ${props => props.padding}px;
}
`;
export const CustomCard = styled(Card)<{ maxwidth?: CSSProperties["maxWidth"] }>`
&& {
margin: 20px 0;
max-width: ${props => props.maxwidth};
color: ${props => props.color};
${props => props.color && `color: ${props.color}`};
}
`;
export const ClickableTags = styled(Tag)`
cursor: pointer;
:hover {
border: 1px solid ${colors.primary};
}
`;
export const AlignCenter = styled.div`
display: flex;
justify-content: center;
align-items: center;
${styles.viewHeight(100)}
`;