GarGerry commited on
Commit
8edf5f2
·
verified ·
1 Parent(s): ba06df7

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +58 -153
style.css CHANGED
@@ -1,55 +1,3 @@
1
- body {
2
- font-family: 'Poppins', Arial, sans-serif; /* Font modern */
3
- margin: 0;
4
- padding: 0;
5
- box-sizing: border-box;
6
- overflow-x: hidden; /* Prevent horizontal scroll */
7
- background-color: white; /* Warna dasar putih */
8
- }
9
-
10
- /* Navbar */
11
- .navbar {
12
- position: fixed;
13
- top: 0;
14
- left: 0;
15
- width: 100%;
16
- background-color: #004d00; /* Hijau tua */
17
- color: white;
18
- padding: 10px 20px;
19
- display: flex;
20
- justify-content: space-between;
21
- align-items: center;
22
- z-index: 1000;
23
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
24
- }
25
-
26
- .navbar .logo img {
27
- height: 40px;
28
- }
29
-
30
- .navbar .logo img:hover {
31
- transform: scale(1.1); /* Efek hover */
32
- transition: transform 0.3s ease;
33
- }
34
-
35
- /* Headline */
36
- .headline {
37
- text-align: center;
38
- background-color: #004d00; /* Hijau tua */
39
- color: white;
40
- padding: 60px 20px;
41
- margin-top: 50px;
42
- }
43
-
44
- .headline h1 {
45
- font-size: 36px;
46
- font-weight: bold;
47
- }
48
-
49
- .headline p {
50
- font-size: 18px;
51
- }
52
-
53
  /* Converter Content */
54
  .content {
55
  background-color: #004d00; /* Hijau tua */
@@ -57,8 +5,10 @@ body {
57
  display: flex;
58
  justify-content: center;
59
  align-items: center;
 
60
  }
61
 
 
62
  .converter-container {
63
  display: flex;
64
  flex-direction: column;
@@ -72,38 +22,62 @@ body {
72
  box-sizing: border-box;
73
  }
74
 
75
- /* Currency Input dan Select yang konsisten */
76
- .currency-box input,
77
- .currency-group select {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  padding: 15px;
79
  font-size: 16px;
80
- width: 100%; /* Pastikan input dan select memenuhi lebar container */
81
  border-radius: 8px;
82
  border: 1px solid #ccc;
83
  box-sizing: border-box;
84
- margin-bottom: 10px; /* Memberi ruang antara input dan elemen lainnya */
85
  }
86
 
87
- /* Konsistensi tampilan grup currency */
88
  .currency-select {
89
  display: flex;
90
- flex-direction: row;
91
  justify-content: space-between;
92
- align-items: flex-start;
93
  width: 100%;
94
  gap: 20px;
95
  margin: 20px 0;
96
- flex-wrap: wrap;
97
  }
98
 
99
- /* Penyesuaian grup currency */
100
  .currency-group {
101
  display: flex;
102
  flex-direction: column;
103
  align-items: center;
104
  width: 100%;
105
- max-width: 200px; /* Lebar maksimal untuk elemen select */
106
- margin-bottom: 20px; /* Menambahkan margin untuk spasi antar elemen */
 
 
 
 
 
 
107
  }
108
 
109
  /* Swap Button */
@@ -128,92 +102,12 @@ body {
128
  transform: rotate(180deg);
129
  }
130
 
131
- /* Convert Button */
132
- #convert-btn {
133
- background-color: #004d00; /* Hijau tua */
134
- color: white;
135
- cursor: pointer;
136
- padding: 15px 30px;
137
- font-size: 16px;
138
- border: none;
139
- border-radius: 8px;
140
- margin-top: 20px;
141
- transition: background-color 0.3s ease, transform 0.2s ease;
142
- }
143
-
144
- #convert-btn:hover {
145
- background-color: #003300; /* Hijau lebih gelap */
146
- transform: translateY(-2px); /* Sedikit naik */
147
- }
148
-
149
- /* How-to-Use Section */
150
- .how-to-use {
151
- background-color: white;
152
- color: black;
153
- padding: 40px 20px;
154
- margin-top: 20px;
155
- text-align: center;
156
- }
157
-
158
- .how-to-use h2 {
159
- font-weight: bold;
160
- margin-bottom: 20px;
161
- color: #004d00; /* Hijau tua */
162
- }
163
-
164
- .steps {
165
- display: grid;
166
- grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
167
- gap: 20px;
168
- }
169
-
170
- .step {
171
- background-color: #f0f0f0;
172
- padding: 20px;
173
- border-radius: 8px;
174
- text-align: center;
175
- transition: background-color 0.3s ease, transform 0.3s ease;
176
- }
177
-
178
- .step:hover {
179
- background-color: #e0e0e0;
180
- transform: translateY(-5px);
181
- }
182
-
183
- .step h3 {
184
- font-weight: bold;
185
- color: #004d00; /* Hijau tua */
186
- }
187
-
188
- /* Footer */
189
- .footer {
190
- background-color: #004d00; /* Hijau tua */
191
- color: white;
192
- padding: 20px 0;
193
- text-align: center;
194
- margin-top: 40px;
195
- border-top: 2px solid #003300;
196
- }
197
-
198
- .footer-content p {
199
- margin: 5px 0;
200
- }
201
-
202
- .footer-content a {
203
- color: white;
204
- text-decoration: none;
205
- margin: 0 10px;
206
- transition: color 0.3s ease;
207
- }
208
-
209
- .footer-content a:hover {
210
- color: #ccc;
211
- }
212
-
213
- /* Responsivitas */
214
  @media screen and (max-width: 768px) {
215
  .currency-select {
216
- flex-direction: column;
 
 
217
  gap: 10px; /* Menambah jarak antar elemen */
218
  }
219
 
@@ -225,18 +119,29 @@ body {
225
  }
226
 
227
  .currency-group {
228
- width: 100%; /* Agar select tampil penuh di layar kecil */
 
 
229
  }
230
  }
