diff --git a/site/blog/app/(web)/code-snippets/[slug]/page.tsx b/site/blog/app/(web)/code-snippets/[slug]/page.tsx index 540e4ea..b79ec85 100644 --- a/site/blog/app/(web)/code-snippets/[slug]/page.tsx +++ b/site/blog/app/(web)/code-snippets/[slug]/page.tsx @@ -80,7 +80,7 @@ export default async ({ params }: Props) => { return ( <> -
+

{post.meta.title}

@@ -93,7 +93,7 @@ export default async ({ params }: Props) => { - {/* */} + {/* */}
{/*
*/} -
+
最近修改时间:
@@ -116,7 +116,7 @@ export default async ({ params }: Props) => { {prev && ( {prev.title} @@ -127,7 +127,7 @@ export default async ({ params }: Props) => { {next && ( {next.title} diff --git a/site/blog/app/(web)/code-snippets/page.tsx b/site/blog/app/(web)/code-snippets/page.tsx index b384579..7b7f03a 100644 --- a/site/blog/app/(web)/code-snippets/page.tsx +++ b/site/blog/app/(web)/code-snippets/page.tsx @@ -16,7 +16,7 @@ export default async function Projects() { return ( <>
-
+
Total {posts?.length} Code Snippets
{posts?.map((post: any) => ( @@ -25,7 +25,7 @@ export default async function Projects() { className="group font-normal overflow-hidden cursor-pointer no-underline transition fade-in-up " key={post.slug} > -
+
{post.meta?.title}
diff --git a/site/blog/app/(web)/components/Header.tsx b/site/blog/app/(web)/components/Header.tsx index d18919f..3664bef 100644 --- a/site/blog/app/(web)/components/Header.tsx +++ b/site/blog/app/(web)/components/Header.tsx @@ -95,7 +95,7 @@ export default () => ( className="flex-shrink-0 h-4 w-4 " aria-hidden="true" /> - + {item.name} diff --git a/site/blog/app/(web)/components/ScrollTop.tsx b/site/blog/app/(web)/components/ScrollTop.tsx index 2fe8d14..2a86a0a 100644 --- a/site/blog/app/(web)/components/ScrollTop.tsx +++ b/site/blog/app/(web)/components/ScrollTop.tsx @@ -12,8 +12,10 @@ export default function ScrollTop() { 300, "opacity-0": y < 300 } + `fixed z-40 right-8 bottom-8 rounded-full w-10 h-10 bg-slate-50 flex items-center justify-center text-slate-400 transition ease-in-out + hover:bg-slate-100 hover:text-slate-500 + dark:bg-slate-700 dark:hover:bg-slate-600`, + { "opacity-80 cursor-pointer": y > 300, "opacity-0": y < 300 }, )} > diff --git a/site/blog/app/(web)/components/Theme.tsx b/site/blog/app/(web)/components/Theme.tsx index 78433b6..ab42762 100644 --- a/site/blog/app/(web)/components/Theme.tsx +++ b/site/blog/app/(web)/components/Theme.tsx @@ -9,7 +9,7 @@ export default function Theme() { return ( setTheme(isDark ? "light" : "dark")} - className="text-slate-800 dark:text-white cursor-pointer" + className="text-slate-600 dark:text-slate-200 cursor-pointer" > diff --git a/site/blog/app/(web)/page.tsx b/site/blog/app/(web)/page.tsx index 5849042..7933fdb 100644 --- a/site/blog/app/(web)/page.tsx +++ b/site/blog/app/(web)/page.tsx @@ -17,10 +17,10 @@ export default function Home() {
-
+
专注于前端的全栈工程师,参与工作距今已经有十多年,有着丰富的2B系统开发及架构经验。早年从事UI设计工作,因此对用户体验及交互上具有一定的把控。目前主要以前端开发为主,对服务端技术如:Node.js、Next.js、NestJS也具备一定的掌握。擅长以React为核心的各类技术栈进行软件开发,喜欢工程化方面领域,喜欢交互设计。
-
    +
    • 🎉 技术栈包括:React、Next.js、Node.js、Wagmi、Viem、Electron、TypeScript、Sass、UnoCSS、Tailwind CSS等。 @@ -41,7 +41,7 @@ export default function Home() { width={120} height={120} alt="qr code" - className="opacity-60 grayscale mt-1" + className="opacity-60 mt-1 dark:invert" />
    diff --git a/site/blog/app/(web)/posts/[slug]/page.tsx b/site/blog/app/(web)/posts/[slug]/page.tsx index 9e44ece..8b96cb9 100644 --- a/site/blog/app/(web)/posts/[slug]/page.tsx +++ b/site/blog/app/(web)/posts/[slug]/page.tsx @@ -80,7 +80,7 @@ export default async ({ params }: Props) => { return ( <> -
    +

    {post.meta.title}

    @@ -93,7 +93,7 @@ export default async ({ params }: Props) => { - {/* */} + {/* */}
    {/*
    */} -
    +
    最近修改时间:
    @@ -116,7 +116,7 @@ export default async ({ params }: Props) => { {prev && ( {prev.title} @@ -127,7 +127,7 @@ export default async ({ params }: Props) => { {next && ( {next.title} diff --git a/site/blog/app/(web)/posts/page.tsx b/site/blog/app/(web)/posts/page.tsx index 8738361..3420f5b 100644 --- a/site/blog/app/(web)/posts/page.tsx +++ b/site/blog/app/(web)/posts/page.tsx @@ -18,7 +18,7 @@ export default async function Posts() { return ( <> -
    +
    Total {posts?.length} Posts
    @@ -28,10 +28,10 @@ export default async function Posts() { className="group font-normal overflow-hidden cursor-pointer no-underline transition fade-in-up " key={post.slug} > -
    +
    {post.meta?.title}
    -
    +
    {post.meta.draft ? ( Draft @@ -41,14 +41,14 @@ export default async function Posts() { - + {/* {post.meta.category} */} {post.meta?.tags.slice(0, 3).map((tag: string) => ( ))}
    -
    +
    {post.meta.description || post.excerpt}
    diff --git a/site/blog/app/(web)/projects/page.tsx b/site/blog/app/(web)/projects/page.tsx index a5b66cc..92b362f 100644 --- a/site/blog/app/(web)/projects/page.tsx +++ b/site/blog/app/(web)/projects/page.tsx @@ -17,21 +17,21 @@ export default function Projects() { return ( <> {/* text-transparent text-stroke-2 text-stroke-hex-aaa */} -
    +
    Projects
    {projects.map((proj) => ( -
    +
    {proj.icons?.map((c, i) => ( -

    {proj.desc}

    +

    {proj.desc}

    {proj.sub_href ? : null} diff --git a/site/blog/app/styles/globals.scss b/site/blog/app/styles/globals.scss index 10f15b7..a567a73 100644 --- a/site/blog/app/styles/globals.scss +++ b/site/blog/app/styles/globals.scss @@ -746,12 +746,12 @@ ::-webkit-scrollbar { width: 4px; height: 4px; - background-color: #eee; } /*定义滚动条轨道 */ ::-webkit-scrollbar-track { background-color: #eee; + border-radius: 4px; } /*定义滑块 */ @@ -760,6 +760,18 @@ border-radius: 4px; } +.dark { + /*定义滚动条轨道 */ + ::-webkit-scrollbar-track { + @apply bg-slate-600; + } + + /*定义滑块 */ + ::-webkit-scrollbar-thumb { + @apply bg-slate-700; + } +} + /* */ .logo-rotate {