GarGerry commited on
Commit
063176f
·
verified ·
1 Parent(s): af437bf

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +70 -111
style.css CHANGED
@@ -6,142 +6,136 @@ body {
6
  background-color: #1b5e20; /* Hijau gelap */
7
  color: white;
8
  display: flex;
9
- justify-content: center;
10
- align-items: flex-start;
11
  height: 100vh;
12
  overflow-y: auto;
13
  }
14
 
15
- /* Container dengan bentuk melengkung */
16
- .container {
17
  width: 100%;
18
- max-width: 800px;
19
- background-color: #fafafa; /* Putih krem lembut */
20
- border-radius: 30px; /* Sudut melengkung */
21
- padding: 30px; /* Menambah padding untuk memberi ruang lebih */
22
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
23
- margin-top: 20px;
24
- min-height: 600px; /* Menambah tinggi minimum kontainer */
25
  }
26
 
27
- /* Styling untuk header */
28
- header {
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
- background-color: #4CAF50; /* Hijau navbar */
33
- padding: 10px;
34
  }
35
 
36
- header .logo img {
37
- width: 150px; /* Ukuran logo */
 
38
  }
39
 
40
- header h1 {
41
- margin-top: 10px;
42
- font-size: 32px;
43
- color: #4CAF50;
 
44
  }
45
 
46
- header p {
47
- color: #777;
48
- font-size: 16px;
 
 
 
 
49
  }
50
 
51
- /* Menambahkan Flexbox pada kontainer form untuk menyusun secara teratur */
52
- .currency-container {
53
- display: flex;
54
- flex-direction: column;
55
- gap: 20px;
56
  }
57
 
58
- /* Sejajarkan form elemen dengan ukuran lebar yang konsisten */
59
- .currency-input {
60
- display: flex;
61
- flex-direction: column;
 
 
62
  width: 100%;
 
 
 
 
 
 
63
  }
64
 
65
- /* Styling untuk label dan input */
66
  .currency-labels {
67
  display: flex;
68
  flex-direction: column;
69
- align-items: stretch;
70
  margin-bottom: 15px;
71
  }
72
 
73
  .currency-labels label {
74
  font-size: 16px;
75
  color: #333;
76
- display: block;
77
  }
78
 
79
- /* Kotak input dan select (dropdown) */
80
  input, select {
81
- padding: 15px;
82
- width: 100%;
83
- max-width: 100%;
84
- margin-bottom: 20px;
85
- border-radius: 8px;
86
  border: 1px solid #ddd;
87
- background-color: #f5f5f5;
88
- color: #333;
89
  }
90
 
91
- /* Tombol swap dengan model baru */
92
  button#swap-btn {
93
- background-color: #4CAF50; /* Hijau untuk tombol swap */
94
- border: none;
95
- padding: 12px;
96
  color: white;
97
- cursor: pointer;
98
  font-size: 20px;
99
  border-radius: 50%;
100
- margin: 10px auto;
101
- display: block;
102
  width: 50px;
103
  height: 50px;
 
 
104
  }
105
 
106
  button#swap-btn:hover {
107
  background-color: #45a049;
108
  }
109
 
110
- /* Styling dropdown agar lebih modern */
111
- select {
112
- -webkit-appearance: none;
113
- -moz-appearance: none;
114
- appearance: none;
115
- padding-right: 30px;
116
- background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-down-fill" viewBox="0 0 16 16%3E%3Cpath d="M3.646 5.646a.5.5 0 0 1 .708 0L8 9.293l3.646-3.647a.5.5 0 1 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E');
117
- background-position: right 10px center;
118
- background-repeat: no-repeat;
119
- background-size: 12px;
120
- }
121
-
122
  /* Tombol Convert */
123
  button#convert-btn {
124
  background-color: #4CAF50;
125
  color: white;
126
  padding: 15px;
127
  font-size: 16px;
 
128
  border: none;
129
- border-radius: 8px;
130
- cursor: pointer;
131
  width: 100%;
132
- margin-top: 20px;
133
  }
134
 
135
  button#convert-btn:hover {
136
  background-color: #45a049;
137
  }
138
 
139
- /* Styling footer */
140
- footer {
 
 
141
  text-align: center;
142
  margin-top: 20px;
 
 
 
 
 
 
 
 
143
  font-size: 0.9em;
144
- color: #777;
145
  }
146
 
