import React, {useState} 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/ss1.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: `navx ${key}`, })); type MenuItem = Required['items'][number]; const items2: MenuProps['items'] = [ { key: 'subx1', icon: , label: 'Administration', children: [ { key: '1x', label: (Class Schedules), }, { key: '2x', label: (Classmate Directory), }, { key: '3x', label: (Qualifications), }, ], }, { key: 'subx2', icon: , label: 'My Courses', children: [ { key: '4x', label: (Graduate Program), }, { key: '5x', label: (Post-Graduate Program), }, ], }, { key: 'subx3', icon: , label: 'Examinations', children: [ { key: '6x', label: (Exam Scheduled), }, { key: '7x', label: (Upcoming Exam), }, { key: '8x', label: (Passed Exam), }, ], }, { key: 'subx4', icon: , label: 'Community', children: [ { key: '9x', label: (Exam Scheduled), }, { key: '10x', label: (Upcoming Exam), }, { key: '11x', label: (Passed Exam), }, ], }, { key: 'subx5', icon: , label: 'Notifications', children: [ { key: '12x', label: (Exam Scheduled), }, { key: '13x', label: (Upcoming Exam), }, { key: '14x', label: (Passed Exam), }, ], }, // getItem('Files', '9', ), { key: 'grp', label: '', type: 'group', style: { marginTop: '100px' }, children: [ { key: '15x', style: {paddingTop: '10px', paddingBottom: '10px', border: 'none'}, icon: React.createElement(SettingOutlined, { style: { color: '#FFF' } }), label: (

Settings

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

Help & Support

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

Logout

) }, ], }, ]; const items: MenuProps['items'] = [ { label: 1st menu item, key: '01', }, { type: 'divider', }, { label: 2nd menu item, key: '02', }, { type: 'divider', }, { label: '3rd menu item', key: '03', }, ]; const App: React.FC = () => { const [collapsed, setCollapsed] = useState(false); 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...

{/*
*/}
setCollapsed(value)} width={310} style={{overflow: 'auto', height: '110vh', position: 'fixed', left: 0, top: 0, bottom: 0, background: 'linear-gradient(180deg, #2F1B08D6 0%, #000000D6 83.93%)', borderRight: '1px solid #CFCFCF', borderBottom: '2px solid #000'}}>
{/* 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;