Skip to content

Commit 8208c6f

Browse files
committed
Add QuestionsStatsPage component to display question statistics by category and difficulty. Update Navigation component to include a link to the new Questions page. Enhance question data in JSON files with additional entries for better coverage.
1 parent 3c49b3f commit 8208c6f

9 files changed

Lines changed: 3074 additions & 199 deletions

File tree

app/questions/page.tsx

Lines changed: 342 additions & 0 deletions
Large diffs are not rendered by default.

components/Navigation.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function Navigation() {
1111
const links = [
1212
{ href: '/', label: 'Home', icon: HomeIcon },
1313
{ href: '/quiz', label: 'Quiz', icon: QuizIcon },
14+
{ href: '/questions', label: 'Questions', icon: QuestionsIcon },
1415
{ href: '/stats', label: 'Stats', icon: StatsIcon },
1516
];
1617

@@ -141,6 +142,14 @@ function QuizIcon({ className }: { className?: string }) {
141142
);
142143
}
143144

145+
function QuestionsIcon({ className }: { className?: string }) {
146+
return (
147+
<svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
148+
<path strokeLinecap="round" strokeLinejoin="round" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
149+
</svg>
150+
);
151+
}
152+
144153
function StatsIcon({ className }: { className?: string }) {
145154
return (
146155
<svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>

0 commit comments

Comments
 (0)