-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
614 lines (518 loc) · 12.2 KB
/
style.css
File metadata and controls
614 lines (518 loc) · 12.2 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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
/* General styles */
body {
margin: 0;
padding: 0;
background: rgb(230,230,230);
color: rgb(50,50,50);
font-family: Arial, sans-serif;
font-size: 1em;
line-height: 1.6em;
}
header {
background-color: #ffffff;
padding: 20px 0;
border-bottom: 1px solid #eaeaea;
}
nav {
display: flex;
justify-content: center;
gap: 20px;
}
nav a {
color: #333;
text-decoration: none;
padding: 10px 20px;
}
nav a:hover {
background-color: #eaeaea;
border-radius: 5px;
}
/* General Styles
/* Hero section */
.hero {
background: url('/images/Thitipun_Srinarmwong_Background.JPG') center/cover no-repeat;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
height: 30rem;
text-align: center;
position: relative;
background-blend-mode: overlay;
background-color: rgba(0, 128, 0, 0.5);
/* Green overlay */
}
.hero-content {
z-index: 1;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
/* Adding text shadow for better readability */
}
.hero-content h1 {
font-size: 2.5em;
/* Adjust font size as needed */
margin: 0;
}
.hero-content p {
font-size: 1.2em;
/* Adjust font size as needed */
}
.hero-content .cta {
background-color: #FFA700;
color: #fff;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.hero-content .cta:hover {
background-color: #FFA700;
}
/* Featured project section */
#featured-project {
padding: 40px 20px;
background-color: #f5f5f5;
text-align: center;
}
#featured-project h2 {
color: #2e7d32;
margin-bottom: 20px;
}
#featured-project .featured-cta {
background-color: #FFA700;
color: #fff;
padding: 5px 5px;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
#featured-project .featured-cta:hover {
background-color: #FFC700;
}
#featured-project img {
max-width: 70%; /* Adjust the width percentage to make it larger */
height: auto;
margin-bottom: 10px;
border-radius: 1.25rem;
}
/* Style for the Experience section header (h2) */
#experience h2 {
color: #2e7d32;
margin-bottom: 20px;
text-align: center;
}
/* Style for the body text in the Experience section */
#experience p {
font-size: 1 em; /* Consistent with hero section body text */
color: #333; /* Same color as hero text */
line-height: 1.6em; /* Ensure readability */
text-align: center; /* Center align to match hero section */
margin: 0 auto 20px; /* Space below each paragraph */
max-width: 800px; /* Limit the width for better readability */
}
.timeline-img {
width: 90px; /* Adjust the width as needed */
height: auto; /* Maintain aspect ratio */
display: block; /* Ensures the image takes the full width */
margin: 0 auto; /* Centers the image horizontally */
padding-bottom: 10px;
}
/* Contact section */
#contact {
padding: 40px 20px;
background-color: #f5f5f5;
text-align: center;
}
#contact h2 {
color: #2e7d32;
margin-bottom: 20px;
}
footer {
padding: 20px 0;
background-color: #ffffff;
border-top: 1px solid #eaeaea;
text-align: center;
}
footer p {
margin: 0;
}
/* Project Section */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
#projects {
padding-block: min(10vh, 2rem); /* Reduced padding */
width: calc(min(76.5rem, 90%));
margin-inline: auto;
}
#projects h2 {
color: #2e7d32;
margin-bottom: 20px;
text-align: center;
}
.container {
margin-top: 3em; /* Reduced margin */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); /* Smaller cards */
gap: 1.5rem; /* Reduced gap */
}
.card {
background: #fff;
border-radius: 1rem; /* Reduced border radius */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.card-inner {
position: relative;
height: 12rem; /* Smaller card height */
background: var(--clr);
border-radius: 1rem; /* Reduced border radius */
overflow: hidden;
}
.card-inner .box {
width: 100%;
height: 100%;
background: #5b2020;
border-radius: 1rem; /* Reduced border radius */
overflow: hidden;
}
.card-inner .imgBox {
position: absolute;
inset: 0;
}
.card-inner .imgBox img {
width: 100%;
height: 100%;
object-fit: cover; /* Cropping applied */
object-position: center;
}
.card-inner .icon {
position: absolute;
bottom: -0.375rem;
right: -0.375rem;
width: 4rem; /* Smaller icon size */
height: 4rem;
background: var(--clr);
border-top-left-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.card-inner .iconBox {
font-size: 2rem; /* Adjust emoji size */
background-color: #6aaf56; /* Green color to match your theme */
border-radius: 40%; /* Keep the round shape */
display: flex;
justify-content: center;
align-items: center;
transition: 0.3s;
color: #ffffff; /* White color for the emoji */
}
.card-inner .iconBox:hover {
transform: scale(1.2); /* Slightly increase size on hover */
}
/* Remove any shadows or background effects to keep the button clean */
.card-inner .iconBox {
box-shadow: none;
background-image: none;
}
.card .content {
padding: 0.5rem 0.625rem; /* Reduced padding */
}
.card .content h3 {
text-transform: capitalize;
font-size: clamp(1rem, 1.2rem + 0.4364vw, 1rem); /* Adjusted font size */
}
.card .content p {
margin: 0.5rem 0 1rem; /* Reduced margin */
color: #333;
font-size: 0.777rem;
}
.card ul {
margin: 0;
padding: 0;
list-style-type: none;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem; /* Reduced gap */
}
.card ul li {
text-transform: uppercase;
background: var(--clr-tag);
color: #f5f5f5;
font-weight: 700;
font-size: 0.7rem; /* Reduced font size */
padding: 0.3rem 0.5rem; /* Reduced padding */
border-radius: 0.188rem;
}
/* Media Queries for Responsive Design */
@media (max-width: 768px) {
header {
background-color: #ffffff;
padding: 20px 0;
border-bottom: 1px solid #eaeaea;
}
nav {
display: flex;
justify-content: center;
gap: 5px;
}
nav a {
color: #333;
text-decoration: none;
padding: 2.5px 5px;
}
nav a:hover {
background-color: #eaeaea;
border-radius: 5px;
}
.hero-content h1 {
font-size: 2em;
}
.hero-content p {
font-size: 1em;
}
nav {
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
}
#featured-project img {
max-width: 50%; /* Increase the max-width for mobile screens */
}
.project-container {
flex-direction: column;
align-items: center;
}
.project-video,
.project-carousel {
flex: 1 1 50%;
max-width: 60%;
}
#experience,
#contact {
padding: 20px 10px;
}
}
/* ================ The Timeline ================ */
.timeline {
position: relative;
width: 660px;
margin: 0 auto;
margin-top: 20px;
padding: 1em 0;
list-style-type: none;
}
.timeline:before {
position: absolute;
left: 50%;
top: 0;
content: ' ';
display: block;
width: 6px;
height: 100%;
margin-left: -3px;
background: rgb(80,80,80);
background: -moz-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
background: -webkit-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
background: -o-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
background: -ms-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
background: linear-gradient(to bottom, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
z-index: 5;
}
.timeline li {
padding: 1em 0;
}
.timeline li:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.direction-l {
position: relative;
width: 300px;
float: left;
text-align: right;
}
.direction-r {
position: relative;
width: 300px;
float: right;
}
.flag-wrapper {
position: relative;
display: inline-block;
text-align: center;
}
.flag {
position: relative;
display: inline;
background: rgb(248,248,248);
padding: 6px 10px;
border-radius: 5px;
font-weight: 600;
text-align: left;
}
.direction-l .flag {
-webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
-moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}
.direction-r .flag {
-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
-moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}
.direction-l .flag:before,
.direction-r .flag:before {
position: absolute;
top: 50%;
right: -40px;
content: ' ';
display: block;
width: 12px;
height: 12px;
margin-top: -10px;
background: #fff;
border-radius: 10px;
border: 4px solid rgb(255,80,80);
z-index: 10;
}
.direction-r .flag:before {
left: -40px;
}
.direction-l .flag:after {
content: "";
position: absolute;
left: 100%;
top: 50%;
height: 0;
width: 0;
margin-top: -8px;
border: solid transparent;
border-left-color: rgb(248,248,248);
border-width: 8px;
pointer-events: none;
}
.direction-r .flag:after {
content: "";
position: absolute;
right: 100%;
top: 50%;
height: 0;
width: 0;
margin-top: -8px;
border: solid transparent;
border-right-color: rgb(248,248,248);
border-width: 8px;
pointer-events: none;
}
.time-wrapper {
display: inline;
padding: 0.5em;
line-height: 1em;
font-size: 0.77;
color: rgb(250,80,80);
vertical-align: middle;
}
.direction-l .time-wrapper {
float: left;
}
.direction-r .time-wrapper {
float: right;
}
.time {
display: inline-block;
padding: 4px 6px;
background: rgb(248,248,248);
}
.desc {
margin: 1em 0.75em 0 0;
font-size: 0.90em;
font-style: italic;
line-height: 1.5em;
}
.direction-r .desc {
margin: 1em 0 0 0.75em;
}
/* ================ Timeline Media Queries ================ */
@media screen and (max-width: 660px) {
.timeline {
width: 100%;
padding: 4em 0 1em 0;
}
.timeline li {
padding: 2em 0;
}
.direction-l,
.direction-r {
float: none;
width: 100%;
text-align: center;
}
.flag-wrapper {
text-align: center;
}
.flag {
background: rgb(255,255,255);
z-index: 15;
}
.direction-l .flag:before,
.direction-r .flag:before {
position: absolute;
top: -30px;
left: 50%;
content: ' ';
display: block;
width: 12px;
height: 12px;
margin-left: -9px;
background: #fff;
border-radius: 10px;
border: 4px solid rgb(255,80,80);
z-index: 10;
}
.direction-l .flag:after,
.direction-r .flag:after {
content: "";
position: absolute;
left: 50%;
top: -8px;
height: 0;
width: 0;
margin-left: -8px;
border: solid transparent;
border-bottom-color: rgb(255,255,255);
border-width: 8px;
pointer-events: none;
}
.time-wrapper {
display: block;
position: relative;
margin: 4px 0 0 0;
z-index: 14;
}
.direction-l .time-wrapper {
float: none;
}
.direction-r .time-wrapper {
float: none;
}
.desc {
position: relative;
margin: 1em 0 0 0;
padding: 1em;
background: rgb(245,245,245);
-webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
-moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
box-shadow: 0 0 1px rgba(0,0,0,0.20);
z-index: 15;
}
.direction-l .desc,
.direction-r .desc {
position: relative;
margin: 1em 1em 0 1em;
padding: 1em;
z-index: 15;
}
}