PROMPT: BUILD "SIPIT NGANJUK TIMUR 1" (SISTEM INFORMASI PENDIDIKAN ISLAM TERPADU) ## 1. ROLE & PROJECT VISION Act as a Lead Full-Stack EdTech Developer and UI/UX Expert. Your task is to architect and build a modern, professional, Islamic-based Education SaaS application called "Portal SIPIT Nganjuk Timur 1". This is a Dapodik-style comprehensive management system for volunteer educators (PJP) at the village (Desa) and group (Kelompok) levels. The UI must feel premium, using an Islamic-inspired modern color palette (Emerald Green, Gold accents, crisp white background), heavily relying on gamification (Reward System) to encourage user engagement. ## 2. TECH STACK (VERCEL READY) * Framework: Next.js 14+ (App Router), React, TypeScript. * Styling: Tailwind CSS + Shadcn/UI (Cards, Dialogs, Tables, Tabs, Forms). * Charts & Visuals: Recharts (for data visualization). * File Uploads: UploadThing or Supabase Storage (for activity photos). * Icons: Lucide React (use Islamic/Education relevant icons where possible). * Database/State (Mock for now): Design the frontend components assuming a robust REST API backend. ## 3. CORE APP ARCHITECTURE & ROUTING Generate a modern Sidebar layout with the following pages (routes): ### A. /dashboard (Main Analytics & Reward System) * Top Metric Cards: Total Siswa, Total Kelompok Aktif, Rata-rata Kehadiran Bulan Ini. * Grafik Pencapaian (Charts): A Line/Bar chart showing "Tren Kehadiran & Capaian Materi" over the last 6 months. * Leaderboard & Sistem Reward: A gamified "Top 3 Kelompok Terbaik" card. Groups earn "Bintang Sabilillah" (points) for: On-time monthly reports, high attendance, and complete photo uploads. Display them with Gold/Silver/Bronze badges. ### B. /data-generus (Biodata Siswa Dapodik-Style) * A data table listing all students with filters for Category (Caberawit/Muda-Mudi), Desa, and Kelompok. * An "Add New Siswa" button opening a comprehensive form (Implement Dependent Dropdown for Desa -> Kelompok: Kertosono has 8 groups, Warujayeng has 9 groups). ### C. /input-nilai (Mikro - Evaluasi Semesteran) * A spreadsheet-like matrix/table interface for teachers to input grades quickly. * Columns: Nama Siswa, Nilai Bacaan Al-Quran/Tajwid, Nilai Hafalan Dalil, Nilai Akhlaq/Adab, Status Lulus/Remedial. * UX Note: Must be easy to tab through and save in bulk. ### D. /evaluasi-bulanan (Makro - Laporan Kelompok) * Target Bulanan: Form to input "Persentase Kehadiran" and "Target Capaian Mayoritas". * Problem Solving Report: Text areas for "Kendala di Lapangan" and "Solusi yang Telah Dilakukan". * Dokumentasi (Photo Upload): Drag-and-drop area to upload photos of group activities (Kegiatan KBM, Ekstrakurikuler, dll). ### E. /agenda (Jadwal & Kalender) * A calendar view or clean list view showing upcoming events (e.g., "Turba Kurikulum", "Rapat Musyawarah Daerah", "Ujian Asrama"). * Countdown timer for the nearest big event. ### F. /bank-materi (Knowledge Base & Contoh Materi) * A grid of downloadable resources formatted as beautiful document cards. * Categories: Buku Saku Kurikulum, Video Tutorial Mengajar, Contoh Silabus, Panduan Problem Solving. ## 4. SPECIFIC UI/UX REQUIREMENTS * Authentication Flow: The app should have a beautiful Login screen with the organization's logo space. (Create a mock UI for this). * Islamic Professionalism: Use subtle geometric patterns (Islamic art style) lightly in the background of the header or cards to give it an exclusive cultural identity without being visually overwhelming. * Mobile Responsiveness: Since PJP will use this via smartphones in the field, all tables must be horizontally scrollable or convert into stacked cards on mobile screens. The Sidebar should collapse into a Hamburger Menu. * Interactivity: Include hover states, loading skeletons for charts/tables, and success toast notifications for all form submissions (especially when earning a "Reward Point"). ## 5. DELIVERABLES Please provide the code for: 1. The main global Layout (app/layout.tsx) including the Sidebar and Top Navbar. 2. The Dashboard page (app/dashboard/page.tsx) integrating the Charts and the Reward Leaderboard. 3. The /input-nilai page demonstrating the Dapodik-style matrix UI. 4. The /evaluasi-bulanan page showing the photo upload area and problem-solving text areas. # PROMPT TAMBAHAN: HALAMAN AUTHENTICATION (LOGIN) Tolong tambahkan satu halaman khusus untuk /login. Halaman ini adalah gerbang utama aplikasi. User tidak bisa mengakses /dashboard atau halaman lain sebelum melewati halaman ini. Spesifikasi UI Login: 1. Layout: Split screen (di desktop). Sebelah kiri adalah gambar ilustrasi/pola Islamic modern atau foto kegiatan pendidikan. Sebelah kanan adalah form login (berada di tengah/center). 2. Form Login: * Logo "SIPIT Nganjuk Timur 1" di bagian atas form. * Input: "Email / ID Kelompok" * Input: "Password" (dengan ikon mata untuk show/hide password). * Tombol "Masuk ke Portal" (warna Emerald Green). * Teks kecil di bawah tombol: "Hubungi Admin PPG jika Anda lupa akses." 3. Desain: Clean, minimalis, profesional, dan responsif (berubah menjadi single column jika dibuka di HP).
Show full message