-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeneral.tsx
More file actions
49 lines (44 loc) · 1.09 KB
/
General.tsx
File metadata and controls
49 lines (44 loc) · 1.09 KB
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
43
44
45
46
47
48
49
import styled from "styled-components";
import {
BackgroundWithOpacity,
MaxScreenSize,
MobileBreakpoint,
SpacingL,
SpacingM,
SpacingS,
} from "@/app/genericComponents/tokens";
interface SectionProps {
haveBackground?: boolean;
specialBackground?: string;
}
export const SectionBackground = styled.div<SectionProps>`
background-color: ${(props) =>
props.haveBackground
? BackgroundWithOpacity
: props.specialBackground
? props.specialBackground
: "transparent"};
`;
export const Section = styled.div`
padding: ${SpacingM};
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
align-content: center;
max-width: ${MaxScreenSize};
margin: 0 auto;
@media (max-width: ${MobileBreakpoint}) {
padding: ${SpacingL} ${SpacingM};
}
`;
export const WhiteContainer = styled.div`
background-color: rgba(255, 255, 255, 0.51);
border-radius: 10px;
padding: ${SpacingS};
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
`;