58
58
<header class =" relative z-10 max-w-screen-lg xl:max-w-screen-xl mx-auto" >
59
59
<div class =" relative px-4 sm:px-6 md:px-8 mb-14 sm:mb-20 xl:mb-8" >
60
60
<div
61
- class =" border-b border-gray-700 border-opacity-90 py-4 flex items-center justify-between mb-12 sm:mb- 20 -mx-4 px-4 sm:mx-0 sm:px-0 lg:mb-24 xl:mb-28 "
61
+ class =" border-b border-gray-700 border-opacity-70 py-4 flex items-center justify-between mb-20 -mx-4 px-4 sm:mx-0 sm:px-0 lg:mb-24 xl:mb-32 2xl:mb-40 "
62
62
>
63
63
<div class =" flex" >
64
64
<a href =" /" class =" block" >
137
137
>
138
138
<button
139
139
type =" button"
140
- class =" w-full sm:w-auto flex-none bg-gray-50 text-gray-400 hover:text-gray-900 font-mono leading-6 py-3 sm:px-6 border border-gray-200 rounded-xl flex items-center justify-center space-x-2 sm:space-x-4 focus:ring-2 focus:ring-offset-2 focus:ring-offset-black focus:ring-gray-300 focus:outline-none transition ease-out duration-300"
140
+ class =" w-full sm:w-auto flex-none text-xs sm:text-base font-semibold bg-gray-50 text-gray-400 hover:text-gray-900 font-mono leading-6 py-3 sm:px-6 border border-gray-200 rounded-xl flex items-center justify-center space-x-2 sm:space-x-4 focus:ring-2 focus:ring-offset-2 focus:ring-offset-black focus:ring-gray-300 focus:outline-none transition ease-out duration-300"
141
141
>
142
142
<span class =" text-gray-900" >
143
143
{{ value || placeholder }}
@@ -1271,6 +1271,11 @@ export default {
1271
1271
month: ' MMM'
1272
1272
});
1273
1273
1274
+ const playFormatter = ref ({
1275
+ date: ' YYYY-MM-DD' ,
1276
+ month: ' MMM'
1277
+ });
1278
+
1274
1279
const heroModel = ref ([
1275
1280
dayjs ().format (formatter .value .date ),
1276
1281
dayjs ()
@@ -1292,7 +1297,14 @@ export default {
1292
1297
startFrom: [],
1293
1298
shortcuts: [],
1294
1299
disableDate: [],
1295
- disableInRange: [],
1300
+ disableInRange: [
1301
+ dayjs ()
1302
+ .subtract (7 , ' d' )
1303
+ .format (playFormatter .value .date ),
1304
+ dayjs ()
1305
+ .subtract (1 , ' d' )
1306
+ .format (playFormatter .value .date )
1307
+ ],
1296
1308
trigger: [],
1297
1309
slots: [],
1298
1310
footer: [],
@@ -1305,11 +1317,6 @@ export default {
1305
1317
customShortcuts: []
1306
1318
});
1307
1319
1308
- const playFormatter = ref ({
1309
- date: ' YYYY-MM-DD' ,
1310
- month: ' MMM'
1311
- });
1312
-
1313
1320
const customShortcuts = () => {
1314
1321
return [
1315
1322
{
@@ -1349,6 +1356,17 @@ export default {
1349
1356
.format (formatter .value .date )} ` ;
1350
1357
}
1351
1358
}, 1000 );
1359
+
1360
+ setInterval (() => {
1361
+ if (myRef .value ) {
1362
+ myRef .value .LitepieDatepickerRef .parentElement .classList .add (' dark' );
1363
+ setTimeout (() => {
1364
+ myRef .value .LitepieDatepickerRef .parentElement .classList .remove (
1365
+ ' dark'
1366
+ );
1367
+ }, 10000 );
1368
+ }
1369
+ }, 20000 );
1352
1370
});
1353
1371
1354
1372
return {
0 commit comments