-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.ts
36 lines (33 loc) · 916 Bytes
/
styles.ts
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
import { createStyles } from "@mantine/core";
import { ListData } from "./services/data";
import { Item } from "./repositories/item";
interface StylesParams {
list?: ListData[] | Item[];
}
export const onBoardingImageWidth = 284;
export const onBoardingImageHeight = 274;
export const onBoardingFontSize = 20;
export const rowMinHeight = 90;
export const useCommonStyles = createStyles(
(theme, { list = [] }: StylesParams) => ({
scrollingWidth: {
width: 92 * (list.length + 1) + 140,
[`@media (min-width: ${theme.breakpoints.md}px)`]: {
margin: "0 auto",
},
},
homeSection: {
margin: "0 auto",
padding: "0 30px",
[`@media (min-width: ${theme.breakpoints.md}px)`]: {
maxWidth: "70%",
},
},
main: {
[`@media (min-width: ${theme.breakpoints.md}px)`]: {
margin: "0 auto",
maxWidth: 1250,
},
},
})
);