GarGerry commited on
Commit
e2724f3
·
verified ·
1 Parent(s): 4ed7334

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +70 -180
style.css CHANGED
@@ -1,208 +1,98 @@
1
- /* Styling dasar untuk body */
2
- body {
3
- font-family: Arial, sans-serif;
4
- margin: 0;
5
- padding: 0;
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
- text-align: center;
30
- margin-bottom: 20px;
 
 
31
  }
32
 
33
- header h1 {
34
- font-size: 32px;
35
- color: #4CAF50; /* Hijau untuk header */
36
- margin: 10px 0;
 
 
 
 
37
  }
38
 
39
- header p {
40
- color: #777;
41
- font-size: 16px;
 
 
 
 
 
42
  }
43
 
44
- /* Menambahkan Flexbox pada kontainer form untuk menyusun secara teratur */
45
- .currency-container {
46
- display: flex;
47
- flex-direction: column;
48
- gap: 20px;
49
  }
50
 
51
- /* Sejajarkan form elemen dengan ukuran lebar yang konsisten */
52
- .currency-input {
53
- display: flex;
54
- flex-direction: column;
55
- width: 100%;
56
  }
57
 
58
- /* Styling untuk label dan input */
59
- .currency-labels {
60
- display: flex;
61
- flex-direction: column;
62
- align-items: stretch;
63
- margin-bottom: 15px;
 
 
64
  }
65
 
66
- .currency-labels label {
67
- font-size: 16px;
68
- color: #333;
69
- display: block;
70
  }
71
 
72
- /* Kotak input dan select (dropdown) */
73
- input, select {
74
- padding: 15px;
75
- width: 100%;
76
- max-width: 100%;
77
- margin-bottom: 20px;
78
- border-radius: 8px;
79
- border: 1px solid #ddd;
80
- background-color: #f5f5f5;
81
- color: #333;
82
  }
83
 
84
- /* Tombol swap dengan model baru */
85
- button#swap-btn {
86
- background-color: #4CAF50; /* Hijau untuk tombol swap */
87
- border: none;
88
- padding: 12px;
89
- color: white;
90
- cursor: pointer;
91
- font-size: 20px;
92
- border-radius: 50%;
93
- margin: 10px auto;
94
- display: block;
95
- width: 50px;
96
- height: 50px;
97
  }
98
 
99
- button#swap-btn:hover {
100
- background-color: #45a049;
101
  }
102
 
103
- /* Styling dropdown agar lebih modern */
104
- select {
105
- -webkit-appearance: none;
106
- -moz-appearance: none;
107
- appearance: none;
108
- padding-right: 30px;
109
- 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');
110
- background-position: right 10px center;
111
- background-repeat: no-repeat;
112
- background-size: 12px;
113
  }
114
 
115
- /* Tombol Convert */
116
- button#convert-btn {
117
- background-color: #4CAF50;
118
- color: white;
119
- padding: 15px;
120
- font-size: 16px;
121
- border: none;
122
- border-radius: 8px;
123
- cursor: pointer;
124
- width: 100%;
125
- margin-top: 20px;
126
  }
127
 
