Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import Assignment from "./pages/generation/Assignment";
import Deposit from "./pages/generation/Deposit";
import Intro from "./Intro";
import Admin from "./pages/admin/Admin";
import MagageStudent from "./pages/admin/MagageStudent";
import MagageTask from "./pages/admin/MagageTask";
import AttendanceCode from "./pages/admin/AttendanceCode";
import Attendance from "./pages/generation/Attendance";

function App() {
Expand All @@ -19,6 +22,9 @@ function App() {
<Route path="/attendance" element={<Attendance />} />
<Route path="/deposit" element={<Deposit />} />
<Route path="/admin" element={<Admin />} />
<Route path="/magagestudent" element={<MagageStudent />} />
<Route path="/magagetask" element={<MagageTask />} />
<Route path="/attendancecode" element={<AttendanceCode />} />
</Routes>
</BrowserRouter>
);
Expand Down
31 changes: 28 additions & 3 deletions frontend/src/pages/admin/Admin.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
import { useNavigate } from "react-router-dom";
import styles from "../generation/Home.module.css";

const Admin = () => {
const navigate = useNavigate();
return (
<div>
<h1>Admin Page</h1>
<p>This is the admin page.</p>
<div className={styles.home_container}>
<div className={styles.home}>
<h1 className={styles.pirocheck}>PIROCHECK</h1>
<button
className={styles.button}
onClick={() => navigate("/magagestudent")}
>
<p>수강생 관리</p>
</button>
<button
className={styles.button}
onClick={() => navigate("/magagetask")}
>
<p>과제 관리</p>
</button>
<button
className={styles.button}
onClick={() => navigate("/attendancecode")}
>
<p>출석코드 생성</p>
</button>
<img src="/assets/img/logo.svg" alt="로고" />
</div>
</div>
);
};

export default Admin;
4 changes: 4 additions & 0 deletions frontend/src/pages/admin/AttendanceCode.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const AttendanceCode = () => {
return <p>수강생 관리</p>;
};
export default AttendanceCode;
4 changes: 4 additions & 0 deletions frontend/src/pages/admin/ManageStudent.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const MagageStudent = () => {
return <p>수강생 관리</p>;
};
export default MagageStudent;
4 changes: 4 additions & 0 deletions frontend/src/pages/admin/ManageTask.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const MagageTask = () => {
return <p>수강생 관리</p>;
};
export default MagageTask;
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { useNavigate } from "react-router-dom";
import styles from "./Home.module.css";

Expand Down