1
1
import styled , { createGlobalStyle } from 'styled-components' ;
2
2
import { remSize , prop } from '../../theme' ;
3
3
4
-
5
4
export const GlobalStyle = createGlobalStyle `
6
5
html, body, #root {
7
6
background-color: ${ prop ( 'backgroundColor' ) } ;
@@ -15,12 +14,10 @@ export const GlobalStyle = createGlobalStyle`
15
14
}
16
15
` ;
17
16
18
-
19
17
export const AboutPageContent = styled . div `
20
18
margin: ${ remSize ( 42 ) } ${ remSize ( 295 ) } ;
21
- background-color: ${ prop ( 'backgroundColor' ) } ;
22
19
color: ${ prop ( 'primaryTextColor' ) } ;
23
- min-height: 100vh ;
20
+ background-color: ${ prop ( 'backgroundColor' ) } ;
24
21
25
22
@media (max-width: 1279px) {
26
23
margin: ${ remSize ( 20 ) } ;
@@ -30,11 +27,7 @@ export const AboutPageContent = styled.div`
30
27
}
31
28
` ;
32
29
33
-
34
30
export const Intro = styled . div `
35
- background-color: ${ prop ( 'backgroundColor' ) } ;
36
- color: ${ prop ( 'primaryTextColor' ) } ;
37
-
38
31
& h1 {
39
32
font-size: ${ remSize ( 32 ) } ;
40
33
font-weight: 700;
@@ -50,27 +43,26 @@ export const Intro = styled.div`
50
43
width: ${ remSize ( 110 ) } ;
51
44
justify-content: space-evenly;
52
45
color: ${ prop ( 'primaryTextColor' ) } ;
53
- background-color: ${ prop ( 'backgroundColor' ) } ;
46
+ text-decoration: none ;
54
47
55
48
&:hover {
56
49
color: ${ prop ( 'Button.primary.default.background' ) } ;
57
50
background-color: ${ prop ( 'Button.primary.hover.background' ) } ;
58
51
border-color: ${ prop ( 'Button.primary.hover.border' ) } ;
59
52
text-decoration: none;
60
53
61
- svg path {
62
- fill: ${ prop ( 'Button.primary.default.background' ) } ;
54
+ & svg {
55
+ & path {
56
+ fill: ${ prop ( 'Button.primary.default.background' ) } ;
57
+ }
63
58
}
64
59
}
65
60
}
66
61
` ;
67
62
68
-
69
63
export const IntroHeadline = styled . div `
70
64
display: flex;
71
65
align-items: center;
72
- background-color: ${ prop ( 'backgroundColor' ) } ;
73
- color: ${ prop ( 'primaryTextColor' ) } ;
74
66
75
67
& div {
76
68
height: 100%;
@@ -81,8 +73,10 @@ export const IntroHeadline = styled.div`
81
73
color: ${ prop ( 'primaryTextColor' ) } ;
82
74
}
83
75
84
- & svg path {
85
- fill: ${ prop ( 'logoColor' ) } ;
76
+ & svg {
77
+ & path {
78
+ fill: ${ prop ( 'logoColor' ) } ;
79
+ }
86
80
}
87
81
88
82
@media (max-width: 769px) {
@@ -95,12 +89,10 @@ export const IntroHeadline = styled.div`
95
89
}
96
90
` ;
97
91
98
-
99
92
export const IntroDescription = styled . div `
100
93
line-height: ${ remSize ( 27 ) } ;
101
94
font-size: ${ remSize ( 16 ) } ;
102
95
margin: ${ remSize ( 24 ) } 0;
103
- background-color: ${ prop ( 'backgroundColor' ) } ;
104
96
color: ${ prop ( 'primaryTextColor' ) } ;
105
97
106
98
p {
@@ -109,11 +101,8 @@ export const IntroDescription = styled.div`
109
101
}
110
102
` ;
111
103
112
-
113
104
export const Section = styled . div `
114
105
margin: ${ remSize ( 50 ) } 0;
115
- background-color: ${ prop ( 'backgroundColor' ) } ;
116
- color: ${ prop ( 'primaryTextColor' ) } ;
117
106
118
107
& h2 {
119
108
font-size: ${ remSize ( 24 ) } ;
@@ -127,31 +116,25 @@ export const Section = styled.div`
127
116
}
128
117
` ;
129
118
130
-
131
119
export const SectionContainer = styled . div `
132
120
display: flex;
133
121
justify-content: row;
134
122
padding-top: 0;
135
123
font-size: ${ remSize ( 16 ) } ;
136
124
width: 100%;
137
125
flex-wrap: wrap;
138
- background-color: ${ prop ( 'backgroundColor' ) } ;
139
- color: ${ prop ( 'primaryTextColor' ) } ;
140
126
141
127
@media (max-width: 769px) {
142
128
display: grid;
143
129
}
144
130
` ;
145
131
146
-
147
132
export const SectionItem = styled . div `
148
133
width: 33%;
149
134
display: flex;
150
135
line-height: ${ remSize ( 19.5 ) } ;
151
136
font-size: ${ remSize ( 14 ) } ;
152
137
padding: 0 ${ remSize ( 30 ) } ${ remSize ( 30 ) } 0;
153
- background-color: ${ prop ( 'backgroundColor' ) } ;
154
- color: ${ prop ( 'primaryTextColor' ) } ;
155
138
156
139
& p {
157
140
margin-top: ${ remSize ( 7 ) } ;
@@ -167,7 +150,7 @@ export const SectionItem = styled.div`
167
150
&:hover {
168
151
text-decoration: underline;
169
152
text-decoration-thickness: 0.1em;
170
- color: ${ prop ( 'primaryTextColor ' ) } ;
153
+ color: ${ prop ( 'Button.primary.hover.background ' ) } ;
171
154
}
172
155
}
173
156
@@ -191,11 +174,8 @@ export const SectionItem = styled.div`
191
174
}
192
175
` ;
193
176
194
-
195
177
export const Contact = styled . div `
196
178
margin-bottom: ${ remSize ( 50 ) } ;
197
- background-color: ${ prop ( 'backgroundColor' ) } ;
198
- color: ${ prop ( 'primaryTextColor' ) } ;
199
179
200
180
& h2 {
201
181
font-size: ${ remSize ( 24 ) } ;
@@ -208,11 +188,9 @@ export const Contact = styled.div`
208
188
width: 100%;
209
189
margin: ${ remSize ( 20 ) } 0;
210
190
font-size: ${ remSize ( 16 ) } ;
211
- color: ${ prop ( 'primaryTextColor' ) } ;
212
191
}
213
192
` ;
214
193
215
-
216
194
export const ContactTitle = styled . p `
217
195
width: 50%;
218
196
color: ${ prop ( 'primaryTextColor' ) } ;
@@ -222,7 +200,6 @@ export const ContactTitle = styled.p`
222
200
}
223
201
` ;
224
202
225
-
226
203
export const ContactHandles = styled . p `
227
204
width: 50%;
228
205
color: ${ prop ( 'primaryTextColor' ) } ;
@@ -233,7 +210,7 @@ export const ContactHandles = styled.p`
233
210
234
211
&:hover {
235
212
text-decoration: underline;
236
- color: ${ prop ( 'logoColor ' ) } ;
213
+ color: ${ prop ( 'Button.primary.hover.background ' ) } ;
237
214
}
238
215
}
239
216
@@ -242,14 +219,11 @@ export const ContactHandles = styled.p`
242
219
}
243
220
` ;
244
221
245
-
246
222
export const Footer = styled . div `
247
223
border-top: 0.1rem dashed ${ prop ( 'primaryTextColor' ) } ;
248
224
padding: 0 ${ remSize ( 20 ) } ${ remSize ( 70 ) } 0;
249
225
width: 100%;
250
226
font-size: ${ remSize ( 16 ) } ;
251
- background-color: ${ prop ( 'backgroundColor' ) } ;
252
- color: ${ prop ( 'primaryTextColor' ) } ;
253
227
254
228
& div {
255
229
display: flex;
@@ -263,8 +237,9 @@ export const Footer = styled.div`
263
237
text-decoration: underline;
264
238
265
239
&:hover {
240
+ text-decoration: underline;
266
241
text-decoration-thickness: 0.1em;
267
- color: ${ prop ( 'logoColor ' ) } ;
242
+ color: ${ prop ( 'Button.primary.hover.background ' ) } ;
268
243
}
269
244
}
270
245
0 commit comments