Skip to content

Commit 669d125

Browse files
committed
Single project route
1 parent 7eacee3 commit 669d125

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/App.js

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Home from './pages/Home';
66
import About from './pages/AboutMe';
77
import Projects from './pages/Projects';
88
import Contact from './pages/Contact';
9+
import ProjectSingle from './pages/ProjectSingle';
910

1011
function App() {
1112
return (
@@ -15,6 +16,11 @@ function App() {
1516
<Routes>
1617
<Route path="/" element={<Home />} />
1718
<Route path="projects" element={<Projects />} />
19+
<Route
20+
path="projects/single-project"
21+
element={<ProjectSingle />}
22+
/>
23+
1824
<Route path="about" element={<About />} />
1925
<Route path="contact" element={<Contact />} />
2026
</Routes>

src/components/ProjectsGrid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const ProjectsGrid = () => {
9494
:key="project.id"
9595
:project="project"
9696
/> */}
97-
<ProjectSingle></ProjectSingle>
97+
<ProjectSingle />
9898
</div>
9999
{/* Projects grid end */}
100100
</section>

src/pages/ProjectSingle.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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;

0 commit comments

Comments
 (0)