GarGerry commited on
Commit
c7c0165
·
verified ·
1 Parent(s): 7237c02

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +61 -46
style.css CHANGED
@@ -1,41 +1,23 @@
 
1
  * {
2
  margin: 0;
3
  padding: 0;
4
  box-sizing: border-box;
5
  }
6
 
 
7
  body {
8
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
9
  background: linear-gradient(135deg, #F3F4F9, #C9D6E3);
10
  display: flex;
11
- flex-direction: column;
12
- justify-content: flex-start;
13
  align-items: center;
14
- min-height: 100vh;
15
  color: #333;
16
  position: relative;
17
- padding-top: 40px;
18
- }
19
-
20
- header {
21
- width: 100%;
22
- text-align: center;
23
- padding: 20px;
24
- background-color: #ffffff;
25
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
26
- position: absolute;
27
- top: 0;
28
- left: 0;
29
- z-index: 100;
30
- border-bottom: 2px solid black; /* Garis batas bawah hitam untuk header */
31
- }
32
-
33
- header h1 {
34
- font-size: 2rem;
35
- color: #2D3A3A;
36
- font-weight: 600;
37
  }
38
 
 
39
  .container {
40
  background: #ffffff;
41
  border-radius: 15px;
@@ -44,10 +26,30 @@ header h1 {
44
  width: 100%;
45
  max-width: 600px;
46
  text-align: center;
47
- margin-top: 100px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  margin-bottom: 20px;
 
 
49
  }
50
 
 
51
  input, select {
52
  padding: 12px;
53
  margin: 10px 0;
@@ -57,9 +59,9 @@ input, select {
57
  border: 1px solid #E0E0E0;
58
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
59
  transition: all 0.3s ease;
60
- appearance: none;
61
- -webkit-appearance: none;
62
- -moz-appearance: none;
63
  background-color: #fff;
64
  color: #555;
65
  }
@@ -70,14 +72,7 @@ input:focus, select:focus {
70
  box-shadow: 0 0 8px rgba(0, 180, 50, 0.2);
71
  }
72
 
73
- select {
74
- background-image: url('https://img.icons8.com/ios/452/down-squared.png');
75
- background-repeat: no-repeat;
76
- background-position: right 10px center;
77
- background-size: 16px;
78
- padding-right: 40px;
79
- }
80
-
81
  .currency-selectors {
82
  display: flex;
83
  justify-content: center;
@@ -91,6 +86,7 @@ span {
91
  color: #555;
92
  }
93
 
 
94
  button {
95
  padding: 12px 20px;
96
  background-color: #4CAF50;
@@ -108,6 +104,7 @@ button:hover {
108
  background-color: #45a049;
109
  }
110
 
 
111
  #result {
112
  margin-top: 20px;
113
  font-size: 20px;
@@ -120,22 +117,39 @@ button:hover {
120
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
121
  }
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  footer {
124
- width: 100%;
 
125
  text-align: center;
126
  padding: 10px 0;
127
- font-size: 14px;
128
- color: #333;
129
- background-color: #fff;
130
- border-top: 2px solid black; /* Garis batas atas hitam untuk footer */
131
- position: fixed;
132
- bottom: 0;
133
- }
134
-
135
- footer p {
136
- margin: 0;
137
  }
138
 
 
139
  @media (max-width: 768px) {
140
  .container {
141
  padding: 30px;
@@ -155,6 +169,7 @@ footer p {
155
  }
156
  }
157
 
 
158
  @media (min-width: 769px) {
159
  .container {
160
  max-width: 700px;
 
1
+ /* Gaya umum untuk semua elemen */
2
  * {
3
  margin: 0;
4
  padding: 0;
5
  box-sizing: border-box;
6
  }
7
 
8
+ /* Gaya untuk body */
9
  body {
10
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
11
  background: linear-gradient(135deg, #F3F4F9, #C9D6E3);
12
  display: flex;
13
+ justify-content: center;
 
14
  align-items: center;
15
+ height: 100vh;
16
  color: #333;
17
  position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  }
19
 
20
+ /* Gaya untuk container utama */
21
  .container {
22
  background: #ffffff;
23
  border-radius: 15px;
 
26
  width: 100%;
27
  max-width: 600px;
28
  text-align: center;
29
+ position: relative;
30
+ margin: 0 20px;
31
+ }
32
+
33
+ /* Gaya untuk header */
34
+ header {
35
+ background-color: black; /* Latar belakang hitam */
36
+ color: white; /* Teks berwarna putih */
37
+ padding: 20px 0; /* Menambahkan padding atas dan bawah */
38
+ text-align: center; /* Menyelaraskan teks di tengah */
39
+ font-size: 24px; /* Ukuran font header */
40
+ font-weight: bold;
41
+ text-transform: uppercase; /* Membuat teks menjadi huruf besar */
42
+ }
43
+
44
+ /* Gaya untuk judul utama */
45
+ h1 {
46
+ font-size: 2rem;
47
  margin-bottom: 20px;
48
+ color: #2D3A3A;
49
+ font-weight: 600;
50
  }
51
 
52
+ /* Gaya untuk input dan select */
53
  input, select {
54
  padding: 12px;
55
  margin: 10px 0;
 
59
  border: 1px solid #E0E0E0;
60
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
61
  transition: all 0.3s ease;
62
+ appearance: none; /* Menghapus tampilan default dropdown */
63
+ -webkit-appearance: none; /* Untuk Safari */
64
+ -moz-appearance: none; /* Untuk Firefox */
65
  background-color: #fff;
66
  color: #555;
67
  }
 
72
  box-shadow: 0 0 8px rgba(0, 180, 50, 0.2);
73
  }
74
 
75
+ /* Gaya untuk selector mata uang */
 
 
 
 
 
 
 
76
  .currency-selectors {
77
  display: flex;
78
  justify-content: center;
 
86
  color: #555;
87
  }
88
 
89
+ /* Gaya untuk tombol konversi */
90
  button {
91
  padding: 12px 20px;
92
  background-color: #4CAF50;
 
104
  background-color: #45a049;
105
  }
106
 
107
+ /* Gaya untuk hasil konversi */
108
  #result {
109
  margin-top: 20px;
110
  font-size: 20px;
 
117
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
118
  }
119
 
120
+ /* Watermark dengan Copyright (di footer) */
121
+ body::after {
122
+ content: "© 2025 Teggar Eka Mustaqim Sitanggang";
123
+ font-size: 16px;
124
+ font-weight: 400;
125
+ color: white;
126
+ background-color: black;
127
+ position: absolute;
128
+ bottom: 20px;
129
+ left: 50%;
130
+ transform: translateX(-50%);
131
+ z-index: -1;
132
+ opacity: 0.5;
133
+ pointer-events: none;
134
+ user-select: none;
135
+ letter-spacing: 2px;
136
+ text-transform: uppercase;
137
+ padding: 5px 10px;
138
+ border-radius: 5px;
139
+ }
140
+
141
+ /* Gaya untuk footer */
142
  footer {
143
+ background-color: black;
144
+ color: white;
145
  text-align: center;
146
  padding: 10px 0;
147
+ font-size: 16px;
148
+ position: relative;
149
+ margin-top: 20px;
 
 
 
 
 
 
 
150
  }
151
 
152
+ /* Responsif untuk Mobile */
153
  @media (max-width: 768px) {
154
  .container {
155
  padding: 30px;
 
169
  }
170
  }
171
 
172
+ /* Responsif untuk tampilan yang lebih besar (Tablet ke atas) */
173
  @media (min-width: 769px) {
174
  .container {
175
  max-width: 700px;