-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile.txt
86 lines (65 loc) · 2.91 KB
/
file.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { Routes, Route } from 'react-router-dom';
import Dashboard from '../pages/admin/dashboard';
import Services from '../pages/admin/addServices';
import Projects from '../pages/admin/addProjects';
import BlogPosts from '../pages/admin/addBlog';
import JobApplications from '../pages/admin/viewApplications';
import Messages from '../pages/admin/messageView';
import AdminViewHeader from '../components/admin-view-header'
function AdminViewRoutes() {
return (
<>
<div className="flex">
<div className="flex-grow p-4">
<AdminViewHeader />
<Routes>
<Route path="/" element={<Dashboard />} />
<Route path="services" element={<Services />} />
<Route path="projects" element={<Projects />} />
<Route path="blog-posts" element={<BlogPosts />} />
<Route path="job-applications" element={<JobApplications />} />
<Route path="messages" element={<Messages />} />
</Routes>
</div>
</div>
</>
);
}
export default AdminViewRoutes;
_________________________________________________________________________________________________________________________________________
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import '../assests/styles/rootlayout.css';
function AdminViewHeader() {
const [isActive, setIsActive] = useState(false);
const toggleMenu = () => {
setIsActive(!isActive);
};
return (
<>
<header className="header">
<div className="logo">Tiibu Co. Ltd</div>
<div className="menu-icon" onClick={toggleMenu}>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</div>
<nav className={`nav-menu ${isActive ? 'active' : ''}`}>
<ul>
<ul>
<li><Link to="/dashboard">Dashboard</Link></li>
<li><Link to="/dashboard/services">Services</Link></li>
<li><Link to="/dashboard/projects">Projects</Link></li>
<li><Link to="/dashboard/blog-posts">Blog Posts</Link></li>
<li><Link to="/dashboard/job-applications">Job Applications</Link></li>
<li><Link to="/dashboard/messages">Messages</Link></li>
</ul>
</ul>
</nav>
</header>
</>
);
}
export default AdminViewHeader;