mirror of
https://github.com/Ad-closeNN/blog-fuwari.git
synced 2026-05-31 02:20:05 -04:00
feat(config): 加入 周日知更鸟主题
Fuwari 藏得东西还是太多了 1. 知更鸟背景 2. 档案,在银河中孤独摇摆 3. 紫色主题色
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
---
|
||||
|
||||
import { siteConfig } from "../config";
|
||||
---
|
||||
|
||||
<div id="config-carrier" data-hue={siteConfig.themeColor.hue}>
|
||||
</div>
|
||||
// 周日判断
|
||||
const isSunday = new Date().getDay() === 0;
|
||||
|
||||
// 这tm重置色
|
||||
---
|
||||
{isSunday &&
|
||||
<div id="config-carrier" data-hue={290}></div>
|
||||
}
|
||||
{!isSunday &&
|
||||
<div id="config-carrier" data-hue={siteConfig.themeColor.hue}></div>
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
---
|
||||
<div class="card-base p-3">
|
||||
<div class="text-center text-sm text-neutral-500 dark:text-neutral-400 border-neutral-100 dark:border-neutral-700">一言 / hitokoto</div>
|
||||
@@ -49,6 +51,10 @@ const config = profileConfig;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 星期日 -->
|
||||
{isSunday &&
|
||||
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=250 height=86 src="//music.163.com/outchain/player?type=2&id=2155423467&auto=0&height=66"></iframe>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user