-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
523 lines (441 loc) · 8.53 KB
/
style.css
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
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Mochiy+Pop+One&family=Pacifico&family=Poppins:wght@300;400;500;600;700;800;900&family=Roboto:wght@100&family=Rubik+Puddles&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
border: none;
outline: none;
scroll-behavior: smooth;
font-family: "Poppins", sans-serif;
}
:root {
--bg-color: #1f242d;
--second-bg-color: #323946;
--text-color: #fff;
--main-color: #ff2079;
}
html {
font-size: 62.5%;
overflow: auto; /* Ganti dari "hidden" menjadi "visible" */
}
body {
background: var(--bg-color);
color: var(--text-color);
}
section {
min-height: 100vh;
padding: 10rem 9% 2rem;
}
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 2rem 9%;
background: var(--bg-color);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.header.sticky {
border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}
.logo {
font-size: 2.5rem;
color: var(--text-color);
font-weight: 600;
cursor: default;
}
.navbar a {
font-size: 1.7rem;
color: var(--text-color);
margin-left: 2rem;
transition: 0.3s;
}
.navbar a:hover,
.navbar a.active {
color: var(--main-color);
}
#menu-icon {
font-size: 3.6rem;
color: var(--text-color);
display: none;
}
.home {
display: flex;
justify-content: center;
align-items: center;
}
.home-content h3 {
font-size: 3.2rem;
font-weight: 700;
}
.home-content h3:nth-of-type(2) {
margin-bottom: 2rem;
}
span {
color: var(--main-color);
}
.home-img img {
width: 300px; /* Sesuaikan lebar gambar sesuai kebutuhan Anda */
height: 360px; /* Sesuaikan tinggi gambar sesuai kebutuhan Anda */
animation: floatImage 4s ease-in-out infinite;
box-shadow: 0px 0px 10px rgba(255, 171, 235, 0.3); /* Menambahkan efek bayangan */
}
@keyframes floatImage {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-2.4rem);
}
100% {
transform: translateY(0);
}
}
.home-content h1 {
font-size: 5.6rem;
font-weight: 700;
line-height: 1.3;
}
.home-content p {
font-size: 1.6rem;
}
.social-media a {
display: inline-flex;
justify-content: center;
align-items: center;
width: 4rem;
height: 4rem;
background: transparent;
border: 0.2rem solid var(--main-color);
border-radius: 50%;
font-size: 2rem;
color: var(--main-color);
margin: 3rem 1.5rem 3rem 0;
transition: 0.5s ease;
}
.social-media a:hover {
background: var(--main-color);
color: var(--second-bg-color);
box-shadow: 0 0 1rem var(--main-color);
}
.btn {
display: inline-block;
padding: 1rem 2.8rem;
background: var(--main-color);
border-radius: 4rem;
box-shadow: 0 0 1rem var(--main-color);
font-size: 1.6rem;
color: var(--second-bg-color);
letter-spacing: 0.1rem;
font-weight: 600;
transition: 0.5s ease;
}
.btn:hover {
box-shadow: none;
}
.about {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
background: var(--second-bg-color);
}
.about-img img {
width: 300px; /* Sesuaikan lebar gambar sesuai kebutuhan Anda */
height: 360px; /* Sesuaikan tinggi gambar sesuai kebutuhan Anda */
box-shadow: 0px 0px 10px rgba(255, 171, 235, 0.3); /* Menambahkan efek bayangan */
}
.heading {
text-align: center;
font-size: 4.5rem;
}
.about-content h2 {
text-align: left;
line-height: 1.2;
}
.about-content h3 {
font-size: 2.6rem;
}
.about-content p {
font-size: 1.6rem;
margin: 2rem 0 3rem;
}
.services h2 {
margin-bottom: 5rem;
}
.services-container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 2rem 5rem; /* Ganti menjadi "gap: 2rem;" atau "gap: 2rem 5rem;" sesuai kebutuhan */
}
.services-container .services-box {
flex: 1 1 30rem;
background: var(--second-bg-color);
padding: 3rem 2rem 4rem;
border-radius: 2rem;
text-align: center;
border: 0.2rem solid var(--bg-color);
transition: 0.5s ease;
margin-right: 10px; /* Atur jarak antara tautan */
}
.services-container .services-box:hover {
border-color: var(--main-color);
transform: scale(1.02);
}
.services-box i {
font-size: 7rem;
color: var(--main-color);
}
.services-box h3 {
font-size: 2.6rem;
}
.services-box p {
font-size: 1.6rem;
margin: 1rem 0 3rem;
}
.services-box a {
margin-right: 20px;
margin-top: 30px;
}
.portofolio {
background: var(--second-bg-color);
}
.portofolio h2 {
margin-bottom: 4rem;
}
.portofolio-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
align-items: center;
gap: 2 5rem;
}
.portofolio-container .portofolio-box {
position: relative;
border-radius: 2rem;
box-shadow: 0 0 1rem var(--bg-color);
overflow: hidden;
display: flex;
margin-left: 2rem;
margin-top: 2rem;
}
.portofolio-box img {
width: 100%;
transition: 0.5s ease;
}
.portofolio-box:hover img {
transform: scale(1.1);
}
.portofolio-box .portofolio-layer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
background-size: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
padding: 0 4 rem;
transform: translateY(100%);
transition: 0.5s ease;
}
.portofolio-box:hover .portofolio-layer {
transform: translateY(0);
}
.portofolio-layer h4 {
font-size: 3rem;
}
.portofolio-layer p {
font-size: 1.6rem;
margin: 0.3rem 0 1rem;
}
.portofolio a {
display: inline-flex;
justify-content: center;
align-items: center;
width: 5rem;
height: 5rem;
background: var(--text-color);
border-radius: 50%;
}
.portofolio-layer a i {
font-size: 2rem;
color: var(--second-bg-color);
}
.contact h2 {
margin-bottom: 3rem;
}
.contact form {
max-width: 70rem;
margin: 1rem auto;
text-align: center;
margin-bottom: 3rem;
}
.contact form .input-box {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
width: 100%;
padding: 1.5rem;
font-size: 1.6rem;
color: var(--text-color);
background: var(--second-bg-color);
border-radius: 0.8rem;
margin: 0.7rem 0;
}
.contact form .input-box input {
width: 49%;
}
.contact form textarea {
resize: none;
}
.contact form .btn {
margin-top: 2rem;
cursor: pointer;
}
.footer {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
padding: 2rem 9%;
background-color: var(--second-bg-color);
}
.footer-text p {
font-size: 1.6rem;
}
.footer-iconTop a {
display: inline-block;
justify-content: center;
align-items: center;
padding: 0.8rem;
background: var(--main-color);
border-radius: 0.8rem;
transition: 0.5s ease;
}
.footer-iconTop a:hover {
box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
font-size: 2.4rem;
color: var(--second-bg-color);
}
/* BREAKPOINTS */
@media (max-width: 1200px) {
html {
font-size: 55%;
}
}
@media (max-width: 991px) {
header {
padding: 2rem 3%;
}
section {
padding: 10rem 3% 2rem;
}
.services {
padding-bottom: 7rem;
}
.portofolio {
padding-bottom: 7rem;
}
.contact {
min-height: auto;
}
footer {
padding: 2rem 3%;
}
}
@media (max-width: 768px) {
#menu-icon {
display: block;
}
.navbar {
position: absolute;
top: 100%;
left: 0;
width: 100%;
padding: 1rem 3%;
background: var(--bg-color);
border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
display: none;
}
.navbar.active {
display: block;
}
.navbar a {
display: block;
font-size: 2rem;
margin: 3rem 0;
}
.home {
flex-direction: column;
}
.home-content h3 {
font-size: 2.6rem;
}
.home-content h1 {
font-size: 5rem;
}
.home-img img {
width: 70vw;
margin-top: 4rem;
}
.about {
flex-direction: column-reverse;
}
.about img {
width: 70vw;
margin-top: 4rem;
}
.services h2 {
margin-bottom: 3rem;
}
.portofolio h2 {
margin-bottom: 3rem;
}
.portofolio-container {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 617px) {
.portofolio-container {
grid-template-columns: 1fr;
}
}
@media (max-width: 450px) {
html {
font-size: 50%;
}
.contact form .input-box input {
width: 100%;
}
}
@media (max-width: 360px) {
.home-img img {
width: 99vw;
}
.about-img img {
width: 99vw;
}
.footer {
flex-direction: column-reverse;
}
.footer p {
text-align: center;
margin-top: 2rem;
}
}