Update style.css
Browse files
style.css
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
|
|
| 1 |
body {
|
| 2 |
font-family: Arial, sans-serif;
|
| 3 |
margin: 0;
|
| 4 |
padding: 0;
|
| 5 |
background: #f4f4f9;
|
| 6 |
color: #333;
|
|
|
|
| 7 |
}
|
| 8 |
|
|
|
|
| 9 |
header {
|
| 10 |
background: #6200ea;
|
| 11 |
padding: 15px;
|
| 12 |
color: white;
|
| 13 |
text-align: center;
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
header nav ul {
|
|
@@ -27,11 +31,20 @@ header nav ul li {
|
|
| 27 |
header nav ul li a {
|
| 28 |
color: white;
|
| 29 |
text-decoration: none;
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
section {
|
| 33 |
padding: 40px;
|
| 34 |
text-align: center;
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
.project {
|
|
@@ -41,6 +54,11 @@ section {
|
|
| 41 |
max-width: 500px;
|
| 42 |
border-radius: 10px;
|
| 43 |
background: #f9f9f9;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
#chatbox {
|
|
@@ -49,6 +67,7 @@ section {
|
|
| 49 |
border: 1px solid #6200ea;
|
| 50 |
border-radius: 5px;
|
| 51 |
display: none;
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
footer {
|
|
@@ -58,6 +77,39 @@ footer {
|
|
| 58 |
color: white;
|
| 59 |
}
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
}
|
|
|
|
| 1 |
+
/* Global Styles */
|
| 2 |
body {
|
| 3 |
font-family: Arial, sans-serif;
|
| 4 |
margin: 0;
|
| 5 |
padding: 0;
|
| 6 |
background: #f4f4f9;
|
| 7 |
color: #333;
|
| 8 |
+
transition: all 0.3s ease; /* Haluskan transisi untuk perubahan */
|
| 9 |
}
|
| 10 |
|
| 11 |
+
/* Header */
|
| 12 |
header {
|
| 13 |
background: #6200ea;
|
| 14 |
padding: 15px;
|
| 15 |
color: white;
|
| 16 |
text-align: center;
|
| 17 |
+
transition: background-color 0.3s ease; /* Haluskan perubahan warna latar */
|
| 18 |
}
|
| 19 |
|
| 20 |
header nav ul {
|
|
|
|
| 31 |
header nav ul li a {
|
| 32 |
color: white;
|
| 33 |
text-decoration: none;
|
| 34 |
+
font-size: 1.1rem;
|
| 35 |
+
transition: color 0.3s ease;
|
| 36 |
}
|
| 37 |
|
| 38 |
+
header nav ul li a:hover {
|
| 39 |
+
color: #ffcc00; /* Warna saat hover */
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
/* Section */
|
| 43 |
section {
|
| 44 |
padding: 40px;
|
| 45 |
text-align: center;
|
| 46 |
+
opacity: 0;
|
| 47 |
+
animation: fadeIn 1s forwards; /* Animasi muncul */
|
| 48 |
}
|
| 49 |
|
| 50 |
.project {
|
|
|
|
| 54 |
max-width: 500px;
|
| 55 |
border-radius: 10px;
|
| 56 |
background: #f9f9f9;
|
| 57 |
+
transition: transform 0.3s ease;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.project:hover {
|
| 61 |
+
transform: scale(1.05); /* Efek saat hover */
|
| 62 |
}
|
| 63 |
|
| 64 |
#chatbox {
|
|
|
|
| 67 |
border: 1px solid #6200ea;
|
| 68 |
border-radius: 5px;
|
| 69 |
display: none;
|
| 70 |
+
transition: all 0.3s ease;
|
| 71 |
}
|
| 72 |
|
| 73 |
footer {
|
|
|
|
| 77 |
color: white;
|
| 78 |
}
|
| 79 |
|
| 80 |
+
/* Responsive Design */
|
| 81 |
+
@media (max-width: 768px) {
|
| 82 |
+
header nav ul {
|
| 83 |
+
flex-direction: column;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
header nav ul li {
|
| 87 |
+
margin-bottom: 10px;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
section {
|
| 91 |
+
padding: 20px;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.project {
|
| 95 |
+
max-width: 90%;
|
| 96 |
+
margin: 10px;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
#chatMessage {
|
| 100 |
+
font-size: 1rem;
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
/* Animasi Scroll */
|
| 105 |
+
@keyframes fadeIn {
|
| 106 |
+
0% { opacity: 0; }
|
| 107 |
+
100% { opacity: 1; }
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
/* Efek saat halaman di-scroll */
|
| 111 |
+
@media (max-width: 768px) {
|
| 112 |
+
section {
|
| 113 |
+
opacity: 1 !important; /* Pastikan animasi tetap terlihat */
|
| 114 |
+
}
|
| 115 |
}
|