Spaces:
Running
Running
File size: 5,291 Bytes
ed934c8 f9a6b06 2d284c0 ed934c8 2d284c0 f9a6b06 ed934c8 f9a6b06 2d284c0 ed934c8 2d284c0 ed934c8 2d284c0 ed934c8 7a4fadb 2d284c0 e7cd247 2d284c0 f9a6b06 2d284c0 f9a6b06 2d284c0 f9a6b06 2d284c0 f9a6b06 2d284c0 e7cd247 2d284c0 e7cd247 2d284c0 f9a6b06 2d284c0 f9a6b06 2d284c0 e7cd247 2d284c0 e7cd247 2d284c0 e7cd247 2d284c0 |
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 |
/* General Reset */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #155724; /* Hijau gelap */
color: #333;
display: flex;
justify-content: center;
align-items: flex-start;
height: 100vh;
overflow-y: auto;
}
/* Container */
.container {
max-width: 800px;
margin: 50px auto;
background-color: #ffffff; /* Kontainer putih lembut */
border-radius: 30px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
min-height: 600px;
}
/* Header */
.header {
text-align: left;
display: flex;
align-items: center;
padding: 10px;
}
.header img {
width: 40px;
height: 40px;
margin-right: 10px;
}
.header h1 {
font-size: 1.8rem;
color: #28a745; /* Hijau terang */
margin: 0;
}
/* Sub-header */
.sub-header {
font-size: 0.9rem;
color: #6c757d;
margin-bottom: 20px;
}
/* Input Fields */
label {
font-size: 0.9rem;
font-weight: bold;
display: block;
margin: 10px 0 5px;
color: #155724;
}
input[type="text"], select {
width: 90%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #28a745; /* Hijau terang */
border-radius: 5px;
font-size: 1rem;
}
/* Dropdown Modern */
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140"><polygon points="70,90 90,50 50,50" fill="%2328a745"/></svg>') no-repeat right 10px center/12px;
}
/* Swap Button */
.swap-button {
width: 50px;
height: 50px;
background-color: #28a745;
border: none;
border-radius: 50%;
margin: 15px auto;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.swap-button:hover {
background-color: #218838;
}
.swap-button svg {
fill: #ffffff;
width: 20px;
height: 20px;
}
/* Convert Button */
.convert-button {
width: 90%;
padding: 10px;
background-color: #28a745;
color: white;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
}
.convert-button:hover {
background-color: #218838;
}
/* Footer */
.footer {
margin-top: 20px;
font-size: 0.8rem;
color: #6c757d;
}
.footer a {
color: #28a745;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
/* Styling untuk header */
header {
text-align: center;
margin-bottom: 20px;
}
header h1 {
font-size: 32px;
color: #4CAF50; /* Hijau untuk header */
margin: 10px 0;
}
header p {
color: #777;
font-size: 16px;
}
/* Menambahkan Flexbox pada kontainer form untuk menyusun secara teratur */
.currency-container {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Sejajarkan form elemen dengan ukuran lebar yang konsisten */
.currency-input {
display: flex;
flex-direction: column;
width: 100%;
}
/* Styling untuk label dan input */
.currency-labels {
display: flex;
flex-direction: column;
align-items: stretch;
margin-bottom: 15px;
}
.currency-labels label {
font-size: 16px;
color: #333;
display: block;
}
/* Kotak input dan select (dropdown) */
input, select {
padding: 15px;
width: 100%;
max-width: 100%;
margin-bottom: 20px;
border-radius: 8px;
border: 1px solid #ddd;
background-color: #f5f5f5;
color: #333;
}
/* Tombol swap dengan model baru */
button#swap-btn {
background-color: #4CAF50; /* Hijau untuk tombol swap */
border: none;
padding: 12px;
color: white;
cursor: pointer;
font-size: 20px;
border-radius: 50%;
margin: 10px auto;
display: block;
width: 50px;
height: 50px;
}
button#swap-btn:hover {
background-color: #45a049;
}
/* Styling dropdown agar lebih modern */
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding-right: 30px;
background-position: right 10px center;
background-repeat: no-repeat;
background-size: 12px;
}
/* Tombol Convert */
button#convert-btn {
background-color: #4CAF50;
color: white;
padding: 15px;
font-size: 16px;
border: none;
border-radius: 8px;
cursor: pointer;
width: 100%;
margin-top: 20px;
}
button#convert-btn:hover {
background-color: #45a049;
}
/* Responsif untuk layar kecil (mobile) */
@media (max-width: 600px) {
.container {
width: 90%;
padding: 15px;
}
header h1 {
font-size: 24px;
}
header p {
font-size: 14px;
}
input, select, button {
padding: 12px;
font-size: 14px;
}
button#swap-btn {
width: 45px;
height: 45px;
}
}
/* Responsif untuk tablet */
@media (min-width: 601px) and (max-width: 900px) {
.container {
width: 80%;
padding: 20px;
}
header h1 {
font-size: 28px;
}
input, select, button {
padding: 14px;
}
}
/* Responsif untuk desktop */
@media (min-width: 901px) {
.container {
width: 70%;
padding: 30px;
}
header h1 {
font-size: 32px;
}
}
|