GarGerry commited on
Commit
9dd2c1c
·
verified ·
1 Parent(s): 417f3d8

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +52 -32
style.css CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  * {
2
  margin: 0;
3
  padding: 0;
@@ -5,8 +8,8 @@
5
  }
6
 
7
  body {
8
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
9
- background: linear-gradient(135deg, #E5E5E5, #D1D1D1); /* Perubahan gradien agar lebih halus */
10
  display: flex;
11
  justify-content: center;
12
  align-items: center;
@@ -18,31 +21,29 @@ body {
18
  .container {
19
  background: #ffffff;
20
  border-radius: 15px;
21
- box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Efek bayangan lebih tegas */
22
  padding: 40px;
23
- width: 400px; /* Ukuran container sedikit lebih besar */
24
  text-align: center;
25
- position: relative;
26
- overflow: hidden;
27
- z-index: 1; /* Agar watermark berada di belakang */
28
  }
29
 
30
  h1 {
31
- font-size: 30px; /* Membuat judul lebih besar */
32
- margin-bottom: 25px;
33
- color: #4CAF50; /* Warna hijau yang lebih segar */
34
- font-weight: 700; /* Berat font lebih tebal */
35
  }
36
 
37
  input, select {
38
- padding: 14px;
39
- margin: 15px 0;
40
  width: 100%;
41
- font-size: 18px; /* Ukuran font lebih besar */
42
  border-radius: 8px;
43
  border: 1px solid #E0E0E0;
44
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Bayangan lebih soft */
45
- transition: all 0.3s ease-in-out;
46
  }
47
 
48
  input:focus, select:focus {
@@ -55,43 +56,62 @@ input:focus, select:focus {
55
  display: flex;
56
  justify-content: center;
57
  align-items: center;
58
- gap: 15px;
59
  }
60
 
61
  span {
62
- font-size: 20px;
63
  font-weight: 500;
64
- color: #777;
65
  }
66
 
67
  button {
68
- padding: 14px 24px;
69
  background-color: #4CAF50;
70
  color: white;
71
  border: none;
72
  border-radius: 8px;
73
  width: 100%;
74
- font-size: 20px; /* Ukuran font lebih besar */
75
  font-weight: 600;
76
  cursor: pointer;
77
- transition: background-color 0.3s ease, transform 0.3s ease;
78
  }
79
 
80
  button:hover {
81
  background-color: #45a049;
82
- transform: translateY(-2px); /* Efek tombol bergerak sedikit saat hover */
83
- }
84
-
85
- button:active {
86
- transform: translateY(1px); /* Efek tombol sedikit tertekan */
87
  }
88
 
89
  #result {
90
  margin-top: 20px;
91
- font-size: 24px; /* Ukuran font lebih besar */
92
  font-weight: bold;
93
  color: #333;
94
  text-transform: uppercase;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  }
96
 
97
  /* Watermark dengan Copyright */
@@ -99,16 +119,16 @@ body::after {
99
  content: "© 2025 Powered by Teggar";
100
  font-size: 16px;
101
  font-weight: 400;
102
- color: rgba(0, 0, 0, 0.3); /* Transparansi untuk watermark */
103
  position: absolute;
104
  bottom: 20px;
105
  left: 50%;
106
  transform: translateX(-50%);
107
  z-index: -1; /* Agar watermark berada di belakang konten */
108
- opacity: 0.4;
109
- pointer-events: none;
110
  user-select: none;
111
  letter-spacing: 2px;
112
  text-transform: uppercase;
113
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
114
  }
 
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
  }
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;
 
21
  .container {
22
  background: #ffffff;
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 {
32
+ font-size: 26px;
33
+ margin-bottom: 20px;
34
+ color: #2D3A3A;
35
+ font-weight: 600;
36
  }
37
 
38
  input, select {
39
+ padding: 12px;
40
+ margin: 10px 0;
41
  width: 100%;
42
+ font-size: 16px;
43
  border-radius: 8px;
44
  border: 1px solid #E0E0E0;
45
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
46
+ transition: all 0.3s ease;
47
  }
48
 
49
  input:focus, select:focus {
 
56
  display: flex;
57
  justify-content: center;
58
  align-items: center;
59
+ gap: 10px;
60
  }
61
 
62
  span {
63
+ font-size: 18px;
64
  font-weight: 500;
65
+ color: #555;
66
  }
67
 
68
  button {
69
+ padding: 12px 20px;
70
  background-color: #4CAF50;
71
  color: white;
72
  border: none;
73
  border-radius: 8px;
74
  width: 100%;
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 {
86
  margin-top: 20px;
87
+ font-size: 20px;
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
  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
  }