Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
@@ -1,92 +1,155 @@
|
|
1 |
-
/*
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
color: white;
|
5 |
-
padding: 20px;
|
6 |
text-align: center;
|
|
|
7 |
position: fixed;
|
8 |
-
width: 100%;
|
9 |
top: 0;
|
10 |
left: 0;
|
11 |
-
z-index:
|
12 |
}
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
font-family: Arial, sans-serif;
|
18 |
-
margin: 0;
|
19 |
-
padding-top: 80px; /* Memberikan ruang di bawah navbar */
|
20 |
}
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
max-width: 800px;
|
26 |
-
margin: 20px
|
27 |
padding: 20px;
|
28 |
border-radius: 10px;
|
29 |
-
box-shadow:
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
-
/* Tombol Swap dengan warna hijau tua */
|
34 |
button#swap-btn {
|
35 |
-
background-color: #
|
|
|
36 |
border: none;
|
37 |
padding: 12px;
|
38 |
-
color: white;
|
39 |
-
cursor: pointer;
|
40 |
font-size: 20px;
|
|
|
41 |
border-radius: 50%;
|
42 |
margin: 10px auto;
|
43 |
display: block;
|
44 |
-
width: 50px;
|
45 |
-
height: 50px;
|
46 |
-
}
|
47 |
-
|
48 |
-
button#swap-btn:hover {
|
49 |
-
background-color: #244d28; /* Hijau lebih gelap saat hover */
|
50 |
}
|
51 |
|
52 |
-
/* Bagian setelah tombol swap menggunakan latar belakang putih */
|
53 |
-
.form-container {
|
54 |
-
background-color: white; /* Putih untuk form */
|
55 |
-
padding: 20px;
|
56 |
-
border-radius: 10px;
|
57 |
-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
58 |
-
margin-top: 20px;
|
59 |
-
}
|
60 |
-
|
61 |
-
/* Tombol Convert tetap hijau */
|
62 |
button#convert-btn {
|
63 |
-
background-color: #
|
64 |
color: white;
|
65 |
padding: 15px;
|
66 |
-
font-size:
|
67 |
border: none;
|
68 |
border-radius: 8px;
|
69 |
cursor: pointer;
|
70 |
width: 100%;
|
|
|
|
|
|
|
|
|
71 |
margin-top: 20px;
|
72 |
}
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
83 |
margin-bottom: 20px;
|
84 |
}
|
85 |
|
86 |
-
/*
|
87 |
-
footer {
|
88 |
-
|
89 |
-
color: #
|
|
|
90 |
text-align: center;
|
91 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
|
|
1 |
+
/* General Reset */
|
2 |
+
body, h1, h2, p, input, select, button {
|
3 |
+
margin: 0;
|
4 |
+
padding: 0;
|
5 |
+
font-family: Arial, sans-serif;
|
6 |
+
}
|
7 |
+
|
8 |
+
body {
|
9 |
+
background-color: #1b5e20; /* Green background */
|
10 |
+
color: white;
|
11 |
+
display: flex;
|
12 |
+
flex-direction: column;
|
13 |
+
align-items: center;
|
14 |
+
min-height: 100vh;
|
15 |
+
padding: 0 20px;
|
16 |
+
}
|
17 |
+
|
18 |
+
/* Navbar */
|
19 |
+
.navbar {
|
20 |
+
width: 100%;
|
21 |
+
background-color: #1b5e20;
|
22 |
color: white;
|
|
|
23 |
text-align: center;
|
24 |
+
padding: 15px 0;
|
25 |
position: fixed;
|
|
|
26 |
top: 0;
|
27 |
left: 0;
|
28 |
+
z-index: 100;
|
29 |
}
|
30 |
|
31 |
+
.navbar .logo img {
|
32 |
+
height: 50px;
|
33 |
+
vertical-align: middle;
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
+
.navbar .welcome-text {
|
37 |
+
margin-top: 10px;
|
38 |
+
}
|
39 |
+
|
40 |
+
/* Headline */
|
41 |
+
.headline {
|
42 |
+
text-align: center;
|
43 |
+
margin-top: 80px; /* To avoid overlap with fixed navbar */
|
44 |
+
background-color: #1b5e20; /* Same green as navbar */
|
45 |
+
padding: 20px 0;
|
46 |
+
color: white;
|
47 |
+
}
|
48 |
+
|
49 |
+
.headline h1 {
|
50 |
+
font-size: 2em;
|
51 |
+
}
|
52 |
+
|
53 |
+
.headline p {
|
54 |
+
font-size: 1.2em;
|
55 |
+
}
|
56 |
+
|
57 |
+
/* Converter Content */
|
58 |
+
.converter-content {
|
59 |
+
background-color: white;
|
60 |
+
width: 100%;
|
61 |
max-width: 800px;
|
62 |
+
margin-top: 20px;
|
63 |
padding: 20px;
|
64 |
border-radius: 10px;
|
65 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
66 |
+
}
|
67 |
+
|
68 |
+
.currency-input {
|
69 |
+
margin-bottom: 20px;
|
70 |
+
}
|
71 |
+
|
72 |
+
.currency-input label {
|
73 |
+
display: block;
|
74 |
+
font-size: 1em;
|
75 |
+
margin-bottom: 5px;
|
76 |
+
}
|
77 |
+
|
78 |
+
.currency-input input, .currency-input select {
|
79 |
+
width: 100%;
|
80 |
+
padding: 12px;
|
81 |
+
font-size: 1em;
|
82 |
+
border-radius: 8px;
|
83 |
+
border: 1px solid #ddd;
|
84 |
+
background-color: #f5f5f5;
|
85 |
}
|
86 |
|
|
|
87 |
button#swap-btn {
|
88 |
+
background-color: #4CAF50;
|
89 |
+
color: white;
|
90 |
border: none;
|
91 |
padding: 12px;
|
|
|
|
|
92 |
font-size: 20px;
|
93 |
+
cursor: pointer;
|
94 |
border-radius: 50%;
|
95 |
margin: 10px auto;
|
96 |
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
button#convert-btn {
|
100 |
+
background-color: #4CAF50;
|
101 |
color: white;
|
102 |
padding: 15px;
|
103 |
+
font-size: 1em;
|
104 |
border: none;
|
105 |
border-radius: 8px;
|
106 |
cursor: pointer;
|
107 |
width: 100%;
|
108 |
+
}
|
109 |
+
|
110 |
+
#result {
|
111 |
+
text-align: center;
|
112 |
margin-top: 20px;
|
113 |
}
|
114 |
|
115 |
+
/* Instructions Section */
|
116 |
+
.instructions {
|
117 |
+
background-color: white;
|
118 |
+
padding: 20px;
|
119 |
+
width: 100%;
|
120 |
+
max-width: 800px;
|
121 |
+
margin-top: 30px;
|
122 |
+
border-radius: 10px;
|
123 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
124 |
}
|
125 |
|
126 |
+
.instructions-box {
|
127 |
+
background-color: #f5f5f5;
|
128 |
+
padding: 20px;
|
129 |
+
border-radius: 8px;
|
130 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
131 |
+
}
|
132 |
+
|
133 |
+
.instructions-box h2 {
|
134 |
+
text-align: center;
|
135 |
margin-bottom: 20px;
|
136 |
}
|
137 |
|
138 |
+
/* Footer */
|
139 |
+
.footer {
|
140 |
+
width: 100%;
|
141 |
+
background-color: #333;
|
142 |
+
color: white;
|
143 |
text-align: center;
|
144 |
+
padding: 15px 0;
|
145 |
+
margin-top: 40px;
|
146 |
+
}
|
147 |
+
|
148 |
+
.footer a {
|
149 |
+
color: #4CAF50;
|
150 |
+
text-decoration: none;
|
151 |
+
}
|
152 |
+
|
153 |
+
.footer a:hover {
|
154 |
+
text-decoration: underline;
|
155 |
}
|