GarGerry commited on
Commit
9232266
·
verified ·
1 Parent(s): 13dc079

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +48 -50
style.css CHANGED
@@ -1,11 +1,11 @@
1
  /* Body */
2
  body {
3
- font-family: 'Poppins', Arial, sans-serif; /* Font modern */
4
  margin: 0;
5
  padding: 0;
6
  box-sizing: border-box;
7
- overflow-x: hidden; /* Prevent horizontal scroll */
8
- background-color: white; /* Warna dasar putih */
9
  }
10
 
11
  /* Navbar */
@@ -14,14 +14,14 @@ body {
14
  top: 0;
15
  left: 0;
16
  width: 100%;
17
- background-color: #004d00; /* Hijau tua */
18
  color: white;
19
  padding: 10px 20px;
20
  display: flex;
21
  justify-content: space-between;
22
  align-items: center;
23
  z-index: 1000;
24
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
25
  }
26
 
27
  .navbar .logo img {
@@ -29,14 +29,14 @@ body {
29
  }
30
 
31
  .navbar .logo img:hover {
32
- transform: scale(1.1); /* Efek hover */
33
  transition: transform 0.3s ease;
34
  }
35
 
36
  /* Headline */
37
  .headline {
38
  text-align: center;
39
- background-color: #004d00; /* Hijau tua */
40
  color: white;
41
  padding: 60px 20px;
42
  margin-top: 50px;
@@ -53,12 +53,12 @@ body {
53
 
54
  /* Converter Content */
55
  .content {
56
- background-color: #004d00; /* Hijau tua */
57
  padding: 40px 20px;
58
  display: flex;
59
  justify-content: center;
60
  align-items: center;
61
- flex-direction: column; /* Menyusun elemen secara vertikal */
62
  }
63
 
64
  /* Container untuk semua elemen konversi */
@@ -70,15 +70,15 @@ body {
70
  max-width: 800px;
71
  padding: 30px;
72
  border-radius: 12px;
73
- background-color: white; /* Kontras putih */
74
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
75
  box-sizing: border-box;
76
  }
77
 
78
  /* Flexbox untuk bagian input Amount, From, Swap, dan To */
79
  .currency-box {
80
  display: flex;
81
- flex-direction: column; /* Menyusun input dan label secara vertikal */
82
  width: 100%;
83
  gap: 20px;
84
  }
@@ -86,7 +86,7 @@ body {
86
  /* Untuk input amount */
87
  .currency-box .amount {
88
  display: flex;
89
- justify-content: space-between; /* Menjaga jarak antar elemen */
90
  align-items: center;
91
  gap: 15px;
92
  width: 100%;
@@ -95,7 +95,7 @@ body {
95
  .currency-box label {
96
  font-weight: bold;
97
  font-size: 16px;
98
- color: #004d00; /* Hijau tua */
99
  margin-bottom: 5px;
100
  }
101
 
@@ -135,56 +135,48 @@ body {
135
 
136
  /* Swap Button */
137
  #swap-btn {
138
- background-color: #004d00; /* Hijau tua */
139
  color: white;
140
  cursor: pointer;
141
  border-radius: 50%;
142
  border: none;
143
- font-size: 20px;
144
- height: 50px;
145
- width: 50px;
146
  display: flex;
147
  justify-content: center;
148
  align-items: center;
149
  margin: 20px auto;
150
- transition: background-color 0.3s ease, transform 0.2s ease;
151
- }
152
-
153
- /* Tidak ada rotasi pada desktop */
154
- @media screen and (min-width: 769px) {
155
- #swap-btn {
156
- transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
157
- }
158
- }
159
-
160
- /* Rotasi tombol untuk tampilan mobile dan tablet */
161
- @media screen and (max-width: 768px) {
162
- #swap-btn {
163
- transform: rotate(90deg); /* Rotasi tombol swap supaya bisa terlihat seperti tombol tukar */
164
- width: 40px;
165
- height: 40px;
166
- margin: 0; /* Menghilangkan margin untuk posisi yang lebih tepat */
167
- }
168
  }
169
 
170
- /* Hover efek */
171
  #swap-btn:hover {
172
- background-color: #003300; /* Warna lebih gelap saat hover */
173
  transform: rotate(180deg);
 
174
  }
175
 
176
  /* Mode Mobile */
177
  @media screen and (max-width: 768px) {
178
  .currency-select {
179
- flex-direction: column; /* Menyusun dropdown dan tombol secara vertikal */
180
  justify-content: center;
181
  align-items: center;
182
- gap: 10px; /* Menambah jarak antar elemen */
 
 
 
 
 
 
 
183
  }
184
 
185
  .currency-group {
186
  display: flex;
187
- flex-direction: column; /* Menyusun label dan dropdown secara vertikal */
188
  align-items: center;
189
  }
190
  }
@@ -192,21 +184,27 @@ body {
192
  /* Mode Web dan Tablet */
193
  @media screen and (min-width: 769px) {
194
  .currency-select {
195
- flex-direction: row; /* Menyusun elemen secara horizontal */
196
  align-items: center;
197
- gap: 20px; /* Jarak antar elemen */
 
 
 
 
 
 
198
  }
199
 
200
  .currency-group {
201
  display: flex;
202
- flex-direction: column; /* Label dan dropdown disusun secara vertikal */
203
  align-items: center;
204
  }
205
  }
206
 
207
  /* Convert Button */
208
  #convert-btn {
209
- background-color: #004d00; /* Hijau tua */
210
  color: white;
211
  cursor: pointer;
212
  padding: 15px 30px;
@@ -218,8 +216,8 @@ body {
218
  }
219
 
220
  #convert-btn:hover {
221
- background-color: #003300; /* Hijau lebih gelap */
222
- transform: translateY(-2px); /* Sedikit naik */
223
  }
224
 
225
  /* How-to-Use Section */
@@ -234,7 +232,7 @@ body {
234
  .how-to-use h2 {
235
  font-weight: bold;
236
  margin-bottom: 20px;
237
- color: #004d00; /* Hijau tua */
238
  }
239
 
240
  .steps {
@@ -258,12 +256,12 @@ body {
258
 
259
  .step h3 {
260
  font-weight: bold;
261
- color: #004d00; /* Hijau tua */
262
  }
263
 
264
  /* Footer */
265
  .footer {
266
- background-color: #004d00; /* Hijau tua */
267
  color: white;
268
  padding: 20px 0;
269
  text-align: center;
 
1
  /* Body */
2
  body {
3
+ font-family: 'Roboto', Arial, sans-serif; /* Ganti font ke Roboto */
4
  margin: 0;
5
  padding: 0;
6
  box-sizing: border-box;
7
+ overflow-x: hidden;
8
+ background-color: white;
9
  }
10
 
11
  /* Navbar */
 
14
  top: 0;
15
  left: 0;
16
  width: 100%;
17
+ background-color: #004d00;
18
  color: white;
19
  padding: 10px 20px;
20
  display: flex;
21
  justify-content: space-between;
22
  align-items: center;
23
  z-index: 1000;
24
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
25
  }
26
 
27
  .navbar .logo img {
 
29
  }
30
 
31
  .navbar .logo img:hover {
32
+ transform: scale(1.1);
33
  transition: transform 0.3s ease;
34
  }
35
 
36
  /* Headline */
37
  .headline {
38
  text-align: center;
39
+ background-color: #004d00;
40
  color: white;
41
  padding: 60px 20px;
42
  margin-top: 50px;
 
53
 
54
  /* Converter Content */
55
  .content {
56
+ background-color: #004d00;
57
  padding: 40px 20px;
58
  display: flex;
59
  justify-content: center;
60
  align-items: center;
61
+ flex-direction: column;
62
  }
63
 
64
  /* Container untuk semua elemen konversi */
 
70
  max-width: 800px;
71
  padding: 30px;
72
  border-radius: 12px;
73
+ background-color: white;
74
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
75
  box-sizing: border-box;
76
  }
77
 
78
  /* Flexbox untuk bagian input Amount, From, Swap, dan To */
79
  .currency-box {
80
  display: flex;
81
+ flex-direction: column;
82
  width: 100%;
83
  gap: 20px;
84
  }
 
86
  /* Untuk input amount */
87
  .currency-box .amount {
88
  display: flex;
89
+ justify-content: space-between;
90
  align-items: center;
91
  gap: 15px;
92
  width: 100%;
 
95
  .currency-box label {
96
  font-weight: bold;
97
  font-size: 16px;
98
+ color: #004d00;
99
  margin-bottom: 5px;
100
  }
101
 
 
135
 
136
  /* Swap Button */
137
  #swap-btn {
138
+ background-color: #004d00;
139
  color: white;
140
  cursor: pointer;
141
  border-radius: 50%;
142
  border: none;
143
+ font-size: 24px; /* Lebih besar untuk web */
144
+ height: 60px; /* Ukuran lebih besar */
145
+ width: 60px; /* Ukuran lebih besar */
146
  display: flex;
147
  justify-content: center;
148
  align-items: center;
149
  margin: 20px auto;
150
+ transition: background-color 0.3s ease, transform 0.3s ease;
151
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
152
+ font-weight: bold;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  }
154
 
 
155
  #swap-btn:hover {
156
+ background-color: #003300;
157
  transform: rotate(180deg);
158
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Efek bayangan lebih kuat saat hover */
159
  }
160
 
161
  /* Mode Mobile */
162
  @media screen and (max-width: 768px) {
163
  .currency-select {
164
+ flex-direction: column;
165
  justify-content: center;
166
  align-items: center;
167
+ gap: 10px;
168
+ }
169
+
170
+ #swap-btn {
171
+ transform: rotate(90deg); /* Rotasi tombol swap */
172
+ width: 50px;
173
+ height: 50px;
174
+ margin: 0;
175
  }
176
 
177
  .currency-group {
178
  display: flex;
179
+ flex-direction: column;
180
  align-items: center;
181
  }
182
  }
 
184
  /* Mode Web dan Tablet */
185
  @media screen and (min-width: 769px) {
186
  .currency-select {
187
+ flex-direction: row;
188
  align-items: center;
189
+ gap: 20px;
190
+ }
191
+
192
+ #swap-btn {
193
+ transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
194
+ width: 60px; /* Ukuran lebih besar */
195
+ height: 60px; /* Ukuran lebih besar */
196
  }
197
 
198
  .currency-group {
199
  display: flex;
200
+ flex-direction: column;
201
  align-items: center;
202
  }
203
  }
204
 
205
  /* Convert Button */
206
  #convert-btn {
207
+ background-color: #004d00;
208
  color: white;
209
  cursor: pointer;
210
  padding: 15px 30px;
 
216
  }
217
 
218
  #convert-btn:hover {
219
+ background-color: #003300;
220
+ transform: translateY(-2px);
221
  }
222
 
223
  /* How-to-Use Section */
 
232
  .how-to-use h2 {
233
  font-weight: bold;
234
  margin-bottom: 20px;
235
+ color: #004d00;
236
  }
237
 
238
  .steps {
 
256
 
257
  .step h3 {
258
  font-weight: bold;
259
+ color: #004d00;
260
  }
261
 
262
  /* Footer */
263
  .footer {
264
+ background-color: #004d00;
265
  color: white;
266
  padding: 20px 0;
267
  text-align: center;