docs(pages): 获得了一个新的免费 .dev 域名

2. del(theme): 删除周日知更鸟主题的代码部分,资源文件未删除
3. chore(profile): 左侧个人资料 Profile 更换音乐:茉子の日常
4. chore(config): 删除 navbar 的“仓库信息”,重新加入 Home 按钮
5. docs(pages): 更新相关文档页面内容
6. fix(css): 修复复制按钮未正确显示的问题
7. chore(footer): 新增茶备案号 2025080144
This commit is contained in:
Ad-closeNN
2025-08-31 00:38:16 +08:00
parent 08aafdd0fa
commit 29102fc51b
12 changed files with 58 additions and 158 deletions
+2 -10
View File
@@ -2,15 +2,7 @@
import { siteConfig } from "../config"; import { siteConfig } from "../config";
// 周日判断
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>
}
<div id="config-carrier" data-hue={siteConfig.themeColor.hue}>
</div>
+2
View File
@@ -11,6 +11,8 @@ const currentYear = new Date().getFullYear();
<!--<div class="transition bg-[oklch(92%_0.01_var(&#45;&#45;hue))] dark:bg-black rounded-2xl py-8 mt-4 mb-8 flex flex-col items-center justify-center px-6">--> <!--<div class="transition bg-[oklch(92%_0.01_var(&#45;&#45;hue))] dark:bg-black rounded-2xl py-8 mt-4 mb-8 flex flex-col items-center justify-center px-6">-->
<div class="transition border-dashed border-[oklch(85%_0.01_var(--hue))] dark:border-white/15 rounded-2xl mb-12 flex flex-col items-center justify-center px-6"> <div class="transition border-dashed border-[oklch(85%_0.01_var(--hue))] dark:border-white/15 rounded-2xl mb-12 flex flex-col items-center justify-center px-6">
<div class="transition text-50 text-sm text-center"> <div class="transition text-50 text-sm text-center">
<a href="https://icp.redcha.cn/beian/ICP-2025080144.html" title="茶ICP备2025080144号" target="_blank">茶ICP备2025080144号</a>
<br>
<a href="https://icp.gov.moe/?keyword=20256087" target="_blank">萌ICP备20256087号</a> <a href="https://icp.gov.moe/?keyword=20256087" target="_blank">萌ICP备20256087号</a>
<br> <br>
&copy; <span id="copyright-year">{currentYear}</span> <span><a class="transition link text-[var(--primary)] font-medium" href="https://github.com/Ad-closeNN" target="blank">{profileConfig.name}</a></span>. All Rights Reserved. &copy; <span id="copyright-year">{currentYear}</span> <span><a class="transition link text-[var(--primary)] font-medium" href="https://github.com/Ad-closeNN" target="blank">{profileConfig.name}</a></span>. All Rights Reserved.
+1 -27
View File
@@ -29,19 +29,7 @@ const config = profileConfig;
<div class="h-1 w-5 bg-[var(--primary)] mx-auto rounded-full mb-2 transition"></div> <div class="h-1 w-5 bg-[var(--primary)] mx-auto rounded-full mb-2 transition"></div>
<!-- bio: 名言部分 --> <!-- bio: 名言部分 -->
<!--
{ isSunday &&
<div class="text-center text-neutral-400 mb-2.5 transition">调整你的步伐,跟着节拍摇摆,举起双手拥抱你想成为的人</div>
}
{ !isSunday &&
<div class="text-center text-neutral-400 mb-2.5 transition">{config.bio}</div> <div class="text-center text-neutral-400 mb-2.5 transition">{config.bio}</div>
}
-->
<div class="text-center text-neutral-400 mb-2.5 transition" id="bio"></div>
<div class="flex gap-2 justify-center mb-1"> <div class="flex gap-2 justify-center mb-1">
@@ -80,20 +68,6 @@ const config = profileConfig;
</div> </div>
</div> </div>
<!-- 名言 -->
<script>
const bio = document.getElementById("bio");
if (bio){
const isSunday = new Date().getDay() === 0;
if (isSunday){
bio.textContent = "调整你的步伐,跟着节拍摇摆,举起双手拥抱你想成为的人"
}
else{
bio.textContent = "永远相信美好的事情即将发生";
}
}
</script>
<!-- 音乐 --> <!-- 音乐 -->
<script> <script>
(function () { (function () {
@@ -110,7 +84,7 @@ const config = profileConfig;
iframe.setAttribute('marginheight', '0'); iframe.setAttribute('marginheight', '0');
iframe.width = '250'; iframe.width = '250';
iframe.height = '86'; iframe.height = '86';
iframe.src = 'https://music.163.com/outchain/player?type=2&id=2608813264&auto=0&height=66'; iframe.src = 'https://music.163.com/outchain/player?type=2&id=411500345&auto=1&height=66';
const sundayMusicElement = document.getElementById('sunday-music'); const sundayMusicElement = document.getElementById('sunday-music');
if (sundayMusicElement) { if (sundayMusicElement) {
sundayMusicElement.appendChild(iframe); sundayMusicElement.appendChild(iframe);
+1 -5
View File
@@ -55,13 +55,9 @@ export const siteConfig: SiteConfig = {
export const navBarConfig: NavBarConfig = { export const navBarConfig: NavBarConfig = {
links: [ links: [
LinkPreset.Home,
LinkPreset.Archive, LinkPreset.Archive,
LinkPreset.About, LinkPreset.About,
{
name: "仓库信息",
url: "/info/", // Internal links should not include the base path, as it is automatically added
external: false, // Show an external link icon and will open in a new tab
},
{ {
name: "友情链接", name: "友情链接",
url: "/friends/", // Internal links should not include the base path, as it is automatically added url: "/friends/", // Internal links should not include the base path, as it is automatically added
Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

+22
View File
@@ -0,0 +1,22 @@
---
title: "获得了一个新的免费 .dev 域名"
published: 2025-08-23
tags: ["域名"]
description: 获得了一个新的 .dev 域名,还是免费的!
image: ../assets/images/domain-qqmail-adclosenn.dev.png
category: 记录
draft: false
showcover: false
customcover: ../assets/images/domain-cloudflare-adclosenn.dev.png
---
:::note[感谢]
感谢 [MC_Kero blog](https://blog.mckero.com) 的站长 [Kero](https://github.com/MCKero6423) 提供的 [GitHub Student Developer Pack](https://education.github.com/pack) 免费**一年域名**福利!~~都给我去 Follow 他~~
- 域名:`adclosenn.dev`
- 时长:1 年(2025-08-23 13:11:27 UTC -> 2026-08-23 13:11:27 UTC
:::
::github{repo="MCKero6423/fuwari"}
目前访问 [adclosenn.dev](https://adclosenn.dev) 会直接 302 跳转回来。
+10 -5
View File
@@ -1,16 +1,17 @@
# 关于 / Hi there! # 关于 / Hi there!
既然你来到了这里,就说明你在访问由 [Netlify](https://www.netlify.com) 托管的 [adclosenn.top](https://adclosenn.top)。本站 Netlify 优选 IP`3.33.186.135` 既然你来到了这里,就说明你在访问由 [Netlify](https://www.netlify.com) 托管的 [adclosenn.top](https://adclosenn.top)。本站 Netlify Amazon CDN 优选 IP`3.33.186.135`
本站使用 [@satcaca/fuwari](https://github.com/saicaca/fuwari) 博客模板,部分代码来源于 [@afoim/fuwari](https://github.com/afoim/fuwari)。嗯,真漂亮,真好用。 本站使用 [@saicaca/fuwari](https://github.com/saicaca/fuwari) 博客模板,部分代码来源于 [@afoim/fuwari](https://github.com/afoim/fuwari)。嗯,真漂亮,真好用。
::github{repo="saicaca/fuwari"} ::github{repo="saicaca/fuwari"}
::github{repo="withastro/astro"} ::github{repo="withastro/astro"}
::github{repo="Ad-closeNN/blog-fuwari"}
::github{repo="afoim/fuwari"} ::github{repo="afoim/fuwari"}
# 域名 # 域名
目前你现在见到的,也就是 [adclosenn.top](https://adclosenn.top) 。除了这个,还有其他的域名(部分): 目前你现在见到的,也就是 [adclosenn.top](https://adclosenn.top) 。除了这个,还有其他的域名(部分):
1. adclosenn.top 1. adclosenn.dev
2. 19991230.xyz 2. 19991230.xyz
3. adsb.dpdns.org 3. adsb.dpdns.org
4. adclosenn.dpdns.org 4. adclosenn.dpdns.org
@@ -42,10 +43,14 @@ Discordhttps://discord.com/users/1068060784300658688
](/posts/umami/) 。 ](/posts/umami/) 。
## 音乐 ## 音乐
使用的是 [网易云音乐外链播放器(iframe 插件)](https://music.163.com/#/outchain/2/2608813264/) 。 使用的是 [网易云音乐外链播放器(iframe 插件)](https://music.163.com/#/outchain/2/411500345/) 。
--- ---
# 2025/8/31
1. 移除知更鸟主题。但未移除相关图片。
2. 加入一个新[备案](https://icp.redcha.cn/beian/ICP-2025080144.html)。
# 2025/8/16 # 2025/8/16
因为 SVG 格式在没有 HarmonyOS Sans SC 字体的情况下无法正常显示这个字体(会显示为浏览器默认中文字体),所以本站使用 WebP 格式的 banner,大小 70.02 KB,相比 PNG 格式的 279.65 KB 减少了许多。 因为 SVG 格式在没有 HarmonyOS Sans SC 字体的情况下无法正常显示这个字体(会显示为浏览器默认中文字体),所以本站使用 WebP 格式的 banner,大小 70.02 KB,相比 PNG 格式的 279.65 KB 减少了许多。
+3 -14
View File
@@ -70,7 +70,6 @@ const bannerOffsetByPosition = {
}; };
const bannerOffset = const bannerOffset =
bannerOffsetByPosition[siteConfig.banner.position || "center"]; bannerOffsetByPosition[siteConfig.banner.position || "center"];
--- ---
<!DOCTYPE html> <!DOCTYPE html>
@@ -100,11 +99,10 @@ const bannerOffset =
<meta name="twitter:title" content={pageTitle}> <meta name="twitter:title" content={pageTitle}>
<meta name="twitter:description" content={description || pageTitle}> <meta name="twitter:description" content={description || pageTitle}>
<meta id="theme-color-meta" name="theme-color" content="#48823b" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} /> <meta name="generator" content={Astro.generator} />
<meta id="theme-color-meta" name="theme-color" content="#48823b" />
{favicons.map(favicon => ( {favicons.map(favicon => (
<link rel="icon" <link rel="icon"
href={favicon.src.startsWith('/') ? url(favicon.src) : favicon.src} href={favicon.src.startsWith('/') ? url(favicon.src) : favicon.src}
@@ -133,18 +131,9 @@ const bannerOffset =
} }
// Load the hue from local storage // Load the hue from local storage
const currentDay = new Date().getDay(); const hue = localStorage.getItem('hue') || configHue;
const hue = currentDay === 0 ? 290 : (localStorage.getItem('hue') || configHue);
//const hue = localStorage.getItem('hue') || configHue;
document.documentElement.style.setProperty('--hue', hue); document.documentElement.style.setProperty('--hue', hue);
// 设置主题色(新增这部分)
const themeColor = currentDay === 0 ? '#9e8eef' : '#48823b';
const metaThemeColor = document.getElementById('theme-color-meta');
if (metaThemeColor) {
metaThemeColor.setAttribute('content', themeColor);
}
// calculate the --banner-height-extend, which needs to be a multiple of 4 to avoid blurry text // calculate the --banner-height-extend, which needs to be a multiple of 4 to avoid blurry text
let offset = Math.floor(window.innerHeight * (BANNER_HEIGHT_EXTEND / 100)); let offset = Math.floor(window.innerHeight * (BANNER_HEIGHT_EXTEND / 100));
offset = offset - offset % 4; offset = offset - offset % 4;
+14 -82
View File
@@ -39,7 +39,6 @@ const hasBannerLink = !!siteConfig.banner.credit.url;
const mainPanelTop = siteConfig.banner.enable const mainPanelTop = siteConfig.banner.enable
? `calc(${BANNER_HEIGHT}vh - ${MAIN_PANEL_OVERLAPS_BANNER_HEIGHT}rem)` ? `calc(${BANNER_HEIGHT}vh - ${MAIN_PANEL_OVERLAPS_BANNER_HEIGHT}rem)`
: "5.5rem"; : "5.5rem";
--- ---
<Layout title={title} banner={banner} description={description} lang={lang} setOGTypeArticle={setOGTypeArticle}> <Layout title={title} banner={banner} description={description} lang={lang} setOGTypeArticle={setOGTypeArticle}>
@@ -52,22 +51,14 @@ const mainPanelTop = siteConfig.banner.enable
</div> </div>
</div> </div>
<!-- Banner - 渲染两套,客户端控制显示 --> <!-- Banner -->
<!-- 默认banner --> {siteConfig.banner.enable && <div id="banner-wrapper" class={`absolute z-10 w-full transition duration-700 overflow-hidden`} style={`top: -${BANNER_HEIGHT_EXTEND}vh`}>
{siteConfig.banner.enable && <div id="banner-wrapper-default" class={`absolute z-10 w-full transition duration-700 overflow-hidden`} style={`top: -${BANNER_HEIGHT_EXTEND}vh`}> <ImageWrapper id="banner" alt="Banner image of the blog" class:list={["object-cover h-full transition duration-700 opacity-0 scale-105"]}
<ImageWrapper id="banner-default" alt="Banner image of the blog" class:list={["object-cover h-full transition duration-700 opacity-0"]} src={siteConfig.banner.src} position={siteConfig.banner.position}
src={siteConfig.banner.src} position={siteConfig.banner.position}> >
</ImageWrapper> </ImageWrapper>
</div>} </div>}
<!-- 周日banner -->
{siteConfig.banner.enable && <div id="banner-wrapper-sunday" class={`absolute z-10 w-full transition duration-700 overflow-hidden hidden`} style={`top: -${BANNER_HEIGHT_EXTEND}vh`}>
<ImageWrapper id="banner-sunday" alt="Sunday banner image" class:list={["object-cover h-full transition duration-700 opacity-0"]}
src={"/assets/132398672_p0_master1200_edited.jpg"} position={siteConfig.banner.position}>
</ImageWrapper>
</div>}
<!-- Main content --> <!-- Main content -->
<div class="absolute w-full z-30 pointer-events-none" style={`top: ${mainPanelTop}`}> <div class="absolute w-full z-30 pointer-events-none" style={`top: ${mainPanelTop}`}>
<!-- The pointer-events-none here prevent blocking the click event of the TOC --> <!-- The pointer-events-none here prevent blocking the click event of the TOC -->
@@ -75,28 +66,20 @@ const mainPanelTop = siteConfig.banner.enable
<div id="main-grid" class="transition duration-700 w-full left-0 right-0 grid grid-cols-[17.5rem_auto] grid-rows-[auto_1fr_auto] lg:grid-rows-[auto] <div id="main-grid" class="transition duration-700 w-full left-0 right-0 grid grid-cols-[17.5rem_auto] grid-rows-[auto_1fr_auto] lg:grid-rows-[auto]
mx-auto gap-4 px-0 md:px-4" mx-auto gap-4 px-0 md:px-4"
> >
<!-- Banner credits - 渲染两套 --> <!-- Banner image credit -->
<!-- 默认banner credit --> {hasBannerCredit && <a href={siteConfig.banner.credit.url} id="banner-credit" target="_blank" rel="noopener" aria-label="Visit image source"
{hasBannerCredit && <a href={siteConfig.banner.credit.url} id="banner-credit-default" target="_blank" rel="noopener" aria-label="Visit image source" class:list={["group onload-animation transition-all absolute flex justify-center items-center rounded-full " +
class:list={["group onload-animation transition-all absolute flex justify-center items-center rounded-full " + "px-3 right-4 -top-[3.25rem] bg-black/60 hover:bg-black/70 h-9", {"hover:pr-9 active:bg-black/80": hasBannerLink}]}
"px-3 right-4 -top-[3.25rem] bg-black/60 hover:bg-black/70 h-9", {"hover:pr-9 active:bg-black/80": hasBannerLink}]}> >
<Icon class="text-white/75 text-[1.25rem] mr-1" name="material-symbols:copyright-outline-rounded"></Icon> <Icon class="text-white/75 text-[1.25rem] mr-1" name="material-symbols:copyright-outline-rounded" ></Icon>
<div class="text-white/75 text-xs">{siteConfig.banner.credit.text}</div> <div class="text-white/75 text-xs">{siteConfig.banner.credit.text}</div>
<Icon class:list={["transition absolute text-[oklch(0.75_0.14_var(--hue))] right-4 text-[0.75rem] opacity-0", <Icon class:list={["transition absolute text-[oklch(0.75_0.14_var(--hue))] right-4 text-[0.75rem] opacity-0",
{"group-hover:opacity-100": hasBannerLink}]} name="fa6-solid:arrow-up-right-from-square"> {"group-hover:opacity-100": hasBannerLink}]}
name="fa6-solid:arrow-up-right-from-square">
</Icon> </Icon>
</a>} </a>}
<!-- 周日banner credit -->
{hasBannerCredit && <a href="https://www.pixiv.net/artworks/132398672" id="banner-credit-sunday" target="_blank" rel="noopener" aria-label="Visit image source"
class:list={["hidden group onload-animation transition-all absolute flex justify-center items-center rounded-full " +
"px-3 right-4 -top-[3.25rem] bg-black/60 hover:bg-black/70 h-9", {"hover:pr-9 active:bg-black/80": hasBannerLink}]}>
<Icon class="text-white/75 text-[1.25rem] mr-1" name="material-symbols:copyright-outline-rounded"></Icon>
<div class="text-white/75 text-xs">Pixiv @KiraraShss</div>
<Icon class:list={["transition absolute text-[oklch(0.75_0.14_var(--hue))] right-4 text-[0.75rem] opacity-0",
{"group-hover:opacity-100": hasBannerLink}]} name="fa6-solid:arrow-up-right-from-square">
</Icon>
</a>}
<SideBar class="mb-4 row-start-2 row-end-3 col-span-2 lg:row-start-1 lg:row-end-2 lg:col-span-1 lg:max-w-[17.5rem] onload-animation" headings={headings}></SideBar> <SideBar class="mb-4 row-start-2 row-end-3 col-span-2 lg:row-start-1 lg:row-end-2 lg:col-span-1 lg:max-w-[17.5rem] onload-animation" headings={headings}></SideBar>
<main id="swup-container" class="transition-swup-fade col-span-2 lg:col-span-1 overflow-hidden"> <main id="swup-container" class="transition-swup-fade col-span-2 lg:col-span-1 overflow-hidden">
@@ -139,55 +122,4 @@ const mainPanelTop = siteConfig.banner.enable
{!siteConfig.toc.enable && <div id="toc"></div>} {!siteConfig.toc.enable && <div id="toc"></div>}
</div> </div>
</div> </div>
<script is:inline>
document.addEventListener('DOMContentLoaded', function() {
const currentDay = new Date().getDay();
const isSunday = currentDay === 0;
const isSaturday = currentDay === 6;
// 控制banner显示
const defaultBanner = document.getElementById('banner-wrapper-default');
const sundayBanner = document.getElementById('banner-wrapper-sunday');
const defaultCredit = document.getElementById('banner-credit-default');
const sundayCredit = document.getElementById('banner-credit-sunday');
if (isSunday) {
// 显示周日版本
if (defaultBanner) defaultBanner.style.display = 'none';
if (sundayBanner) {
sundayBanner.style.display = 'block';
sundayBanner.id = 'banner-wrapper'; // 添加这行,设置正确的ID
// 移除图片透明度,让图片显示出来
}
const sundayImg = sundayBanner.querySelector('#banner-sunday');
if (sundayImg) {
sundayImg.id = 'banner'; // 添加这行,设置正确的ID
sundayImg.classList.remove('opacity-0');
sundayImg.classList.add('opacity-100');
}
if (defaultCredit) defaultCredit.classList.add('hidden');
if (sundayCredit) sundayCredit.classList.remove('hidden');
} else {
// 显示默认版本
if (defaultBanner) {
defaultBanner.style.display = 'block';
defaultBanner.id = 'banner-wrapper';
// 修改这里,直接使用原始ID查询
const defaultBannerInner = document.getElementById('banner-default');
if (defaultBannerInner) {
defaultBannerInner.id = 'banner';
defaultBannerInner.classList.remove('opacity-0');
defaultBannerInner.classList.add('opacity-100');
}
}
}
// 周六弹窗逻辑(只在真正的周六显示)
if (isSaturday && !localStorage.getItem("hasSeenPopup")) {
alert("网站可能会在每个周日变个样...\n点击确认后将不再显示此弹窗");
localStorage.setItem("hasSeenPopup", "true");
}
});
</script>
</Layout> </Layout>
+1 -13
View File
@@ -14,24 +14,12 @@ export function getDefaultHue(): number {
} }
export function getHue(): number { export function getHue(): number {
const currentDay = new Date().getDay();
// 去你妈的给我查日期先
if (currentDay === 0){
return 290;
}
// 如果不是,则返回默认值
const stored = localStorage.getItem("hue"); const stored = localStorage.getItem("hue");
return stored ? Number.parseInt(stored) : getDefaultHue(); return stored ? Number.parseInt(stored) : getDefaultHue();
} }
export function setHue(hue: number): void { export function setHue(hue: number): void {
const currentDay = new Date().getDay(); localStorage.setItem("hue", String(hue));
if (currentDay === 0){
//
}
if (currentDay != 0){
localStorage.setItem("hue", String(hue));
}
const r = document.querySelector(":root") as HTMLElement; const r = document.querySelector(":root") as HTMLElement;
if (!r) { if (!r) {
return; return;