generated from cepdnaclk/eYY-XXX-project-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from wethmiranasinghe/main
Pages linked
- Loading branch information
Showing
16 changed files
with
189 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,44 @@ | ||
import Header from "./Header" | ||
import Footer from "./Footer" | ||
import {BrowserRouter, Routes, Route} from 'react-router-dom'; //Add page routing using router dom | ||
|
||
import Header from "./Header"; | ||
import Footer from "./Footer"; | ||
import './Header.css' | ||
import './Footer.css' | ||
|
||
import Home from './Pages/Home'; | ||
import ProjectOverview from './Pages/ProjectOverview'; | ||
import Team from './Pages/Team'; | ||
import NewsAndEvents from './Pages/NewsAndEvents'; | ||
import Downloads from './Pages/Downloads'; | ||
import Contact from './Pages/Contact'; | ||
import Overview from './Pages/Overview'; | ||
import Workplan from './Pages/Workplan'; | ||
import Deliverables from './Pages/Deliverables'; | ||
import Error from './Pages/Error'; | ||
|
||
|
||
function App() { | ||
return( | ||
<><Header></Header> | ||
<Footer></Footer> | ||
<> | ||
<BrowserRouter> | ||
<nav> <Header/> </nav> | ||
<Routes> | ||
<Route path = '/' element = {<Home />} /> | ||
<Route path = 'project overview' element = {<ProjectOverview />}> | ||
<Route path = 'overview' element = {<Overview />}/> | ||
<Route path = 'workplan' element = {<Workplan />}/> | ||
<Route path = 'deliverbles' element = {<Deliverables />}/> | ||
</Route> | ||
<Route path = 'team' element = {<Team />} /> | ||
<Route path = 'news' element = {<NewsAndEvents />} /> | ||
<Route path = 'downloads' element = {<Downloads />} /> | ||
<Route path = 'contact' element = {<Contact />} /> | ||
<Route path = '*' element = {<Error />} /> | ||
</Routes> | ||
<footer> <Footer/> </footer> {/* Adding footer to all pages */} | ||
</BrowserRouter> | ||
</> | ||
); | ||
} | ||
) | ||
} | ||
|
||
export default App | ||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function Contact() { | ||
return( | ||
<> | ||
<h1>Contact</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default Contact; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function Deliverables() { | ||
return( | ||
<> | ||
<h1>Deliverables</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default Deliverables; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function Downloads() { | ||
return( | ||
<> | ||
<h1>Downloads</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default Downloads; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {Link} from 'react-router-dom'; | ||
|
||
const Error = () => { | ||
return( | ||
<section className ='section'> | ||
<h2>404</h2> | ||
<p>Page not found</p> | ||
<Link to = '/'>back home</Link> | ||
</section> | ||
) | ||
} | ||
|
||
export default Error; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Conference from '../assets/Conference.jpg'; | ||
|
||
function Home() { | ||
return( | ||
<> | ||
<h1>Home</h1> | ||
<img src = {Conference} width={1000}/> | ||
</> | ||
); | ||
} | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function NewsAndEvents() { | ||
return( | ||
<> | ||
<h1>News & Events</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default NewsAndEvents; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function Overview() { | ||
return( | ||
<> | ||
<h2>Overview</h2> | ||
</> | ||
); | ||
} | ||
|
||
export default Overview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function ProjectOverview() { | ||
return( | ||
<> | ||
<h1>Project Overview</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default ProjectOverview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function Team() { | ||
return( | ||
<> | ||
<h1>Team</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default Team; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
function Workplan() { | ||
return( | ||
<> | ||
<h1>Cycle Workplan</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default Workplan; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.