diff --git a/package.json b/package.json index a3cdc07..ebd0676 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@skeletonlabs/skeleton-svelte": "^1.2.1", "@tailwindcss/vite": "^4.1.4", "astro": "^5.7.5", + "daisyui": "^5.0.28", "lucide-svelte": "^0.503.0", "svelte": "^5.28.2", "tailwindcss": "^4.1.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b1f7378..bf7659e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,6 +23,9 @@ importers: astro: specifier: ^5.7.5 version: 5.7.5(jiti@2.4.2)(lightningcss@1.29.2)(rollup@4.40.0)(typescript@5.8.3)(yaml@2.7.1) + daisyui: + specifier: ^5.0.28 + version: 5.0.28 lucide-svelte: specifier: ^0.503.0 version: 0.503.0(svelte@5.28.2) @@ -1095,6 +1098,9 @@ packages: csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + daisyui@5.0.28: + resolution: {integrity: sha512-H082p8Lg3c7Se9wTbjfSOOhfUbp3BnOM2+cdr3OeY5G1Ll7GYLXB9NWLHgitkTsB1pQKwHRYYchqN2YG0VVShg==} + debug@4.4.0: resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} engines: {node: '>=6.0'} @@ -3588,6 +3594,8 @@ snapshots: csstype@3.1.3: {} + daisyui@5.0.28: {} + debug@4.4.0: dependencies: ms: 2.1.3 diff --git a/src/components/Header.svelte b/src/components/Header.svelte index 6adf7a6..bd4f3d1 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -1,10 +1,9 @@
-
-
- + class="sticky top-0 z-50 w-full transition-all duration-300 {isScrolled ? 'shadow-md' : ''} + {isScrolled ? 'bg-base-100/95' : 'bg-base-100'} + backdrop-blur-sm border-b border-neutral-content/10"> +
+
+
- - -
- {#if mobileMenuOpen} -
-
- 首页 - 浏览 - 热门 - 最新 - 关于 - - -
- - -
-
+
+ + {#each navItems as item} + + + {item.name} + + {/each}
{/if}
@@ -200,16 +150,25 @@ \ No newline at end of file diff --git a/src/components/MirrorList.svelte b/src/components/MirrorList.svelte index 440c65e..60e6f0d 100644 --- a/src/components/MirrorList.svelte +++ b/src/components/MirrorList.svelte @@ -1,6 +1,7 @@ diff --git a/src/pages/index.astro b/src/pages/index.astro index 60d0e10..70ac41e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -16,7 +16,7 @@ try { const response = await fetch("http://localhost:8082/static/tunasync.json"); if (!response.ok) { - throw new Error(`HTTP错误: ${response.status}`); + throw new Error(`HTTP 错误: ${response.status}`); } const data = await response.json(); @@ -33,28 +33,24 @@ try { --- -
-
-

- 欢迎使用我的镜像站 +
+ {/* Slogan Section based on the image */} +
+ {/* Added basic styling similar to image */} +

+ Open Source Software Mirror

-

- 快速、稳定、可靠的文件下载服务 +

+ Welcome to Central South University Mirror Station +

+

+ Let's make the world a better place together!

-
+ {/* Existing Popular Mirrors Section */}
-

热门镜像

- +
diff --git a/src/styles/global.css b/src/styles/global.css index 0cd7886..0d793fd 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1,10 +1,8 @@ @import 'tailwindcss'; -@import '@skeletonlabs/skeleton'; -@import '@skeletonlabs/skeleton/optional/presets'; -@import '@skeletonlabs/skeleton/themes/cerberus'; - -@source '@skeletonlabs/skeleton-svelte/dist'; +@plugin "daisyui" { + themes: corporate --default, dark --prefersdark; +} @custom-variant dark (&:where(.dark, .dark *));