import { useState } from 'react';
import { BarChart, Activity, BookOpen, Calculator, MessageCircle } from 'lucide-react';
export default function Dashboard() {
const [posts] = useState([
{
id: 1,
author: "Devon Lane",
time: "23h",
content: "Hello all, I'm posting this message to get advice on my test practice. Please click here to view.",
likes: 24,
comments: 8,
shares: 2
},
// More posts would follow the same structure
]);
const subjects = [
{ name: "Physical Science", icon: , progress: 85 },
{ name: "Literature Arts", icon: , progress: 72 },
{ name: "Mathematics", icon: , progress: 68 },
];
const attendance = [
{ month: 'Jul', present: 90, absent: 10 },
{ month: 'Aug', present: 85, absent: 15 },
{ month: 'Sep', present: 95, absent: 5 },
{ month: 'Oct', present: 88, absent: 12 },
{ month: 'Nov', present: 92, absent: 8 },
{ month: 'Dec', present: 87, absent: 13 },
];
return (
{/* Header */}
John Kwame Doe
john.doe@gmail.com
{/* Left Column */}
{/* Subjects */}
Subjects
{subjects.map((subject, index) => (
{subject.icon}
{subject.name}
{subject.progress}%
))}
{/* Attendance Chart */}
Attendance
{attendance.map((month, index) => (
))}
{/* Feed */}
What's Happening?
{posts.map((post) => (
{post.author}
• {post.time}
{post.content}
))}
{/* Right Column */}
Upcoming Events
{['Test First Week', 'Independence Day', 'Public Holiday', 'End of Term'].map((event, index) => (
))}
Student Access Panel
);
}