添加了postsPanel作为通用帖子显示板,增加了对jest测试的配置,添加了论坛主页,设定了论坛全局框架,设定了论坛基础主题色及主题切换、字号切换逻辑
Change-Id: I9fad0cf577088adb00c9850d405ccd23e6072413
diff --git a/src/global.css b/src/global.css
index 8d1922e..b49490a 100644
--- a/src/global.css
+++ b/src/global.css
@@ -4,7 +4,7 @@
height: 100vh;
width: 100vw;
background-color: #e6f7ff; /* Light blue background */
- display: flex;
+ /* display: flex; */
justify-content: center;
align-items: center;
font-family: Arial, sans-serif; /* Optional: Set a global font */
@@ -16,9 +16,24 @@
height: 100vh;
width: 100vw;
background-color: #e6f7ff; /* Light blue background */
- display: flex;
+ /* display: flex; */
justify-content: center;
align-items: center;
font-family: Arial, sans-serif; /* Optional: Set a global font */
box-sizing: border-box;
-}
\ No newline at end of file
+}
+
+body.light {
+ --bg-color: #f9f9f9;
+ --text-color: #000000;
+ --card-bg: #ffffff;
+ --border-color: #e0e0e0;
+ }
+
+body.dark {
+ --bg-color: #2b2b2b;
+ --text-color: #f1f1f1;
+ --card-bg: #1e1e1e;
+ --border-color: #444444;
+ }
+
\ No newline at end of file