File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Home from './pages/Home';
6
6
import About from './pages/AboutMe' ;
7
7
import Projects from './pages/Projects' ;
8
8
import Contact from './pages/Contact' ;
9
+ import ProjectSingle from './pages/ProjectSingle' ;
9
10
10
11
function App ( ) {
11
12
return (
@@ -15,6 +16,11 @@ function App() {
15
16
< Routes >
16
17
< Route path = "/" element = { < Home /> } />
17
18
< Route path = "projects" element = { < Projects /> } />
19
+ < Route
20
+ path = "projects/single-project"
21
+ element = { < ProjectSingle /> }
22
+ />
23
+
18
24
< Route path = "about" element = { < About /> } />
19
25
< Route path = "contact" element = { < Contact /> } />
20
26
</ Routes >
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ const ProjectsGrid = () => {
94
94
:key="project.id"
95
95
:project="project"
96
96
/> */ }
97
- < ProjectSingle > </ ProjectSingle >
97
+ < ProjectSingle / >
98
98
</ div >
99
99
{ /* Projects grid end */ }
100
100
</ section >
Original file line number Diff line number Diff line change
1
+ const ProjectSingle = ( ) => {
2
+ return (
3
+ < div className = "container mx-auto sm:flex py-5 sm:py-10 mt-5 sm:mt-10" >
4
+ < h1 > This is the single page</ h1 >
5
+ </ div >
6
+ ) ;
7
+ } ;
8
+
9
+ export default ProjectSingle ;
You can’t perform that action at this time.
0 commit comments