From 3f52d609a3ecadb919a0bfb7f6df842378306cf7 Mon Sep 17 00:00:00 2001 From: lsy Date: Thu, 5 Dec 2024 16:58:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=B2=92=E5=AD=90=E5=8A=A8=E7=94=BB=EF=BC=8C=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=88=87=E6=8D=A2=EF=BC=8C=E6=BB=9A=E5=8A=A8=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E8=A2=AB=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/app/root.tsx | 61 ++-- frontend/app/routes.tsx | 23 +- frontend/hooks/ParticleImage.tsx | 391 ++++++++++++------------- frontend/hooks/echoes.tsx | 30 +- frontend/hooks/error.tsx | 7 +- frontend/hooks/themeMode.tsx | 79 +++-- frontend/interface/layout.ts | 15 +- frontend/interface/post.ts | 28 +- frontend/interface/template.ts | 2 +- frontend/styles/echoes.css | 16 + frontend/tailwind.config.ts | 4 +- frontend/themes/echoes/about.tsx | 228 +++++++------- frontend/themes/echoes/article.tsx | 336 +++++++++++---------- frontend/themes/echoes/layout.tsx | 51 ++-- frontend/themes/echoes/theme.config.ts | 8 +- 15 files changed, 719 insertions(+), 560 deletions(-) diff --git a/frontend/app/root.tsx b/frontend/app/root.tsx index f14bcd9..1980afe 100644 --- a/frontend/app/root.tsx +++ b/frontend/app/root.tsx @@ -7,41 +7,54 @@ import { } from "@remix-run/react"; import { NotificationProvider } from "hooks/notification"; import { Theme } from "@radix-ui/themes"; -import { useEffect, useState } from "react"; +import { ThemeScript } from "hooks/themeMode"; import "~/index.css"; export function Layout() { return ( - + - - - Echoes -