-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
354 lines (289 loc) · 5.75 KB
/
style.css
File metadata and controls
354 lines (289 loc) · 5.75 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital@0;1&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: 0;
}
body {
font-family: "Nunito Sans";
font-size: 16px;
line-height: 1.5;
background-color: #1A1E39;
color: #fff;
margin: 80px auto 48px auto;
max-width: 1120px;
width: auto;
}
img {
width: 100%;
height: auto;
}
header img {
width: 400px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
}
h1, nav, footer {
font-family: "Josefin Sans";
font-size: 40px;
font-weight: 600;
line-height: 1.2;
}
h1 span {
color: #f4bcbb;
}
h1 span.green {
color: #077644;
}
h2 {
font-family: "Josefin Sans";
font-size: 24px;
font-weight: 400;
line-height: 1.3;
margin: 0 0 16px;
}
a {
color: #fff;
text-decoration: none;
margin: 0 0 0 32px;
transition: color 0.3s, border-bottom 0.3s;
border-bottom: 2px solid transparent;
}
a:hover, a.selected {
color: #f4bcbb;
border-bottom: 2px solid #f4bcbb;
}
section {
margin: 80px 0 80px 0;
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 32px 32px;
grid-auto-flow: dense;
}
h1 {
opacity: 0; /* Start hidden */
animation: slideDown 1.5s ease forwards; /* Apply fadeIn animation */
}
section h1 {
grid-column: 2 / span 10;
text-align: center;
}
section.project div.artwork{
width: 100%; /* Ensures images scale within their grid area */
height: 100%; /* Keeps image height consistent with grid rows */
object-fit: cover; /* Ensures images maintain aspect ratio within their grid space */
grid-column: 1 / span 8;
text-align: center;
}
section.project div.description {
grid-column: 9 / span 4;
}
section.project img {
max-height: 640px;
}
section.project-alt div.artwork{
width: 100%; /* Ensures images scale within their grid area */
height: 100%; /* Keeps image height consistent with grid rows */
object-fit: cover; /* Ensures images maintain aspect ratio within their grid space */
grid-column: 5 / span 8;
}
section.project-alt div.description {
grid-column: 1 / span 4;
}
section.about div.photo {
width: 100%; /* Ensures images scale within their grid area */
height: 100%; /* Keeps image height consistent with grid rows */
object-fit: cover; /* Ensures images maintain aspect ratio within their grid space */
grid-column: 1 / span 5;
}
section.about div.description {
grid-column: 7 / span 5;
}
section.about h1 {
margin: 0;
text-align: left;
}
section.about p {
margin: 16px 0 16px 0;
}
section.contact div.form {
grid-column: 4 / span 6;
}
section.contact h1 {
text-align: left;
}
section.alice-layout img{
grid-column: 1 / span 12;
}
section.alice-layout h2{
grid-column: 1 / span 4;
}
section.alice-layout div{
grid-column: 7 / span 6;
}
/* section.grid-layout div {
grid-column: span 6;
} */
/* video {
width: 100%;
} */
section.project img {
border-radius: 8px;
}
section.about img {
border-radius: 8px;
}
footer {
display: flex;
align-items: center;
justify-content: center;
}
footer a {
margin: 0 16px 0 16px;
}
input, textarea {
width: 100%;
background-color: #111118;
border: 2px solid #fff;
border-radius: 5px;
color: #fff;
padding: 8px 16px 8px 16px;
}
label {
display: block;
margin: 16px 0 16px 0;
}
textarea {
height: 320px;
}
button {
background-color: #f4bcbb;
border: none;
font-size: 24px;
font-family: "Josefin Sans";
padding: 8px 16px 8px 16px;
border-radius: 5px;
}
input:focus, textarea:focus {
border: 2px solid #f4bcbb;
outline: none;
}
@media (max-width: 1248px) {
body {
width: auto;
margin: 80px 64px 48px 64px;
}
h1, nav, footer {
font-size: 24px;
}
}
@media (max-width: 920px) {
header {
flex-direction: column;
}
nav {
margin: 24px 0 0 0;
}
header img{
max-width: 300px;
}
header a {
margin: 0 16px 0 16px;
}
}
@media (max-width: 660px) {
nav a {
margin: 8px;
}
section {
grid-template-columns: repeat(4, 1fr);
gap: 24px 24px;
margin: 64px 0 64px 0;
}
section h1,
section.project div.artwork,
section.project div.description
section.about div.photo,
section.about div.description,
section.contact div.form{
grid-column: 1 / span 4;
}
section.project div.description {
grid-column: 1 / span 4;
}
}
@media (max-width: 500px) {
body {
margin: 48px 32px 32px 32px;
}
header img {
width: 100%;
}
nav {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
/* Keyframes for Fade-In */
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Zoom-in On-hover images */
.artwork img {
transition: transform 0.4s ease;
}
.artwork:hover img {
transform: scale(1.05);
}
/* Bounce on-hover on the footer icons */
footer a {
display: inline-block;
transition: transform 0.3s ease;
}
footer a:hover {
transform: translateY(-5px);
}
/* Entrance animation for Header */
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
header {
animation: slideDown 0.8s ease forwards;
}
.description h2 {
opacity: 0;
animation: fadeIn 1s ease forwards;
animation-delay: 0.5s; /* Adds delay */
}
/* Fade-in animation and zoom for images as the section enter the viewport */
/* Section Styling */
/* Initial hidden state */
.project {
opacity: 0;
transform: scale(0.9); /* Slightly smaller scale for zoom-in effect */
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Class to apply when in view */
.project.in-view {
opacity: 1;
transform: scale(1); /* Zooms in to original size */
}