GarGerry commited on
Commit
fdd77d0
·
verified ·
1 Parent(s): c1aba63

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +43 -38
style.css CHANGED
@@ -1,6 +1,3 @@
1
- /* Peningkatan Penggunaan Font */
2
- @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
3
-
4
  * {
5
  margin: 0;
6
  padding: 0;
@@ -8,14 +5,15 @@
8
  }
9
 
10
  body {
11
- font-family: 'Roboto', sans-serif;
12
  background: linear-gradient(135deg, #F3F4F9, #C9D6E3);
13
  display: flex;
14
  justify-content: center;
15
  align-items: center;
16
  height: 100vh;
17
  color: #333;
18
- position: relative; /* Agar watermark terletak di atas background */
 
19
  }
20
 
21
  .container {
@@ -23,9 +21,11 @@ body {
23
  border-radius: 15px;
24
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
25
  padding: 40px;
26
- width: 350px;
 
27
  text-align: center;
28
- position: relative; /* Agar watermark tidak mengganggu elemen di dalam container */
 
29
  }
30
 
31
  h1 {
@@ -36,7 +36,7 @@ h1 {
36
  }
37
 
38
  input, select {
39
- padding: 12px;
40
  margin: 10px 0;
41
  width: 100%;
42
  font-size: 16px;
@@ -75,11 +75,12 @@ button {
75
  font-size: 18px;
76
  font-weight: 600;
77
  cursor: pointer;
78
- transition: background-color 0.3s ease;
79
  }
80
 
81
  button:hover {
82
  background-color: #45a049;
 
83
  }
84
 
85
  #result {
@@ -88,30 +89,7 @@ button:hover {
88
  font-weight: bold;
89
  color: #333;
90
  text-transform: uppercase;
91
- display: flex;
92
- justify-content: center;
93
- align-items: center;
94
- gap: 5px;
95
- }
96
-
97
- /* Menambahkan animasi untuk hasil konversi */
98
- #result span {
99
- font-size: 22px;
100
- animation: fadeIn 1s ease-out;
101
- }
102
-
103
- #result i {
104
- font-size: 24px;
105
- }
106
-
107
- /* Animasi untuk hasil konversi */
108
- @keyframes fadeIn {
109
- 0% {
110
- opacity: 0;
111
- }
112
- 100% {
113
- opacity: 1;
114
- }
115
  }
116
 
117
  /* Watermark dengan Copyright */
@@ -119,16 +97,43 @@ body::after {
119
  content: "© 2025 Powered by Teggar";
120
  font-size: 16px;
121
  font-weight: 400;
122
- color: rgba(0, 0, 0, 0.2); /* Transparansi untuk watermark */
123
  position: absolute;
124
  bottom: 20px;
125
  left: 50%;
126
  transform: translateX(-50%);
127
- z-index: -1; /* Agar watermark berada di belakang konten */
128
- opacity: 0.5; /* Efek transparansi */
129
- pointer-events: none; /* Agar watermark tidak menghalangi interaksi dengan elemen lain */
130
  user-select: none;
131
  letter-spacing: 2px;
132
  text-transform: uppercase;
133
- font-family: 'Roboto', sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  }
 
 
 
 
1
  * {
2
  margin: 0;
3
  padding: 0;
 
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
  justify-content: center;
12
  align-items: center;
13
  height: 100vh;
14
  color: #333;
15
+ position: relative;
16
+ padding: 20px; /* Add padding for responsiveness */
17
  }
18
 
19
  .container {
 
21
  border-radius: 15px;
22
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
23
  padding: 40px;
24
+ width: 100%;
25
+ max-width: 400px; /* Limit max width for larger screens */
26
  text-align: center;
27
+ position: relative;
28
+ overflow: hidden; /* Prevents overflowing content */
29
  }
30
 
31
  h1 {
 
36
  }
37
 
38
  input, select {
39
+ padding: 14px;
40
  margin: 10px 0;
41
  width: 100%;
42
  font-size: 16px;
 
75
  font-size: 18px;
76
  font-weight: 600;
77
  cursor: pointer;
78
+ transition: background-color 0.3s ease, transform 0.2s ease;
79
  }
80
 
81
  button:hover {
82
  background-color: #45a049;
83
+ transform: scale(1.05);
84
  }
85
 
86
  #result {
 
89
  font-weight: bold;
90
  color: #333;
91
  text-transform: uppercase;
92
+ word-wrap: break-word;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  }
94
 
95
  /* Watermark dengan Copyright */
 
97
  content: "© 2025 Powered by Teggar";
98
  font-size: 16px;
99
  font-weight: 400;
100
+ color: rgba(0, 0, 0, 0.2);
101
  position: absolute;
102
  bottom: 20px;
103
  left: 50%;
104
  transform: translateX(-50%);
105
+ z-index: -1;
106
+ opacity: 0.5;
107
+ pointer-events: none;
108
  user-select: none;
109
  letter-spacing: 2px;
110
  text-transform: uppercase;
111
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
112
+ }
113
+
114
+ /* Loading Indicator */
115
+ .loading {
116
+ display: none;
117
+ font-size: 18px;
118
+ color: #4CAF50;
119
+ }
120
+
121
+ .loading.show {
122
+ display: block;
123
+ }
124
+
125
+ /* Responsiveness for smaller screens */
126
+ @media (max-width: 768px) {
127
+ .container {
128
+ padding: 20px;
129
+ }
130
+ h1 {
131
+ font-size: 22px;
132
+ }
133
+ input, select {
134
+ font-size: 14px;
135
+ }
136
+ button {
137
+ font-size: 16px;
138
+ }
139
  }