1f60f1c908
- Add Course and Module models to Prisma schema - Create seed-learn.json with Daily Fiqh for Beginners (5 modules) - Create seed-learn.js with Hermes patch (strip id/courseId from create) - Add /learn page with course listing - Add /learn/[courseSlug]/[moduleId] page with content + quiz - Quiz data stored as JSON string per module - Content rendered as markdown with Key Concept, Details, Reflection, Action Step sections TODO: - Add audio player component for listen toggle - Add progress tracking per user - Add actual quiz scoring/validation - Connect to TTS pipeline for audio generation
23 lines
572 B
TypeScript
23 lines
572 B
TypeScript
import type { Metadata } from 'next'
|
|
import { AuthProvider } from '@/lib/AuthContext'
|
|
import Navbar from '@/components/Navbar'
|
|
import './globals.css'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Falah - Shariah-Compliant Digital Marketplace',
|
|
description: 'Souq, Nur AI, Forum, Wallet',
|
|
}
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" className="dark">
|
|
<body>
|
|
<AuthProvider>
|
|
<Navbar />
|
|
<main>{children}</main>
|
|
</AuthProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|