231
 
 
232
  @media screen and (min-width: 769px) {
233
  .currency-select {
234
- flex-direction: row;
235
- justify-content: space-between;
236
- gap: 20px;
 
 
 
 
 
 
237
  }
238
 
239
  .currency-group {
240
- width: 45%; /* Membatasi lebar grup agar tidak terlalu lebar */
 
 
241
  }
242
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /* Converter Content */
2
  .content {
3
  background-color: #004d00; /* Hijau tua */
 
5
  display: flex;
6
  justify-content: center;
7
  align-items: center;
8
+ flex-direction: column; /* Menyusun elemen secara vertikal */
9
  }
10
 
11
+ /* Container untuk semua elemen konversi */
12
  .converter-container {
13
  display: flex;
14
  flex-direction: column;
 
22
  box-sizing: border-box;
23
  }
24
 
25
+ /* Flexbox untuk bagian input Amount, From, Swap, dan To */
26
+ .currency-box {
27
+ display: flex;
28
+ flex-direction: column; /* Menyusun input dan label secara vertikal */
29
+ width: 100%;
30
+ gap: 20px;
31
+ }
32
+
33
+ /* Untuk input amount */
34
+ .currency-box .amount {
35
+ display: flex;
36
+ justify-content: space-between; /* Menjaga jarak antar elemen */
37
+ align-items: center;
38
+ gap: 15px;
39
+ width: 100%;
40
+ }
41
+
42
+ .currency-box label {
43
+ font-weight: bold;
44
+ font-size: 16px;
45
+ color: #004d00; /* Hijau tua */
46
+ margin-bottom: 5px;
47
+ }
48
+
49
+ .currency-box input {
50
  padding: 15px;
51
  font-size: 16px;
52
+ width: 100%;
53
  border-radius: 8px;
54
  border: 1px solid #ccc;
55
  box-sizing: border-box;
 
56
  }
57
 
58
+ /* Menyusun From, Swap, dan To secara horizontal */
59
  .currency-select {
60
  display: flex;
 
61
  justify-content: space-between;
62
+ align-items: center;
63
  width: 100%;
64
  gap: 20px;
65
  margin: 20px 0;
 
66
  }
67
 
 
68
  .currency-group {
69
  display: flex;
70
  flex-direction: column;
71
  align-items: center;
72
  width: 100%;
73
+ }
74
+
75
+ .currency-group select {
76
+ padding: 15px;
77
+ font-size: 16px;
78
+ width: 100%;
79
+ border-radius: 8px;
80
+ border: 1px solid #ccc;
81
  }
82
 
83
  /* Swap Button */
 
102
  transform: rotate(180deg);
103
  }
104
 
105
+ /* Mode Mobile */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  @media screen and (max-width: 768px) {
107
  .currency-select {
108
+ flex-direction: column; /* Menyusun dropdown dan tombol secara vertikal */
109
+ justify-content: center;
110
+ align-items: center;
111
  gap: 10px; /* Menambah jarak antar elemen */
112
  }
113
 
 
119
  }
120
 
121
  .currency-group {
122
+ display: flex;
123
+ flex-direction: column; /* Menyusun label dan dropdown secara vertikal */
124
+ align-items: center;
125
  }
126
  }
127
 
128
+ /* Mode Web dan Tablet */
129
  @media screen and (min-width: 769px) {
130
  .currency-select {
131
+ flex-direction: row; /* Menyusun elemen secara horizontal */
132
+ align-items: center;
133
+ gap: 20px; /* Jarak antar elemen */
134
+ }
135
+
136
+ #swap-btn {
137
+ transform: rotate(0deg); /* Pastikan tombol swap tetap horizontal */
138
+ width: 50px;
139
+ height: 50px;
140
  }
141
 
142
  .currency-group {
143
+ display: flex;
144
+ flex-direction: column; /* Label dan dropdown disusun secara vertikal */
145
+ align-items: center;
146
  }
147
  }