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 &&
+
+
+{isSunday && siteConfig.banner.enable &&
+
+
+
}
+
+
+
+{!isSunday && siteConfig.banner.enable &&
@@ -67,7 +86,21 @@ const mainPanelTop = siteConfig.banner.enable
mx-auto gap-4 px-0 md:px-4"
>
- {hasBannerCredit &&
+ {isSunday && hasBannerCredit &&
+
+ {"KiraraShss"}
+
+
+ }
+
+
+ {!isSunday && hasBannerCredit &&
@@ -78,8 +111,15 @@ const mainPanelTop = siteConfig.banner.enable
name="fa6-solid:arrow-up-right-from-square">
}
+
diff --git a/src/utils/setting-utils.ts b/src/utils/setting-utils.ts
index b6d7484..835e20c 100644
--- a/src/utils/setting-utils.ts
+++ b/src/utils/setting-utils.ts
@@ -14,12 +14,24 @@ export function getDefaultHue(): number {
}
export function getHue(): number {
+ const currentDay = new Date().getDay();
+ // 去你妈的给我查日期先
+ if (currentDay === 0){
+ return 290;
+ }
+ // 如果不是,则返回默认值
const stored = localStorage.getItem("hue");
return stored ? Number.parseInt(stored) : getDefaultHue();
}
export function setHue(hue: number): void {
- localStorage.setItem("hue", String(hue));
+ const currentDay = new Date().getDay();
+ if (currentDay === 0){
+ //
+ }
+ if (currentDay != 0){
+ localStorage.setItem("hue", String(hue));
+ }
const r = document.querySelector(":root") as HTMLElement;
if (!r) {
return;