import React from 'react'; import { SettingOutlined, QuestionCircleOutlined, LogoutOutlined, DownOutlined} from '@ant-design/icons'; import Icon from '@ant-design/icons'; import AdministrationIcon from '~/components/customIcon/AdministrationIcon'; import MyCoursesIcon from '~/components/customIcon/MyCoursesIcon'; import ExaminationIcon from '~/components/customIcon/ExaminationIcon'; import CommunityIcon from '~/components/customIcon/CommunityIcon'; import NotificationIcon from '~/components/customIcon/NotificationIcon'; import {Layout, Menu, theme, Button, Modal, MenuProps} from 'antd'; import { Dropdown, Space } from 'antd'; import '../../public/assets/ss.css'; let courseData = [ { id : "1", title : "Life History of Dr. Maria Montessori", chapter : "1", Program : "Graduate Program", img : "../../assets/course-blank.jpg" }, { id : "2", title : "Introduction to Montessori Methods", chapter : "2", Program : "Graduate Program", img : "../../assets/course-blank.jpg" }, { id : "3", title : "Exercises on Practical Life", chapter : "3", Program : "Graduate Program", img : "../../assets/course-blank.jpg" } ] const { Header, Content, Sider } = Layout; const items1: MenuProps['items'] = ['1', '2', '3'].map((key) => ({ key, label: `nav ${key}`, })); type MenuItem = Required['items'][number]; const items2: MenuProps['items'] = [ { key: 'sub1', icon: , label: 'Administration', children: [ { key: '1', label: (Class Schedules), }, { key: '2', label: (Classmate Directory), }, { key: '3', label: (Qualifications), }, ], }, { key: 'sub2', icon: , label: 'My Courses', children: [ { key: '4', label: (Graduate Program), }, { key: '5', label: (Post-Graduate Program), }, ], }, { key: 'sub3', icon: , label: 'Examinations', children: [ { key: '6', label: (Exam Scheduled), }, { key: '7', label: (Upcoming Exam), }, { key: '8', label: (Passed Exam), }, ], }, { key: 'sub4', icon: , label: 'Community', children: [ { key: '9', label: (Exam Scheduled), }, { key: '10', label: (Upcoming Exam), }, { key: '11', label: (Passed Exam), }, ], }, { key: 'sub5', icon: , label: 'Notifications', children: [ { key: '12', label: (Exam Scheduled), }, { key: '13', label: (Upcoming Exam), }, { key: '14', label: (Passed Exam), }, ], }, // getItem('Files', '9', ), { key: 'grp', label: '', type: 'group', style: { marginTop: '100px' }, children: [ { key: '15', style: {paddingTop: '10px', paddingBottom: '10px', border: 'none'}, icon: React.createElement(SettingOutlined), label: (

Settings

) }, { key: '16', style: {paddingTop: '10px', paddingBottom: '10px', border: 'none'}, icon: React.createElement(QuestionCircleOutlined), label: (

Help & Support

) }, { key: '17', style: {paddingTop: '10px', paddingBottom: '10px', border: 'none'}, icon: React.createElement(LogoutOutlined), label: (

Logout

) }, ], }, ]; const items: MenuProps['items'] = [ { label: 1st menu item, key: '0', }, { type: 'divider', }, { label: 2nd menu item, key: '1', }, { type: 'divider', }, { label: '3rd menu item', key: '3', }, ]; const App: React.FC = () => { const [open, setOpen] = React.useState(false); const [loading, setLoading] = React.useState(true); const showLoading = () => { setOpen(true); setLoading(true); // Simple loading mock. You should add cleanup logic in real world. setTimeout(() => { setLoading(false); }, 100); }; const { token: { colorBgContainer}, } = theme.useToken(); return ( <> {/* */} Loading Modal

} footer={ } loading={loading} open={open} onCancel={() => setOpen(false)} >

Some contents...

Some contents...

Some contents...

{/*
*/} {/* defaultSelectedKeys={['1']} defaultOpenKeys={['sub1']} */}

Course Content

{courseData.map(data=>(

{data.title}

Chapter {data.chapter} •   {data.Program}

))}

Attendance

Graph

Upcoming Classes

Accomplishments / Qualifications

Upcoming Tests

); }; export default App;