From a7fe1f0040af1b6dccbc5de424df9159fe9d2cc4 Mon Sep 17 00:00:00 2001 From: Prokop Simek Date: Thu, 16 Jan 2025 22:36:04 +0100 Subject: [PATCH] feat: improve visuals --- src/app/components/Navigation.tsx | 15 ++++++--------- .../questions/[difficulty]/QuestionsPage.tsx | 16 ++++++++-------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/app/components/Navigation.tsx b/src/app/components/Navigation.tsx index 3baf3b3..8e84990 100644 --- a/src/app/components/Navigation.tsx +++ b/src/app/components/Navigation.tsx @@ -30,15 +30,12 @@ export default function Navigation({ showBack = true }: NavigationProps) { Topics - {showBack && ( - - )} + + About + diff --git a/src/app/topics/[id]/questions/[difficulty]/QuestionsPage.tsx b/src/app/topics/[id]/questions/[difficulty]/QuestionsPage.tsx index 50b88e6..98b68b9 100644 --- a/src/app/topics/[id]/questions/[difficulty]/QuestionsPage.tsx +++ b/src/app/topics/[id]/questions/[difficulty]/QuestionsPage.tsx @@ -5,9 +5,9 @@ import { topics } from '../../../../constants/topics'; import type { TopicId, Difficulty } from '../../../../constants/topics'; const difficultyClasses = { - beginner: 'text-electric-violet bg-electric-violet', - intermediate: 'text-purple bg-purple', - advanced: 'text-turquoise bg-turquoise', + beginner: 'text-electric-violet border-electric-violet', + intermediate: 'text-purple border-purple', + advanced: 'text-turquoise border-turquoise', } as const; const difficultyNumbers = { @@ -19,7 +19,7 @@ const difficultyNumbers = { export default function QuestionsPage(props: { id: string, difficulty: Difficulty, questions: string[] }) { const { id, difficulty, questions } = props; const topic = topics[id as TopicId]; - const [textColorClass, bgColorClass] = difficultyClasses[difficulty].split(' '); + const [textColorClass] = difficultyClasses[difficulty].split(' '); if (!topic) { return null; @@ -28,7 +28,7 @@ export default function QuestionsPage(props: { id: string, difficulty: Difficult return (
-
+
{difficultyNumbers[difficulty]} @@ -36,9 +36,9 @@ export default function QuestionsPage(props: { id: string, difficulty: Difficult {topic.title}
    - {questions.map((question, i) => ( -
  • - + {questions.map((question) => ( +
  • + {question}
  • ))}