-
Notifications
You must be signed in to change notification settings - Fork 14
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 #4 from adityasimant/main
Created a Navbar and implimented routes
- Loading branch information
Showing
7 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
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
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 React, { Component } from 'react'; | ||
|
||
class Contact extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
Contact Page | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
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,13 @@ | ||
import React, { Component } from 'react'; | ||
|
||
class CoreTeam extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
This is core team | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default CoreTeam; |
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 React, { Component } from 'react'; | ||
|
||
class Events extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
This is events page | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Events; |
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 React, { Component } from 'react'; | ||
|
||
class Home extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
This is home page | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
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,31 @@ | ||
import Container from 'react-bootstrap/Container'; | ||
import Nav from 'react-bootstrap/Nav'; | ||
import Navbar from 'react-bootstrap/Navbar'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
|
||
|
||
function NavBar() { | ||
|
||
return( | ||
<> | ||
<Navbar bg="dark" data-bs-theme="dark"> | ||
<Container> | ||
<Navbar.Brand href="#home">IETE DIEMS ISF</Navbar.Brand> | ||
<Navbar.Toggle /> | ||
<Nav className="m-auto" variant='primary' > | ||
<Nav.Link as={Link} to="/">Home</Nav.Link> | ||
<Nav.Link as={Link} to="/">About</Nav.Link> | ||
<Nav.Link as={Link} to="/events">Events</Nav.Link> | ||
<Nav.Link as={Link} to="/coreteam">Core Team</Nav.Link> | ||
<Nav.Link as={Link} to="/contact">Contact us</Nav.Link> | ||
</Nav> | ||
</Container> | ||
</Navbar> | ||
</> | ||
) | ||
|
||
|
||
} | ||
|
||
export default NavBar; |