Update style.css
Browse files
style.css
CHANGED
@@ -1,36 +1,44 @@
|
|
1 |
body {
|
2 |
-
font-family: Arial, sans-serif;
|
3 |
margin: 0;
|
4 |
padding: 0;
|
5 |
box-sizing: border-box;
|
6 |
overflow-x: hidden; /* Prevent horizontal scroll */
|
7 |
-
background-color:
|
8 |
-
background-color: white;
|
9 |
}
|
10 |
|
11 |
-
|
12 |
.navbar {
|
13 |
position: fixed;
|
14 |
top: 0;
|
15 |
left: 0;
|
16 |
width: 100%;
|
17 |
-
background-color: #
|
|
|
18 |
padding: 10px 20px;
|
19 |
display: flex;
|
20 |
-
justify-content:
|
21 |
align-items: center;
|
|
|
|
|
22 |
}
|
23 |
|
24 |
.navbar .logo img {
|
25 |
height: 40px;
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
.headline {
|
29 |
text-align: center;
|
30 |
-
background-color: #004d00; /*
|
31 |
color: white;
|
32 |
-
padding:
|
33 |
-
margin-top:
|
34 |
}
|
35 |
|
36 |
.headline h1 {
|
@@ -42,10 +50,10 @@ body {
|
|
42 |
font-size: 18px;
|
43 |
}
|
44 |
|
|
|
45 |
.content {
|
46 |
-
background-color: #004d00; /*
|
47 |
padding: 40px 20px;
|
48 |
-
margin-top: 0px;
|
49 |
display: flex;
|
50 |
justify-content: center;
|
51 |
align-items: center;
|
@@ -57,30 +65,22 @@ body {
|
|
57 |
align-items: center;
|
58 |
width: 100%;
|
59 |
max-width: 800px;
|
60 |
-
margin: 0 auto;
|
61 |
padding: 30px;
|
62 |
-
border-radius:
|
63 |
-
|
64 |
-
|
65 |
box-sizing: border-box;
|
66 |
}
|
67 |
|
68 |
-
.currency-box {
|
69 |
-
margin: 10px 0;
|
70 |
-
width: 100%;
|
71 |
-
display: flex;
|
72 |
-
flex-direction: column;
|
73 |
-
align-items: flex-start; /* Align left */
|
74 |
-
}
|
75 |
-
|
76 |
.currency-box label {
|
77 |
font-weight: bold;
|
78 |
font-size: 16px;
|
79 |
margin-bottom: 5px;
|
|
|
80 |
}
|
81 |
|
82 |
.currency-box input {
|
83 |
-
padding:
|
84 |
font-size: 16px;
|
85 |
width: 100%;
|
86 |
border-radius: 8px;
|
@@ -92,163 +92,127 @@ body {
|
|
92 |
display: flex;
|
93 |
justify-content: space-between;
|
94 |
align-items: flex-start;
|
95 |
-
gap: 20; /* Tambahkan jarak antar elemen */
|
96 |
width: 100%;
|
|
|
97 |
margin: 20px 0;
|
98 |
-
flex-wrap: ;
|
99 |
-
}
|
100 |
-
|
101 |
-
.currency-group {
|
102 |
-
display: flex;
|
103 |
-
flex-direction: column;
|
104 |
-
flex-grow: 1;
|
105 |
-
width : 100%;
|
106 |
-
/* Lebar maksimum untuk dropdown */
|
107 |
}
|
108 |
|
109 |
.currency-group label {
|
110 |
font-weight: bold;
|
111 |
font-size: 16px;
|
112 |
margin-bottom: 5px;
|
|
|
113 |
}
|
114 |
|
115 |
.currency-group select {
|
116 |
-
padding:
|
117 |
font-size: 16px;
|
118 |
width: 100%;
|
119 |
border-radius: 8px;
|
120 |
border: 1px solid #ccc;
|
121 |
-
box-sizing: border-box;
|
122 |
}
|
123 |
|
|
|
124 |
#swap-btn {
|
125 |
-
background-color: #
|
126 |
color: white;
|
127 |
cursor: pointer;
|
128 |
-
border-radius:
|
129 |
border: none;
|
130 |
-
font-size:
|
131 |
-
margin: 30px;
|
132 |
height: 50px;
|
133 |
width: 50px;
|
134 |
-
display:
|
135 |
justify-content: center;
|
136 |
align-items: center;
|
137 |
-
|
138 |
-
|
139 |
-
/* Mode Mobile */
|
140 |
-
@media screen and (max-width: 768px) {
|
141 |
-
.currency-select {
|
142 |
-
flex-direction: column; /* Ubah jadi vertikal */
|
143 |
-
align-items: center;
|
144 |
-
}
|
145 |
-
|
146 |
-
#swap-btn {
|
147 |
-
transform: rotate(180deg); /* Rotate arrow to vertical */
|
148 |
-
width: 50px; /* Ensure button size stays the same */
|
149 |
-
height: 50px;
|
150 |
-
}
|
151 |
-
|
152 |
-
.currency-group select,
|
153 |
-
.currency-box input {
|
154 |
-
width: 100%; /* Sesuaikan lebar dropdown dan input untuk mobile */
|
155 |
-
}
|
156 |
-
}
|
157 |
-
|
158 |
-
/* Mode Web */
|
159 |
-
@media screen and (min-width: 769px) {
|
160 |
-
.currency-select {
|
161 |
-
flex-direction: row; /* Horizontal untuk mode web */
|
162 |
-
align-items: center;
|
163 |
-
}
|
164 |
-
|
165 |
-
#swap-btn {
|
166 |
-
transform: rotate(90deg); /* Keep arrow horizontal */
|
167 |
-
width: 50px;
|
168 |
-
height: 50px;
|
169 |
-
}
|
170 |
-
|
171 |
-
.currency-group select {
|
172 |
-
width: auto; /* Sesuaikan lebar dropdown untuk web */
|
173 |
-
}
|
174 |
-
|
175 |
-
.currency-box input {
|
176 |
-
/* Sesuaikan lebar input untuk web */
|
177 |
-
}
|
178 |
}
|
179 |
|
180 |
#swap-btn:hover {
|
181 |
-
background-color: #
|
|
|
182 |
}
|
183 |
|
|
|
184 |
#convert-btn {
|
185 |
-
background-color: #
|
186 |
color: white;
|
187 |
cursor: pointer;
|
188 |
padding: 15px 30px;
|
189 |
font-size: 16px;
|
190 |
border: none;
|
191 |
border-radius: 8px;
|
192 |
-
|
193 |
-
|
194 |
}
|
195 |
|
196 |
#convert-btn:hover {
|
197 |
-
background-color: #
|
198 |
-
|
199 |
-
|
200 |
-
#result {
|
201 |
-
font-size: 18px;
|
202 |
-
margin-top: 20px;
|
203 |
}
|
204 |
|
|
|
205 |
.how-to-use {
|
206 |
background-color: white;
|
207 |
color: black;
|
208 |
-
padding:
|
209 |
margin-top: 20px;
|
210 |
text-align: center;
|
211 |
-
display: flex;
|
212 |
-
justify-content: center;
|
213 |
-
flex-direction: column;
|
214 |
}
|
215 |
|
216 |
.how-to-use h2 {
|
217 |
font-weight: bold;
|
218 |
margin-bottom: 20px;
|
|
|
219 |
}
|
220 |
|
221 |
.steps {
|
222 |
-
display:
|
223 |
-
|
224 |
-
|
225 |
-
margin-top: 20px;
|
226 |
-
flex-wrap: wrap;
|
227 |
-
gap: 20px; /* Tambahkan jarak antar kotak */
|
228 |
}
|
229 |
|
230 |
.step {
|
231 |
-
background-color: #
|
232 |
padding: 20px;
|
233 |
-
margin: 10px;
|
234 |
-
flex: 1 1 300px; /* Ukuran fleksibel dengan lebar minimum */
|
235 |
border-radius: 8px;
|
236 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
}
|
238 |
|
239 |
.step h3 {
|
240 |
font-weight: bold;
|
|
|
241 |
}
|
242 |
|
|
|
243 |
.footer {
|
244 |
-
background-color: #
|
245 |
color: white;
|
246 |
padding: 20px 0;
|
247 |
text-align: center;
|
248 |
margin-top: 40px;
|
249 |
-
border-top:
|
250 |
}
|
251 |
|
252 |
.footer-content p {
|
253 |
margin: 5px 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
}
|
|
|
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 {
|
|
|
50 |
font-size: 18px;
|
51 |
}
|
52 |
|
53 |
+
/* Converter Content */
|
54 |
.content {
|
55 |
+
background-color: #004d00; /* Hijau tua */
|
56 |
padding: 40px 20px;
|
|
|
57 |
display: flex;
|
58 |
justify-content: center;
|
59 |
align-items: center;
|
|
|
65 |
align-items: center;
|
66 |
width: 100%;
|
67 |
max-width: 800px;
|
|
|
68 |
padding: 30px;
|
69 |
+
border-radius: 12px;
|
70 |
+
background-color: white; /* Kontras putih */
|
71 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan ringan */
|
72 |
box-sizing: border-box;
|
73 |
}
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
.currency-box label {
|
76 |
font-weight: bold;
|
77 |
font-size: 16px;
|
78 |
margin-bottom: 5px;
|
79 |
+
color: #004d00; /* Hijau tua */
|
80 |
}
|
81 |
|
82 |
.currency-box input {
|
83 |
+
padding: 15px;
|
84 |
font-size: 16px;
|
85 |
width: 100%;
|
86 |
border-radius: 8px;
|
|
|
92 |
display: flex;
|
93 |
justify-content: space-between;
|
94 |
align-items: flex-start;
|
|
|
95 |
width: 100%;
|
96 |
+
gap: 20px;
|
97 |
margin: 20px 0;
|
98 |
+
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
|
101 |
.currency-group label {
|
102 |
font-weight: bold;
|
103 |
font-size: 16px;
|
104 |
margin-bottom: 5px;
|
105 |
+
color: #004d00; /* Hijau tua */
|
106 |
}
|
107 |
|
108 |
.currency-group select {
|
109 |
+
padding: 15px;
|
110 |
font-size: 16px;
|
111 |
width: 100%;
|
112 |
border-radius: 8px;
|
113 |
border: 1px solid #ccc;
|
|
|
114 |
}
|
115 |
|
116 |
+
/* Swap Button */
|
117 |
#swap-btn {
|
118 |
+
background-color: #004d00; /* Hijau tua */
|
119 |
color: white;
|
120 |
cursor: pointer;
|
121 |
+
border-radius: 50%;
|
122 |
border: none;
|
123 |
+
font-size: 20px;
|
|
|
124 |
height: 50px;
|
125 |
width: 50px;
|
126 |
+
display: flex;
|
127 |
justify-content: center;
|
128 |
align-items: center;
|
129 |
+
margin: 20px auto;
|
130 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
|
133 |
#swap-btn:hover {
|
134 |
+
background-color: #003300; /* Warna lebih gelap saat hover */
|
135 |
+
transform: rotate(180deg);
|
136 |
}
|
137 |
|
138 |
+
/* Convert Button */
|
139 |
#convert-btn {
|
140 |
+
background-color: #004d00; /* Hijau tua */
|
141 |
color: white;
|
142 |
cursor: pointer;
|
143 |
padding: 15px 30px;
|
144 |
font-size: 16px;
|
145 |
border: none;
|
146 |
border-radius: 8px;
|
147 |
+
margin-top: 20px;
|
148 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
149 |
}
|
150 |
|
151 |
#convert-btn:hover {
|
152 |
+
background-color: #003300; /* Hijau lebih gelap */
|
153 |
+
transform: translateY(-2px); /* Sedikit naik */
|
|
|
|
|
|
|
|
|
154 |
}
|
155 |
|
156 |
+
/* How-to-Use Section */
|
157 |
.how-to-use {
|
158 |
background-color: white;
|
159 |
color: black;
|
160 |
+
padding: 40px 20px;
|
161 |
margin-top: 20px;
|
162 |
text-align: center;
|
|
|
|
|
|
|
163 |
}
|
164 |
|
165 |
.how-to-use h2 {
|
166 |
font-weight: bold;
|
167 |
margin-bottom: 20px;
|
168 |
+
color: #004d00; /* Hijau tua */
|
169 |
}
|
170 |
|
171 |
.steps {
|
172 |
+
display: grid;
|
173 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
174 |
+
gap: 20px;
|
|
|
|
|
|
|
175 |
}
|
176 |
|
177 |
.step {
|
178 |
+
background-color: #f0f0f0;
|
179 |
padding: 20px;
|
|
|
|
|
180 |
border-radius: 8px;
|
181 |
text-align: center;
|
182 |
+
transition: background-color 0.3s ease, transform 0.3s ease;
|
183 |
+
}
|
184 |
+
|
185 |
+
.step:hover {
|
186 |
+
background-color: #e0e0e0;
|
187 |
+
transform: translateY(-5px);
|
188 |
}
|
189 |
|
190 |
.step h3 {
|
191 |
font-weight: bold;
|
192 |
+
color: #004d00; /* Hijau tua */
|
193 |
}
|
194 |
|
195 |
+
/* Footer */
|
196 |
.footer {
|
197 |
+
background-color: #004d00; /* Hijau tua */
|
198 |
color: white;
|
199 |
padding: 20px 0;
|
200 |
text-align: center;
|
201 |
margin-top: 40px;
|
202 |
+
border-top: 2px solid #003300;
|
203 |
}
|
204 |
|
205 |
.footer-content p {
|
206 |
margin: 5px 0;
|
207 |
+
}
|
208 |
+
|
209 |
+
.footer-content a {
|
210 |
+
color: white;
|
211 |
+
text-decoration: none;
|
212 |
+
margin: 0 10px;
|
213 |
+
transition: color 0.3s ease;
|
214 |
+
}
|
215 |
+
|
216 |
+
.footer-content a:hover {
|
217 |
+
color: #ccc;
|
218 |
}
|