From 6198398808220bd60595ecf64e342664f350a353 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 7 Nov 2023 01:55:31 +0800 Subject: refactor(components): add `Date` type checking --- site/public/bg.mp4 | Bin 1668195 -> 0 bytes site/public/categories/index.xml | 10 ---- site/public/css/styles.css | 101 ------------------------------------ site/public/favicon.ico | Bin 15406 -> 0 bytes site/public/index.html | 67 ------------------------ site/public/index.xml | 10 ---- site/public/js/script.js | 31 ----------- site/public/sitemap.xml | 11 ---- site/public/svg/icons/email.svg | 1 - site/public/svg/icons/facebook.svg | 1 - site/public/svg/icons/github.svg | 1 - site/public/svg/icons/instagram.svg | 1 - site/public/svg/icons/tiktok.svg | 1 - site/public/svg/icons/twitter.svg | 1 - site/public/tags/index.xml | 10 ---- site/src/App.vue | 2 +- site/src/components/Left.vue | 4 +- 17 files changed, 3 insertions(+), 249 deletions(-) delete mode 100644 site/public/bg.mp4 delete mode 100644 site/public/categories/index.xml delete mode 100644 site/public/css/styles.css delete mode 100644 site/public/favicon.ico delete mode 100644 site/public/index.html delete mode 100644 site/public/index.xml delete mode 100644 site/public/js/script.js delete mode 100644 site/public/sitemap.xml delete mode 100644 site/public/svg/icons/email.svg delete mode 100644 site/public/svg/icons/facebook.svg delete mode 100644 site/public/svg/icons/github.svg delete mode 100644 site/public/svg/icons/instagram.svg delete mode 100644 site/public/svg/icons/tiktok.svg delete mode 100644 site/public/svg/icons/twitter.svg delete mode 100644 site/public/tags/index.xml diff --git a/site/public/bg.mp4 b/site/public/bg.mp4 deleted file mode 100644 index 89df32b..0000000 Binary files a/site/public/bg.mp4 and /dev/null differ diff --git a/site/public/categories/index.xml b/site/public/categories/index.xml deleted file mode 100644 index 6b906fb..0000000 --- a/site/public/categories/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Categories on HydroRoll - http://hydroroll.team/categories/ - Recent content in Categories on HydroRoll - Hugo -- gohugo.io - zh-cn - - diff --git a/site/public/css/styles.css b/site/public/css/styles.css deleted file mode 100644 index 3c52555..0000000 --- a/site/public/css/styles.css +++ /dev/null @@ -1,101 +0,0 @@ -* { -margin: 0; -padding: 0; -} - -.bgimg { -/* Full-screen */ -height: 100vh; /* Use viewport height for full-screen height */ -/* Center the background image */ -background-position: center; -/* Scale and zoom in the image */ -background-size: cover; -/* Add position: relative to enable absolutely positioned elements inside the image (place text) */ -position: relative; -/* Add a white text color to all elements inside the .bgimg container */ -color: white; -/* Add a font */ -font-family: "Courier New", Courier, monospace; -/* Set the font-size to 25 pixels */ -font-size: 25px; -} - -.bgimg video { -width: 100%; -height: 100%; /* Make the video fill the entire .bgimg container */ -object-fit: cover; /* Make the video cover the container without stretching */ -display: block; /* Remove any extra spacing */ -position: absolute; /* Position the video absolutely within the .bgimg container */ -} - - -/* Position text in the top-left corner */ -.topleft { -position: absolute; -top: 16px; -left: 16px; -} - -/* Position text in the bottom-left corner */ -.bottomleft { -position: absolute; -bottom: 16px; -left: 16px; -} - -/* Position text in the middle */ -.middle { -position: absolute; -top: 50%; -left: 50%; -transform: translate(-50%, -50%); -text-align: center; -} -#demo{ - font-size:30px; - padding: 10px; -} -@media screen AND (max-width:600px) { - .middle h1{ - font-size: 20px; - } - #demo{ - font-size: 20px; - } -} - -/* Style the
element */ -hr { -margin: auto; -width: 40%; -} - -/* left side */ -.left{ - right: 0; - bottom: 10px; - position: absolute; -} -.social-icons { - text-align: center; - filter: brightness(0) invert(1); -} - -.social-icons .social-icons-list { - display: inline-block; - list-style-type: none; - padding: 0; - text-align: center; -} - -.social-icons-list .social-icon { - box-sizing: border-box; - display: inline-block; - height: 24px; - margin: 0 6px; - width: 24px; -} - -.social-icon a svg path { - transition: fill 0.15s ease; -} \ No newline at end of file diff --git a/site/public/favicon.ico b/site/public/favicon.ico deleted file mode 100644 index 253be4b..0000000 Binary files a/site/public/favicon.ico and /dev/null differ diff --git a/site/public/index.html b/site/public/index.html deleted file mode 100644 index 4c8e428..0000000 --- a/site/public/index.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - HydroRoll - - - - - - -
- -
- -

