Skip to content

Commit cf1d333

Browse files
committed
memperbaiki css
1 parent 93d38e5 commit cf1d333

File tree

1 file changed

+21
-71
lines changed

1 file changed

+21
-71
lines changed

styles.css

Lines changed: 21 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,46 @@
1+
/* Umum */
12
body {
23
font-family: Arial, sans-serif;
3-
background-color: #1c1c1c;
4-
color: #f5f5f5;
54
margin: 0;
65
padding: 0;
7-
text-align: center;
6+
box-sizing: border-box;
7+
background-color: #f9f9f9;
8+
color: #333;
9+
line-height: 1.6;
810
}
911

1012
header {
11-
padding: 50px;
12-
background: #333;
13+
text-align: center;
14+
padding: 2rem 1rem;
15+
background: linear-gradient(135deg, #4e54c8, #8f94fb);
1316
color: white;
1417
}
1518

16-
.profile-picture.small {
17-
width: 10px; /* Ukuran diperbesar agar lebih terlihat */
18-
height: 10px;
19-
border-radius: 50%; /* Menggunakan 50% agar menjadi lingkaran */
20-
object-fit: cover;
21-
margin-bottom: 15px;
19+
h1 {
20+
font-size: 2.5rem;
21+
margin: 0;
22+
}
23+
24+
p {
25+
font-size: 1.1rem;
2226
}
2327

2428
nav ul {
25-
list-style-type: none;
26-
padding: 0;
27-
background: #444;
28-
overflow: hidden;
2929
display: flex;
3030
justify-content: center;
31+
padding: 0;
32+
list-style: none;
33+
background-color: #4e54c8;
3134
}
3235

3336
nav ul li {
3437
margin: 0 15px;
3538
}
3639

3740
nav ul li a {
38-
color: white;
3941
text-decoration: none;
40-
padding: 10px;
41-
display: inline-block;
42-
transition: color 0.3s ease-in-out;
43-
}
44-
45-
nav ul li a:hover {
46-
color: #ffcc00;
47-
}
48-
49-
section {
50-
padding: 50px;
51-
margin: 20px;
52-
background: #2c2c2c;
53-
border-radius: 10px;
54-
box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.1);
55-
}
56-
57-
.project {
58-
margin: 20px 0;
59-
padding: 15px;
60-
background: #3c3c3c;
61-
border-radius: 5px;
62-
}
63-
64-
.project-image.small {
65-
width: 200px; /* Ukuran gambar project diperbesar */
66-
height: 150px;
67-
object-fit: cover;
68-
border-radius: 10px;
69-
margin-bottom: 10px;
70-
}
71-
72-
.fade-in {
73-
animation: fadeIn 2s ease-in-out;
74-
}
75-
76-
.slide-up {
77-
opacity: 0;
78-
transform: translateY(50px);
79-
animation: slideUp 1s ease-out forwards;
80-
}
81-
82-
@keyframes fadeIn {
83-
from { opacity: 0; }
84-
to { opacity: 1; }
42+
color: white;
43+
padding: 10px 15px;
44+
transition: 0.3s;
8545
}
8646

87-
@keyframes slideUp {
88-
from {
89-
opacity: 0;
90-
transform: translateY(50px);
91-
}
92-
to {
93-
opacity: 1;
94-
transform: translateY(0);
95-
}
96-
}

0 commit comments

Comments
 (0)