Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,208 +1,98 @@
|
|
| 1 |
-
/* Styling
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
display: flex;
|
| 9 |
-
justify-content: center;
|
| 10 |
-
align-items: flex-start;
|
| 11 |
-
height: 100vh;
|
| 12 |
-
overflow-y: auto;
|
| 13 |
}
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
width: 100%;
|
| 18 |
-
max-width: 800px;
|
| 19 |
-
background-color: #fafafa; /* Putih krem lembut */
|
| 20 |
-
border-radius: 30px; /* Sudut melengkung */
|
| 21 |
-
padding: 30px; /* Menambah padding untuk memberi ruang lebih */
|
| 22 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 23 |
-
margin-top: 20px;
|
| 24 |
-
min-height: 600px; /* Menambah tinggi minimum kontainer */
|
| 25 |
}
|
| 26 |
|
| 27 |
-
/* Styling untuk
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
}
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
gap: 20px;
|
| 49 |
}
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
display: flex;
|
| 54 |
-
flex-direction: column;
|
| 55 |
-
width: 100%;
|
| 56 |
}
|
| 57 |
|
| 58 |
-
/* Styling untuk
|
| 59 |
-
.
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
-
.
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
display: block;
|
| 70 |
}
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
width: 100%;
|
| 76 |
-
max-width: 100%;
|
| 77 |
-
margin-bottom: 20px;
|
| 78 |
-
border-radius: 8px;
|
| 79 |
-
border: 1px solid #ddd;
|
| 80 |
-
background-color: #f5f5f5;
|
| 81 |
-
color: #333;
|
| 82 |
}
|
| 83 |
|
| 84 |
-
/*
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
cursor: pointer;
|
| 91 |
-
font-size: 20px;
|
| 92 |
-
border-radius: 50%;
|
| 93 |
-
margin: 10px auto;
|
| 94 |
-
display: block;
|
| 95 |
-
width: 50px;
|
| 96 |
-
height: 50px;
|
| 97 |
}
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
}
|
| 102 |
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
padding-right: 30px;
|
| 109 |
-
background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-down-fill" viewBox="0 0 16 16%3E%3Cpath d="M3.646 5.646a.5.5 0 0 1 .708 0L8 9.293l3.646-3.647a.5.5 0 1 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E');
|
| 110 |
-
background-position: right 10px center;
|
| 111 |
-
background-repeat: no-repeat;
|
| 112 |
-
background-size: 12px;
|
| 113 |
}
|
| 114 |
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
background-color: #4CAF50;
|
| 118 |
-
color: white;
|
| 119 |
-
padding: 15px;
|
| 120 |
-
font-size: 16px;
|
| 121 |
-
border: none;
|
| 122 |
-
border-radius: 8px;
|
| 123 |
-
cursor: pointer;
|
| 124 |
-
width: 100%;
|
| 125 |
-
margin-top: 20px;
|
| 126 |
}
|
| 127 |
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
/* Styling footer */
|
| 133 |
-
footer {
|
| 134 |
-
text-align: center;
|
| 135 |
-
margin-top: 20px;
|
| 136 |
-
font-size: 0.9em;
|
| 137 |
-
color: #777;
|
| 138 |
-
}
|
| 139 |
-
|
| 140 |
-
footer a {
|
| 141 |
-
color: #4CAF50;
|
| 142 |
-
text-decoration: none;
|
| 143 |
-
}
|
| 144 |
-
|
| 145 |
-
footer a:hover {
|
| 146 |
-
text-decoration: underline;
|
| 147 |
-
}
|
| 148 |
-
|
| 149 |
-
#result {
|
| 150 |
-
margin-top: 20px;
|
| 151 |
-
font-size: 1.5em;
|
| 152 |
-
color: #333;
|
| 153 |
-
text-align: center;
|
| 154 |
-
}
|
| 155 |
-
|
| 156 |
-
/* Responsif untuk layar kecil (mobile) */
|
| 157 |
-
@media (max-width: 600px) {
|
| 158 |
-
.container {
|
| 159 |
-
width: 90%;
|
| 160 |
-
padding: 15px;
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
header h1 {
|
| 164 |
-
font-size: 24px;
|
| 165 |
-
}
|
| 166 |
-
|
| 167 |
-
header p {
|
| 168 |
-
font-size: 14px;
|
| 169 |
-
}
|
| 170 |
-
|
| 171 |
-
input, select, button {
|
| 172 |
-
padding: 12px;
|
| 173 |
-
font-size: 14px;
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
-
button#swap-btn {
|
| 177 |
-
width: 45px;
|
| 178 |
-
height: 45px;
|
| 179 |
-
}
|
| 180 |
-
}
|
| 181 |
-
|
| 182 |
-
/* Responsif untuk tablet */
|
| 183 |
-
@media (min-width: 601px) and (max-width: 900px) {
|
| 184 |
-
.container {
|
| 185 |
-
width: 80%;
|
| 186 |
-
padding: 20px;
|
| 187 |
-
}
|
| 188 |
-
|
| 189 |
-
header h1 {
|
| 190 |
-
font-size: 28px;
|
| 191 |
-
}
|
| 192 |
-
|
| 193 |
-
input, select, button {
|
| 194 |
-
padding: 14px;
|
| 195 |
-
}
|
| 196 |
-
}
|
| 197 |
-
|
| 198 |
-
/* Responsif untuk desktop */
|
| 199 |
-
@media (min-width: 901px) {
|
| 200 |
-
.container {
|
| 201 |
-
width: 70%;
|
| 202 |
-
padding: 30px;
|
| 203 |
-
}
|
| 204 |
-
|
| 205 |
-
header h1 {
|
| 206 |
-
font-size: 32px;
|
| 207 |
-
}
|
| 208 |
-
}
|
|
|
|
| 1 |
+
/* Styling untuk Navbar */
|
| 2 |
+
.navbar {
|
| 3 |
+
background-color: #4CAF50; /* Warna hijau untuk navbar */
|
| 4 |
+
padding: 10px 20px;
|
| 5 |
+
display: flex;
|
| 6 |
+
justify-content: center;
|
| 7 |
+
align-items: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
+
.navbar .logo {
|
| 11 |
+
width: 100px; /* Sesuaikan ukuran logo */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
+
/* Styling untuk Headline */
|
| 15 |
+
.headline {
|
| 16 |
+
background-color: #4CAF50; /* Warna hijau untuk headline */
|
| 17 |
+
color: white;
|
| 18 |
+
padding: 40px;
|
| 19 |
+
text-align: center;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
/* Styling untuk Konten Utama */
|
| 23 |
+
.content-area {
|
| 24 |
+
background-color: white; /* Latar belakang putih untuk konten */
|
| 25 |
+
padding: 20px;
|
| 26 |
+
border-radius: 10px;
|
| 27 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
| 28 |
+
max-width: 800px;
|
| 29 |
+
margin: 40px auto;
|
| 30 |
}
|
| 31 |
|
| 32 |
+
.content-area input,
|
| 33 |
+
.content-area select,
|
| 34 |
+
.content-area button {
|
| 35 |
+
padding: 10px;
|
| 36 |
+
margin: 10px 0;
|
| 37 |
+
width: 100%;
|
| 38 |
+
border: 1px solid #ddd;
|
| 39 |
+
border-radius: 5px;
|
| 40 |
}
|
| 41 |
|
| 42 |
+
.content-area button {
|
| 43 |
+
background-color: #4CAF50;
|
| 44 |
+
color: white;
|
| 45 |
+
cursor: pointer;
|
|
|
|
| 46 |
}
|
| 47 |
|
| 48 |
+
.content-area button:hover {
|
| 49 |
+
background-color: #45a049;
|
|
|
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
|
| 52 |
+
/* Styling untuk Box Informasi */
|
| 53 |
+
.info-box {
|
| 54 |
+
background-color: white;
|
| 55 |
+
border: 1px solid #ddd;
|
| 56 |
+
padding: 20px;
|
| 57 |
+
margin: 20px 0;
|
| 58 |
+
border-radius: 8px;
|
| 59 |
+
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
|
| 60 |
}
|
| 61 |
|
| 62 |
+
.info-box h2 {
|
| 63 |
+
color: #333;
|
| 64 |
+
margin-bottom: 10px;
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
+
.info-box p {
|
| 68 |
+
color: #555;
|
| 69 |
+
line-height: 1.6;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
}
|
| 71 |
|
| 72 |
+
/* Styling untuk Footer */
|
| 73 |
+
.footer {
|
| 74 |
+
background-color: #333; /* Latar belakang footer */
|
| 75 |
+
color: white;
|
| 76 |
+
padding: 20px 0;
|
| 77 |
+
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
}
|
| 79 |
|
| 80 |
+
.footer .social-icons {
|
| 81 |
+
margin: 20px 0;
|
| 82 |
}
|
| 83 |
|
| 84 |
+
.footer .social-icons a {
|
| 85 |
+
color: white;
|
| 86 |
+
font-size: 24px;
|
| 87 |
+
margin: 0 10px;
|
| 88 |
+
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
}
|
| 90 |
|
| 91 |
+
.footer .social-icons a:hover {
|
| 92 |
+
color: #4CAF50;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
}
|
| 94 |
|
| 95 |
+
.footer .copyright {
|
| 96 |
+
font-size: 14px;
|
| 97 |
+
margin-top: 10px;
|
| 98 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|