diff --git a/login-frontend/src/App.js b/login-frontend/src/App.js index 444e293..0a38997 100644 --- a/login-frontend/src/App.js +++ b/login-frontend/src/App.js @@ -5,10 +5,11 @@ import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import FirstPage from './pages/FirstPage'; import AuthPage from './pages/authPage'; -import StudentDashBoard from './pages/StudentDashboard'; -import Course from './components/coursePage/Course'; -import Course1 from './components/coursePage/Course1'; -import TeacherDashBoard from './pages/TeacherDashBoard'; +import StudentDashBoard from './pages/dashboardPage/StudentDashboard'; +import Course from './pages/coursePage/Course'; +import Course1 from './pages/coursePage/Course1'; +import CourseRegistration from './pages/coursePage/CourseRegistration'; +import TeacherDashBoard from './pages/dashboardPage/TeacherDashBoard'; function App() { const [username, setUsername] = useState(''); @@ -43,6 +44,7 @@ function App() { } /> } /> } /> + } /> ); diff --git a/login-frontend/src/components/DashBoard/lessonPlan.js b/login-frontend/src/components/dashboard/lessonPlan.js similarity index 100% rename from login-frontend/src/components/DashBoard/lessonPlan.js rename to login-frontend/src/components/dashboard/lessonPlan.js diff --git a/login-frontend/src/components/DashBoard/studentInfo.js b/login-frontend/src/components/dashboard/studentInfo.js similarity index 100% rename from login-frontend/src/components/DashBoard/studentInfo.js rename to login-frontend/src/components/dashboard/studentInfo.js diff --git a/login-frontend/src/components/DashBoard/studentTraining.js b/login-frontend/src/components/dashboard/studentTraining.js similarity index 100% rename from login-frontend/src/components/DashBoard/studentTraining.js rename to login-frontend/src/components/dashboard/studentTraining.js diff --git a/login-frontend/src/components/DashBoard/subjectSchedule.js b/login-frontend/src/components/dashboard/subjectSchedule.js similarity index 100% rename from login-frontend/src/components/DashBoard/subjectSchedule.js rename to login-frontend/src/components/dashboard/subjectSchedule.js diff --git a/login-frontend/src/components/DashBoard/teacherInfo.js b/login-frontend/src/components/dashboard/teacherInfo.js similarity index 100% rename from login-frontend/src/components/DashBoard/teacherInfo.js rename to login-frontend/src/components/dashboard/teacherInfo.js diff --git a/login-frontend/src/components/header_footer/FirstFooter.js b/login-frontend/src/components/header_footer/FirstFooter.js index aa02d1f..88f9891 100644 --- a/login-frontend/src/components/header_footer/FirstFooter.js +++ b/login-frontend/src/components/header_footer/FirstFooter.js @@ -6,7 +6,7 @@ import '../../../node_modules/bootstrap/dist/css/bootstrap.min.css'; function FirstFooter() { return ( <> -
+
@@ -59,7 +59,7 @@ function FirstFooter() { Copyright © 2024

-
+
); } diff --git a/login-frontend/src/components/header_footer/FirstHeader.js b/login-frontend/src/components/header_footer/FirstHeader.js index c03e6ab..3b570ea 100644 --- a/login-frontend/src/components/header_footer/FirstHeader.js +++ b/login-frontend/src/components/header_footer/FirstHeader.js @@ -1,4 +1,5 @@ import React, { useState, useEffect } from 'react'; +import axios from 'axios'; import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; import { Navbar, Nav, Form, Button, Row, Col } from "react-bootstrap"; import Dropdown from "react-bootstrap/Dropdown"; @@ -22,16 +23,16 @@ function FirstHeader() { logo -

GIẢNG VIÊN

+

TEACHER

-

SINH VIÊN

+

STUDENT

-

QUẢN LÝ

+

ADMIN

-
- +
+ - + - Thông báo + Notifications - {/* Notifications */} {notifications.map((notification, index) => ( {notification} ))} {notifications.length === 0 && ( No notifications )} - {/* - - Clear Notifications - */}
diff --git a/login-frontend/src/components/header_footer/Footer.js b/login-frontend/src/components/header_footer/Footer.js index e6cb36a..c493842 100644 --- a/login-frontend/src/components/header_footer/Footer.js +++ b/login-frontend/src/components/header_footer/Footer.js @@ -5,14 +5,14 @@ import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; function Footer() { return ( <> -
+

Copyright © 2024 | All rights reserved

Mọi thắc mắc vui lòng liên hệ email: info@mut.edu.vn

-
+ ); } diff --git a/login-frontend/src/components/header_footer/Header.js b/login-frontend/src/components/header_footer/StudentHeader.js similarity index 86% rename from login-frontend/src/components/header_footer/Header.js rename to login-frontend/src/components/header_footer/StudentHeader.js index 43df0e1..a54a915 100644 --- a/login-frontend/src/components/header_footer/Header.js +++ b/login-frontend/src/components/header_footer/StudentHeader.js @@ -4,10 +4,10 @@ import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; import { Navbar, Nav, Form, Button, Row, Col } from "react-bootstrap"; import NavDropdown from 'react-bootstrap/NavDropdown'; -function Header() { +function StudentHeader() { return ( <> - + logo {/**/} @@ -15,7 +15,7 @@ function Header() { Khóa học của tôi - Đăng ký môn học + Đăng ký môn học
@@ -34,4 +34,4 @@ function Header() { ); } -export default Header; \ No newline at end of file +export default StudentHeader; \ No newline at end of file diff --git a/login-frontend/src/components/header_footer/TeacherHeader.js b/login-frontend/src/components/header_footer/TeacherHeader.js new file mode 100644 index 0000000..cae5a62 --- /dev/null +++ b/login-frontend/src/components/header_footer/TeacherHeader.js @@ -0,0 +1,28 @@ +import React, { useState, useEffect } from 'react'; +import axios from 'axios'; +import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; +import { Navbar, Nav, Form, Button, Row, Col } from "react-bootstrap"; +import NavDropdown from 'react-bootstrap/NavDropdown'; + +function TeacherHeader() { + return ( + <> + + logo +
+

NGUYEN VAN B - MSGV

+
+ +
+ + ); +} + +export default TeacherHeader; \ No newline at end of file diff --git a/login-frontend/src/pages/Dashboard.css b/login-frontend/src/pages/dashboardPage/Dashboard.css similarity index 100% rename from login-frontend/src/pages/Dashboard.css rename to login-frontend/src/pages/dashboardPage/Dashboard.css diff --git a/login-frontend/src/pages/StudentDashboard.js b/login-frontend/src/pages/dashboardPage/StudentDashboard.js similarity index 83% rename from login-frontend/src/pages/StudentDashboard.js rename to login-frontend/src/pages/dashboardPage/StudentDashboard.js index 337d8ce..98d6edf 100644 --- a/login-frontend/src/pages/StudentDashboard.js +++ b/login-frontend/src/pages/dashboardPage/StudentDashboard.js @@ -1,8 +1,8 @@ import React, { useState } from 'react'; -import StudentInfo from './../components/DashBoard/studentInfo'; -import Training from './../components/DashBoard/studentTraining'; -import Footer from './../components/header_footer/Footer'; -import '../../node_modules/bootstrap/dist/css/bootstrap.min.css'; +import StudentInfo from '../../components/dashboard/studentInfo'; +import Training from '../../components/dashboard/studentTraining'; +import Footer from '../../components/header_footer/Footer'; +import '../../../node_modules/bootstrap/dist/css/bootstrap.min.css'; import { BrowserRouter as Router, Routes, Route, Link } from 'react-router-dom'; import './Dashboard.css'; @@ -15,7 +15,7 @@ function DataTable() { const [isOpen, setIsOpen] = useState(false); return ( -
+