|
1 | 1 | import { css } from 'emotion'; |
2 | 2 | import { theme } from 'core/theme'; |
3 | | -const { palette, typography, spacing } = theme; |
| 3 | + |
| 4 | +const { palette, spacing, breakpoints } = theme; |
| 5 | +const color = palette.customPalette; |
4 | 6 |
|
5 | 7 | export const footerContainer = css` |
6 | 8 | display: flex; |
7 | 9 | flex-direction: column; |
8 | 10 | justify-content: space-between; |
9 | | - height: ${spacing(300)}; |
10 | | - padding: ${spacing(20)} ${spacing(100)}; |
11 | | - background-color: ${palette.text.primary}; |
12 | | -
|
13 | | - @media (max-width: 728px) { |
14 | | - padding: ${spacing(20)} ${spacing(40)} ${spacing(30)} ${spacing(40)}; |
| 11 | + height: ${spacing(37.5)}; |
| 12 | + padding: ${spacing(2.5)} ${spacing(12.5)}; |
| 13 | + background-color: ${color.secondary}; |
| 14 | + @media (max-width: ${breakpoints.values.md}px) { |
| 15 | + padding: ${spacing(2.5)} ${spacing(5)} ${spacing(3.75)} ${spacing(5)}; |
15 | 16 | } |
16 | | -
|
17 | | - @media (max-width: 380px) { |
18 | | - height: ${spacing(350)}; |
| 17 | + @media (max-width: ${breakpoints.values.xs}px) { |
| 18 | + height: ${spacing(43.75)}; |
19 | 19 | } |
20 | 20 | `; |
21 | 21 |
|
22 | 22 | export const topContainer = css` |
23 | | - padding: 0 1rem; |
24 | 23 | display: flex; |
25 | 24 | justify-content: space-between; |
26 | | - height: ${spacing(195)}; |
| 25 | + height: ${spacing(24.375)}; |
| 26 | + padding: 0 ${spacing(2)}; |
27 | 27 | align-items: center; |
28 | | -
|
29 | | - @media (max-width: 380px) { |
| 28 | + @media (max-width: ${breakpoints.values.xs}px) { |
30 | 29 | flex-direction: column-reverse; |
31 | | - align-items: center; |
32 | 30 | justify-content: center; |
33 | | - height: ${spacing(220)}; |
| 31 | + align-items: center; |
| 32 | + height: ${spacing(27.5)}; |
34 | 33 | } |
35 | 34 | `; |
36 | 35 |
|
37 | 36 | export const topContainerCenter = css` |
38 | | - padding: 0 1rem; |
39 | 37 | display: flex; |
40 | 38 | justify-content: center; |
41 | 39 | align-items: center; |
42 | | - height: ${spacing(195)}; |
| 40 | + height: ${spacing(24.375)}; |
| 41 | + padding: 0 ${spacing(2)}; |
43 | 42 | `; |
44 | 43 |
|
45 | 44 | export const linkList = css` |
46 | | - padding: 0; |
47 | 45 | margin: 0; |
| 46 | + padding: 0; |
48 | 47 | list-style: none; |
49 | | -
|
50 | | - @media (max-width: 380px) { |
| 48 | + @media (max-width: ${breakpoints.values.xs}px) { |
| 49 | + margin-top: ${spacing(2.4)}; |
51 | 50 | text-align: center; |
52 | | - margin-top: 1.2rem; |
53 | 51 | } |
54 | 52 | `; |
55 | 53 |
|
56 | 54 | export const link = css` |
57 | 55 | font-size: 1.1rem; |
58 | | - color: #eee; |
59 | 56 | text-decoration: none; |
| 57 | + color: ${color.greyLight}; |
60 | 58 | &:hover { |
61 | | - color: #d9d900; |
| 59 | + color: ${color.primary}; |
62 | 60 | } |
63 | 61 | `; |
64 | 62 |
|
65 | 63 | export const bottomContainer = css` |
66 | 64 | display: flex; |
67 | 65 | justify-content: space-between; |
68 | | - border-top: 1px solid #d9d900; |
69 | | - padding-top: 1rem; |
70 | | -
|
71 | | - @media (max-width: 380px) { |
| 66 | + padding-top: ${spacing(2)}; |
| 67 | + border-top: 1px solid ${color.primary}; |
| 68 | + @media (max-width: ${breakpoints.values.xs}px) { |
72 | 69 | flex-direction: column; |
73 | | - align-items: center; |
74 | 70 | justify-content: center; |
| 71 | + align-items: center; |
75 | 72 | } |
76 | 73 | `; |
77 | 74 |
|
78 | 75 | export const lemoncodeIcon = css` |
79 | | - height: 100px; |
| 76 | + height: ${spacing(12.5)}; |
80 | 77 | `; |
81 | 78 |
|
82 | 79 | export const iconContainer = css` |
83 | 80 | display: flex; |
84 | | - padding: 0; |
85 | 81 | margin: 0; |
| 82 | + padding: 0; |
86 | 83 | list-style: none; |
87 | 84 | `; |
88 | 85 |
|
89 | 86 | export const iconListItem = css` |
90 | | - margin-right: 0.5rem; |
| 87 | + margin-right: ${spacing(1)}; |
91 | 88 | &:first-of-type { |
92 | | - margin-right: 0.7rem; |
| 89 | + margin-right: ${spacing(1.4)}; |
93 | 90 | } |
94 | 91 | &:last-of-type { |
95 | 92 | margin-right: 0; |
96 | 93 | } |
97 | 94 | `; |
98 | 95 |
|
99 | 96 | export const icon = css` |
100 | | - color: #eee; |
101 | 97 | font-size: 1.5rem; |
| 98 | + color: ${color.greyLight}; |
102 | 99 | &:hover { |
103 | 100 | cursor: pointer; |
104 | | - color: #d9d900; |
| 101 | + color: ${color.primary}; |
105 | 102 | } |
106 | 103 | `; |
107 | 104 |
|
108 | 105 | export const githubIcon = css` |
109 | | - height: 22px; |
110 | | - fill: #eee; |
| 106 | + height: ${spacing(2.75)}; |
| 107 | + fill: ${color.greyLight}; |
111 | 108 | &:hover { |
112 | 109 | cursor: pointer; |
113 | | - fill: #d9d900; |
| 110 | + fill: ${color.primary}; |
114 | 111 | } |
115 | 112 | `; |
116 | 113 |
|
117 | 114 | export const copyright = css` |
118 | | - color: #eee; |
119 | | - @media (max-width: 380px) { |
120 | | - margin-top: 0.4rem; |
| 115 | + color: ${color.greyLight}; |
| 116 | + @media (max-width: ${breakpoints.values.xs}px) { |
| 117 | + margin-top: ${spacing(0.8)}; |
121 | 118 | } |
122 | 119 | `; |
0 commit comments