diff --git a/frontend/src/pages/SolutionsPage.tsx b/frontend/src/pages/SolutionsPage.tsx
index d625652..9a43875 100644
--- a/frontend/src/pages/SolutionsPage.tsx
+++ b/frontend/src/pages/SolutionsPage.tsx
@@ -1,8 +1,7 @@
import { useEffect, useState } from "react";
-//Test
export default function SolutionsPage({ mode, onBack }) {
-const [questions, setQuestions] = useState([]);
+ const [questions, setQuestions] = useState([]);
const [search, setSearch] = useState("");
useEffect(() => {
@@ -20,10 +19,15 @@ const [questions, setQuestions] = useState([]);
});
return (
-
+
-
Lösungen ({mode.toUpperCase()}-Modus)
-
@@ -35,12 +39,12 @@ const [questions, setQuestions] = useState([]);
value={search}
onChange={(e) => setSearch(e.target.value)}
placeholder="Frage oder Antwort durchsuchen..."
- className="w-full px-4 py-2 pr-10 border rounded focus:outline-none focus:ring-2 focus:ring-blue-500"
+ className="w-full px-4 py-2 pr-10 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
{search && (
setSearch("")}
- className="absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-800"
+ className="absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-300 hover:text-gray-800 dark:hover:text-white"
>
✕
@@ -48,12 +52,17 @@ const [questions, setQuestions] = useState([]);
{filtered.length === 0 && (
-
Keine passenden Fragen gefunden.
+
+ Keine passenden Fragen gefunden.
+
)}
{filtered.map((frage, idx) => (
-
+
{idx + 1}. {frage.frage}
@@ -61,7 +70,11 @@ const [questions, setQuestions] = useState([]);
{frage.antworten.map((antwort, aidx) => (
{antwort.text}