-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
339 lines (303 loc) · 6.78 KB
/
styles.css
File metadata and controls
339 lines (303 loc) · 6.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
/* Reset and Basic Styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: url('images/bgr.jpg') no-repeat center center fixed;
background-size: cover;
color: #333;
padding: 20px;
position: relative;
min-height: 100%;
overflow-x: hidden;
transition: all 0.3s ease-in-out; /* Smooth transition on all changes */
}
/* Add background blur */
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(8px);
z-index: -1;
}
header {
text-align: center;
margin-bottom: 40px;
z-index: 1;
animation: fadeIn 2s ease-in-out;
}
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');
header h1 {
font-family: 'Oswald', sans-serif;
font-size: 3.5rem;
color: #fff; /* Teks putih */
text-align: center;
text-transform: uppercase;
letter-spacing: 2px;
position: relative;
display: inline-block;
padding: 10px 20px;
}
header h1::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background: #D3D3D3; /* Garis bawah putih */
animation: lineGlow 2s ease-in-out infinite;
}
@keyframes lineGlow {
0% {
transform: scaleX(0);
}
50% {
transform: scaleX(1);
}
100% {
transform: scaleX(0);
}
transform-origin: center;
}
header p {
font-size: 1.2rem;
color: rgba(211, 211, 211, 0.8); /* abu-abu muda dengan sedikit transparansi */
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
/* Best Seller Badge */
.best-seller {
position: absolute;
top: 10px;
left: 10px;
background-color: #ffcc00;
color: white;
padding: 5px 10px;
font-size: 1rem;
font-weight: bold;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
z-index: 1;
}
/* Not Found Badge */
.not-found {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%); /* Memusatkan badge secara horizontal */
background-color: #ff0000; /* Warna merah */
color: white; /* Warna teks putih */
padding: 5px 15px;
font-size: 1rem;
font-weight: bold;
border-radius: 5px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); /* Shadow hitam */
z-index: 1;
text-align: center;
}
/* Showcase Styling */
.showcase1 {
background: linear-gradient(45deg, #4fa3e3, #FFFFFF, #000000); /* cyan, biru muda, putih */
}
.showcase2 {
background: linear-gradient(45deg, #32CD32, #FFFFFF, #F4A300); /* orange, hijau */
}
.showcase3 {
background: linear-gradient(45deg, #A9A9A9, #FFFFFF, #000000); /* abu-abu, putih */
}
.showcase {
position: relative;
background-color: rgba(255, 255, 255, 0.7);
border: 1px solid #ddd;
padding: 20px;
width: 100%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
border-radius: 8px;
backdrop-filter: blur(5px);
animation: slideUp 1s ease-in-out;
transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.showcase:hover {
transform: translateY(-5px); /* Slight lift effect on hover */
}
.showcases {
display: flex;
flex-direction: column;
gap: 40px;
margin-bottom: 20px;
}
.showcase img {
width: 100%;
height: auto;
object-fit: cover;
border-radius: 8px;
margin-bottom: 15px;
}
.showcase h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #000000;
}
.showcase p {
font-size: 1rem;
color: #666;
margin-bottom: 20px;
}
.buttons {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}
.buttons button {
background-color: #000; /* Warna hitam */
color: #fff; /* Warna teks putih */
border: none;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
width: 100%;
}
.buttons button:hover {
background-color: #333;
transform: scale(1.05);
}
.buttons button:active {
box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.8); /* Shadow putih */
color: #00FFFF; /* Teks menyala (warna hijau neon) */
}
/* Loading animation */
.loading-screen {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 0;
pointer-events: none;
animation: fadeInLoading 1s forwards; /* Fade-in effect for the loading screen */
}
.loader {
border: 8px solid rgba(255, 255, 255, 0.3);
border-top: 8px solid #28a745;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
}
/* Spin animation for loader */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Fade-in effect for the loading screen */
@keyframes fadeInLoading {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Animations */
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Click Effect: Subtle white shadow */
.showcase:active {
box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}
/* Smooth notification message */
/* Smooth notification messages */
/* Unified notification style */
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 15px;
border-radius: 5px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
animation: slideIn 0.5s ease-in-out;
opacity: 0;
transform: translateX(100%);
background-color: #ffc107; /* Yellow background for all notifications */
color: black; /* Text color */
}
/* Success notification */
.notification.success {
background-color: #28a745;
color: white;
}
/* Error notification */
.notification.error {
background-color: #dc3545;
color: white;
}
/* Info notification */
.notification.info {
background-color: #17a2b8;
color: white;
}
/* Warning notification */
.notification.warning {
background-color: #ffc107;
color: black;
}
/* Slide in animation */
@keyframes slideIn {
0% {
transform: translateX(100%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
/* Slide out animation */
@keyframes slideOut {
0% {
opacity: 1;
transform: translateX(0);
}
100% {
opacity: 0;
transform: translateX(100%);
}
}