128
- button#convert-btn:hover {
129
- background-color: #45a049;
130
- }
131
-
132
- /* Styling footer */
133
- footer {
134
- text-align: center;
135
- margin-top: 20px;
136
- font-size: 0.9em;
137
- color: #777;
138
- }
139
-
140
- footer a {
141
- color: #4CAF50;
142
- text-decoration: none;
143
- }
144
-
145
- footer a:hover {
146
- text-decoration: underline;
147
- }
148
-
149
- #result {
150
- margin-top: 20px;
151
- font-size: 1.5em;
152
- color: #333;
153
- text-align: center;
154
- }
155
-
156
- /* Responsif untuk layar kecil (mobile) */
157
- @media (max-width: 600px) {
158
- .container {
159
- width: 90%;
160
- padding: 15px;
161
- }
162
-
163
- header h1 {
164
- font-size: 24px;
165
- }
166
-
167
- header p {
168
- font-size: 14px;
169
- }
170
-
171
- input, select, button {
172
- padding: 12px;
173
- font-size: 14px;
174
- }
175
-
176
- button#swap-btn {
177
- width: 45px;
178
- height: 45px;
179
- }
180
- }
181
-
182
- /* Responsif untuk tablet */
183
- @media (min-width: 601px) and (max-width: 900px) {
184
- .container {
185
- width: 80%;
186
- padding: 20px;
187
- }
188
-
189
- header h1 {
190
- font-size: 28px;
191
- }
192
-
193
- input, select, button {
194
- padding: 14px;
195
- }
196
- }
197
-
198
- /* Responsif untuk desktop */
199
- @media (min-width: 901px) {
200
- .container {
201
- width: 70%;
202
- padding: 30px;
203
- }
204
-
205
- header h1 {
206
- font-size: 32px;
207
- }
208
- }
 
1
+ /* Styling untuk Navbar */
2
+ .navbar {
3
+ background-color: #4CAF50; /* Warna hijau untuk navbar */
4
+ padding: 10px 20px;
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
 
 
 
 
 
8
  }
9
 
10
+ .navbar .logo {
11
+ width: 100px; /* Sesuaikan ukuran logo */
 
 
 
 
 
 
 
 
12
  }
13
 
14
+ /* Styling untuk Headline */
15
+ .headline {
16
+ background-color: #4CAF50; /* Warna hijau untuk headline */
17
+ color: white;
18
+ padding: 40px;
19
+ text-align: center;
20
  }
21
 
22
+ /* Styling untuk Konten Utama */
23
+ .content-area {
24
+ background-color: white; /* Latar belakang putih untuk konten */
25
+ padding: 20px;
26
+ border-radius: 10px;
27
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
28
+ max-width: 800px;
29
+ margin: 40px auto;
30
  }
31
 
32
+ .content-area input,
33
+ .content-area select,
34
+ .content-area button {
35
+ padding: 10px;
36
+ margin: 10px 0;
37
+ width: 100%;
38
+ border: 1px solid #ddd;
39
+ border-radius: 5px;
40
  }
41
 
42
+ .content-area button {
43
+ background-color: #4CAF50;
44
+ color: white;
45
+ cursor: pointer;
 
46
  }
47
 
48
+ .content-area button:hover {
49
+ background-color: #45a049;
 
 
 
50
  }
51
 
52
+ /* Styling untuk Box Informasi */
53
+ .info-box {
54
+ background-color: white;
55
+ border: 1px solid #ddd;
56
+ padding: 20px;
57
+ margin: 20px 0;
58
+ border-radius: 8px;
59
+ box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
60
  }
61
 
62
+ .info-box h2 {
63
+ color: #333;
64
+ margin-bottom: 10px;
 
65
  }
66
 
67
+ .info-box p {
68
+ color: #555;
69
+ line-height: 1.6;
 
 
 
 
 
 
 
70
  }
71
 
72
+ /* Styling untuk Footer */
73
+ .footer {
74
+ background-color: #333; /* Latar belakang footer */
75
+ color: white;
76
+ padding: 20px 0;
77
+ text-align: center;
 
 
 
 
 
 
 
78
  }
79
 
80
+ .footer .social-icons {
81
+ margin: 20px 0;
82
  }
83
 
84
+ .footer .social-icons a {
85
+ color: white;
86
+ font-size: 24px;
87
+ margin: 0 10px;
88
+ text-decoration: none;
 
 
 
 
 
89
  }
90
 
91
+ .footer .social-icons a:hover {
92
+ color: #4CAF50;
 
 
 
 
 
 
 
 
 
93
  }
94
 
95
+ .footer .copyright {
96
+ font-size: 14px;
97
+ margin-top: 10px;
98
+ }