HydroRoll

- -
-
- -

距离水系公测还有

- -
-
-
-

-

-
-
-
-

- 倒数日

-
-
-
- - - -
- - - \ No newline at end of file diff --git a/site/public/index.xml b/site/public/index.xml deleted file mode 100644 index a759010..0000000 --- a/site/public/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - HydroRoll - http://hydroroll.team/ - Recent content on HydroRoll - Hugo -- gohugo.io - zh-cn - - diff --git a/site/public/js/script.js b/site/public/js/script.js deleted file mode 100644 index f41ff4b..0000000 --- a/site/public/js/script.js +++ /dev/null @@ -1,31 +0,0 @@ -// Get the release date from the data attribute -var releaseDateStr = document.getElementById("countdown").getAttribute("data-release"); - -// Create a JavaScript Date object using the release date string -var countDownDate = new Date(releaseDateStr); - -// Update the count down every 1 second -var x = setInterval(function() { - - // Get todays date and time - var now = new Date().getTime(); - - // Find the distance between now an the count down date - var distance = countDownDate - now; - - // Time calculations for days, hours, minutes and seconds - var days = Math.floor(distance / (1000 * 60 * 60 * 24)); - var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); - var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); - var seconds = Math.floor((distance % (1000 * 60)) / 1000); - - // Display the result in an element with id="demo" - document.getElementById("demo").innerHTML = days + "天 " + hours + "小时 " - + minutes + "分 " + seconds + "秒 "; - - // If the count down is finished, write some text - if (distance < 0) { - clearInterval(x); - document.getElementById("demo").innerHTML = "EXPIRED"; - } -}, 1000); \ No newline at end of file diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml deleted file mode 100644 index 3122e32..0000000 --- a/site/public/sitemap.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - http://hydroroll.team/categories/ - - http://hydroroll.team/ - - http://hydroroll.team/tags/ - - diff --git a/site/public/svg/icons/email.svg b/site/public/svg/icons/email.svg deleted file mode 100644 index 3811b59..0000000 --- a/site/public/svg/icons/email.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/site/public/svg/icons/facebook.svg b/site/public/svg/icons/facebook.svg deleted file mode 100644 index 4ef9d67..0000000 --- a/site/public/svg/icons/facebook.svg +++ /dev/null @@ -1 +0,0 @@ -Facebook \ No newline at end of file diff --git a/site/public/svg/icons/github.svg b/site/public/svg/icons/github.svg deleted file mode 100644 index 538ec5b..0000000 --- a/site/public/svg/icons/github.svg +++ /dev/null @@ -1 +0,0 @@ -GitHub \ No newline at end of file diff --git a/site/public/svg/icons/instagram.svg b/site/public/svg/icons/instagram.svg deleted file mode 100644 index 5a68721..0000000 --- a/site/public/svg/icons/instagram.svg +++ /dev/null @@ -1 +0,0 @@ -Instagram \ No newline at end of file diff --git a/site/public/svg/icons/tiktok.svg b/site/public/svg/icons/tiktok.svg deleted file mode 100644 index 57ce3ae..0000000 --- a/site/public/svg/icons/tiktok.svg +++ /dev/null @@ -1 +0,0 @@ -TikTok \ No newline at end of file diff --git a/site/public/svg/icons/twitter.svg b/site/public/svg/icons/twitter.svg deleted file mode 100644 index 45bd20c..0000000 --- a/site/public/svg/icons/twitter.svg +++ /dev/null @@ -1 +0,0 @@ -Twitter \ No newline at end of file diff --git a/site/public/tags/index.xml b/site/public/tags/index.xml deleted file mode 100644 index 7664def..0000000 --- a/site/public/tags/index.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Tags on HydroRoll - http://hydroroll.team/tags/ - Recent content in Tags on HydroRoll - Hugo -- gohugo.io - zh-cn - - diff --git a/site/src/App.vue b/site/src/App.vue index e3124b4..bf7fa55 100644 --- a/site/src/App.vue +++ b/site/src/App.vue @@ -8,7 +8,7 @@ import TheWelcome from './components/TheWelcome.vue'
- +
diff --git a/site/src/components/Left.vue b/site/src/components/Left.vue index 342e49b..331c881 100644 --- a/site/src/components/Left.vue +++ b/site/src/components/Left.vue @@ -16,7 +16,7 @@ export default { }, date:{ type:Date, - default:'2024-05-10T12:00:00Z' + default:new Date('2024-05-10T12:00:00Z') } }, methods:{ @@ -47,7 +47,7 @@ export default { 距离水系公测还有

- {{ day }}d {{ hour }}h {{ min }}m {{ sec }}s + {{ day }} 天 {{ hour }} 时 {{ min }} 分 {{ sec }} 秒

-- cgit v1.2.3-70-g09d2