diff --git a/src/pages/index.js b/src/pages/index.js
index bc45958..18ab108 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -36,27 +36,61 @@ export default function Index (props) {
})
}, [])
+ const renderQAItem = (n, key) => {
+ return (
+
-
-
- {key}:
-
-
-
+ let n = news[key]
+ if (n.q) {
+ return (
+
+ {renderQAItem(n, key)}
+
-
- )
+ )
+ } else {
+ return (
+
+ {renderNewsItem(n, key)}
+
+
+ )
+ }
}).reverse()
return (
@@ -89,7 +123,6 @@ export default function Index (props) {
{renderMotd()}
-
{Object.keys(links).map((key) => {
let link = links[key]
return (
diff --git a/src/pages/index.module.css b/src/pages/index.module.css
index 0189329..855c8a0 100644
--- a/src/pages/index.module.css
+++ b/src/pages/index.module.css
@@ -21,32 +21,39 @@
margin: 5px;
}
-
-.questioncontainer {
- margin: 5px;
+.itemContainer {
+ margin: 20px 5px;
}
-.questioncontainer:hover {
+.itemContainer:hover {
background-color: var(--hoover-color);
}
-.questionscontainer {
- margin: 10px;
+.newsBody {
+ margin: 0px 5px;
+ font-size: 18px;
+ color: #fff;
+}
+
+.newsTitle {
+ font-size: 28px;
+ color: var(--text-color);
+ margin: 0px 5px;
}
.question {
- font-weight: 'bold';
+ font-weight: "bold";
font-size: 16px;
color: #fff;
- margin: 5px;
+ margin: 0px 5px;
}
.answer {
- margin: 5px;
+ margin: 0px 5px;
}
-.questionnumber {
+.itemNumber {
color: #fff;
- margin: 5px;
- font-size: 20px;
+ margin: 0px 5px;
+ font-size: 24px;
}