Compare commits
2
Commits
6f43127ec2
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da4d2c1fd0 | ||
|
|
e3214f6bb4 |
No files matched your search
@@ -3,15 +3,19 @@ import { Routes, Route } from 'react-router-dom';
|
||||
import HomePage from './pages/Home/HomePage.jsx';
|
||||
import ProjectsPage from './pages/Projects/ProjectsPage.jsx';
|
||||
import ProjectDetailsPage from "./pages/ProjectDetails/ProjectDetailsPage.jsx";
|
||||
import Footer from "./components/Footer/Footer.jsx";
|
||||
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<>
|
||||
<Routes>
|
||||
<Route path="/" element={<HomePage />} />
|
||||
<Route path="/projects" element={<ProjectsPage />} />
|
||||
<Route path="/projectDetails/:id" element={<ProjectDetailsPage />} />
|
||||
</Routes>
|
||||
<Footer/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ import Home from './components/Home/Home.jsx';
|
||||
import Experiences from './components/Experiences/Experiences.jsx';
|
||||
import Projects from '../../components/Projects/Projects.jsx';
|
||||
import Skills from './components/Skills/Skills.jsx';
|
||||
import Footer from '../../components/Footer/Footer.jsx';
|
||||
|
||||
function HomePage() {
|
||||
const location = useLocation();
|
||||
@@ -27,7 +26,6 @@ function HomePage() {
|
||||
<Experiences/>
|
||||
<Projects/>
|
||||
<Skills/>
|
||||
<Footer/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { useParams } from "react-router-dom";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import ProjectDetails from "./components/ProjectDetails/ProjectDetails.jsx";
|
||||
import Footer from "../../components/Footer/Footer.jsx";
|
||||
|
||||
function ProjectDetailsPage() {
|
||||
const { id } = useParams();
|
||||
@@ -33,7 +32,6 @@ function ProjectDetailsPage() {
|
||||
return (
|
||||
<div>
|
||||
<ProjectDetails project={project}/>
|
||||
<Footer/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import Projects from "../../components/Projects/Projects.jsx";
|
||||
import Footer from "../../components/Footer/Footer.jsx";
|
||||
|
||||
function ProjectsPage() {
|
||||
return (
|
||||
<div>
|
||||
<Projects/>
|
||||
<Footer/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user