diff --git a/src/components/Admin.css b/src/components/Admin.css new file mode 100644 index 0000000..9ec3156 --- /dev/null +++ b/src/components/Admin.css @@ -0,0 +1,15 @@ +/* Admin.css */ +table { + border-collapse: collapse; + width: 100%; +} + +th, td { + border: 1px solid #ddd; + padding: 10px; + text-align: left; +} + +th { + background-color: #f0f0f0; +} \ No newline at end of file diff --git a/src/components/Admin.js b/src/components/Admin.js index 5f4f578..4c464e4 100644 --- a/src/components/Admin.js +++ b/src/components/Admin.js @@ -3,6 +3,8 @@ import React, { useState, useEffect, useRef } from 'react'; import axios from 'axios'; import { Link, useNavigate } from 'react-router-dom'; import { PRIMARY_COLOR, SECONDARY_COLOR } from '../App'; +import './Admin.css'; // Import the CSS file + export default function Admin() { const [users, setUsers] = useState([]); @@ -103,24 +105,52 @@ export default function Admin() { return (

Admin

- + + + + + + + + + {users.map(user => ( + + + + + ))} + +
UsernameActions
{user.username} + +
setUsername(e.target.value)} placeholder="Username" /> setPassword(e.target.value)} placeholder="Password" />
- -
- - -
+

Database

+ + + + + + + + + + + + + + + + + +
Action
Backup + +
Restore + + +
- ); -} \ No newline at end of file + )}; \ No newline at end of file