147
  footer a {
@@ -153,25 +147,18 @@ footer a:hover {
153
  text-decoration: underline;
154
  }
155
 
156
- #result {
157
- margin-top: 20px;
158
- font-size: 1.5em;
159
- color: #333;
160
- text-align: center;
161
- }
162
-
163
- /* Responsif untuk layar kecil (mobile) */
164
  @media (max-width: 600px) {
165
- .container {
166
  width: 90%;
167
  padding: 15px;
168
  }
169
 
170
- header h1 {
171
  font-size: 24px;
172
  }
173
 
174
- header p {
175
  font-size: 14px;
176
  }
177
 
@@ -184,32 +171,4 @@ footer a:hover {
184
  width: 45px;
185
  height: 45px;
186
  }
187
- }
188
-
189
- /* Responsif untuk tablet */
190
- @media (min-width: 601px) and (max-width: 900px) {
191
- .container {
192
- width: 80%;
193
- padding: 20px;
194
- }
195
-
196
- header h1 {
197
- font-size: 28px;
198
- }
199
-
200
- input, select, button {
201
- padding: 14px;
202
- }
203
- }
204
-
205
- /* Responsif untuk desktop */
206
- @media (min-width: 901px) {
207
- .container {
208
- width: 70%;
209
- padding: 30px;
210
- }
211
-
212
- header h1 {
213
- font-size: 32px;
214
- }
215
  }
 
6
  background-color: #1b5e20; /* Hijau gelap */
7
  color: white;
8
  display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
  height: 100vh;
12
  overflow-y: auto;
13
  }
14
 
15
+ /* Navbar */
16
+ .navbar {
17
  width: 100%;
18
+ background-color: #2e7d32; /* Hijau tua */
19
+ color: white;
20
+ text-align: center;
21
+ padding: 15px;
 
 
 
22
  }
23
 
24
+ .navbar .logo img {
25
+ width: 50px; /* Sesuaikan ukuran logo */
26
+ vertical-align: middle;
 
 
 
 
27
  }
28
 
29
+ .navbar p {
30
+ display: inline-block;
31
+ margin-left: 10px;
32
  }
33
 
34
+ /* Garis pembatas */
35
+ hr {
36
+ width: 90%;
37
+ margin-top: 0;
38
+ border: 1px solid #ddd;
39
  }
40
 
41
+ /* Headline */
42
+ .headline {
43
+ width: 100%;
44
+ background-color: #2e7d32; /* Hijau tua */
45
+ color: white;
46
+ text-align: center;
47
+ padding: 40px 20px;
48
  }
49
 
50
+ .headline h1 {
51
+ font-size: 32px;
 
 
 
52
  }
53
 
54
+ .headline p {
55
+ font-size: 18px;
56
+ }
57
+
58
+ /* Content (Converter) */
59
+ .content {
60
  width: 100%;
61
+ max-width: 800px;
62
+ background-color: white;
63
+ padding: 20px;
64
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
65
+ border-radius: 10px;
66
+ margin-top: 20px;
67
  }
68
 
69
+ /* Currency input and select styling */
70
  .currency-labels {
71
  display: flex;
72
  flex-direction: column;
 
73
  margin-bottom: 15px;
74
  }
75
 
76
  .currency-labels label {
77
  font-size: 16px;
78
  color: #333;
 
79
  }
80
 
 
81
  input, select {
82
+ padding: 12px;
83
+ font-size: 16px;
84
+ margin-top: 5px;
85
+ border-radius: 5px;
 
86
  border: 1px solid #ddd;
 
 
87
  }
88
 
89
+ /* Tombol Swap */
90
  button#swap-btn {
91
+ background-color: #4CAF50;
 
 
92
  color: white;
93
+ padding: 12px;
94
  font-size: 20px;
95
  border-radius: 50%;
96
+ border: none;
 
97
  width: 50px;
98
  height: 50px;
99
+ margin: 20px auto;
100
+ display: block;
101
  }
102
 
103
  button#swap-btn:hover {
104
  background-color: #45a049;
105
  }
106
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  /* Tombol Convert */
108
  button#convert-btn {
109
  background-color: #4CAF50;
110
  color: white;
111
  padding: 15px;
112
  font-size: 16px;
113
+ border-radius: 5px;
114
  border: none;
 
 
115
  width: 100%;
116
+ cursor: pointer;
117
  }
118
 
119
  button#convert-btn:hover {
120
  background-color: #45a049;
121
  }
122
 
123
+ /* Result */
124
+ #result {
125
+ font-size: 1.5em;
126
+ color: #333;
127
  text-align: center;
128
  margin-top: 20px;
129
+ }
130
+
131
+ /* Footer */
132
+ footer {
133
+ width: 100%;
134
+ background-color: #eeeeee;
135
+ padding: 20px;
136
+ text-align: center;
137
  font-size: 0.9em;
138
+ color: #333;
139
  }
140
 
141
  footer a {
 
147
  text-decoration: underline;
148
  }
149
 
150
+ /* Responsif untuk layar kecil */
 
 
 
 
 
 
 
151
  @media (max-width: 600px) {
152
+ .content {
153
  width: 90%;
154
  padding: 15px;
155
  }
156
 
157
+ .headline h1 {
158
  font-size: 24px;
159
  }
160
 
161
+ .headline p {
162
  font-size: 14px;
163
  }
164
 
 
171
  width: 45px;
172
  height: 45px;
173
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  }