diff --git a/public/assets/132398672_p0_master1200-origin.jpg b/public/assets/132398672_p0_master1200-origin.jpg new file mode 100644 index 0000000..13f2ab8 Binary files /dev/null and b/public/assets/132398672_p0_master1200-origin.jpg differ diff --git a/public/assets/132398672_p0_master1200_edited.jpg b/public/assets/132398672_p0_master1200_edited.jpg new file mode 100644 index 0000000..5afc2b1 Binary files /dev/null and b/public/assets/132398672_p0_master1200_edited.jpg differ diff --git a/src/components/ConfigCarrier.astro b/src/components/ConfigCarrier.astro index 68b3dde..6ff2db2 100644 --- a/src/components/ConfigCarrier.astro +++ b/src/components/ConfigCarrier.astro @@ -1,7 +1,16 @@ --- import { siteConfig } from "../config"; ---- -
-
+// 周日判断 +const isSunday = new Date().getDay() === 0; + +// 这tm重置色 +--- +{isSunday && +
+} +{!isSunday && +
+} + diff --git a/src/components/widget/Profile.astro b/src/components/widget/Profile.astro index 69cf1b1..301b3eb 100644 --- a/src/components/widget/Profile.astro +++ b/src/components/widget/Profile.astro @@ -5,6 +5,8 @@ import { url } from "../../utils/url-utils"; import ImageWrapper from "../misc/ImageWrapper.astro"; const config = profileConfig; + +const isSunday = new Date().getDay() === 0; ---
一言 / hitokoto
@@ -49,6 +51,10 @@ const config = profileConfig;
+ + {isSunday && + + } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7dbc3b2..a38025a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -129,7 +129,9 @@ const bannerOffset = } // Load the hue from local storage - const hue = localStorage.getItem('hue') || configHue; + const currentDay = new Date().getDay(); + const hue = currentDay === 3 ? 290 : (localStorage.getItem('hue') || configHue); + //const hue = localStorage.getItem('hue') || configHue; document.documentElement.style.setProperty('--hue', hue); // calculate the --banner-height-extend, which needs to be a multiple of 4 to avoid blurry text diff --git a/src/layouts/MainGridLayout.astro b/src/layouts/MainGridLayout.astro index e1f8e5c..bf8cf24 100644 --- a/src/layouts/MainGridLayout.astro +++ b/src/layouts/MainGridLayout.astro @@ -39,6 +39,13 @@ const hasBannerLink = !!siteConfig.banner.credit.url; const mainPanelTop = siteConfig.banner.enable ? `calc(${BANNER_HEIGHT}vh - ${MAIN_PANEL_OVERLAPS_BANNER_HEIGHT}rem)` : "5.5rem"; + +// 周日判断 +const isSunday = new Date().getDay() === 0; + +// 周六判断 +const isSaturday = new Date().getDay() === 6; + --- @@ -51,8 +58,20 @@ const mainPanelTop = siteConfig.banner.enable + -{siteConfig.banner.enable &&