Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

included my navbar #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added npm-debug.log.964476278
Empty file.
29 changes: 29 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,32 @@
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

.navText{
font-family: 'Roboto', sans-serif;
font-size: 11px;
color: black;
}

.navbar-default .navbar-brand {
color: black;
}
.navbar-default .navbar-nav > li > a {
color: black;
}

.logo{
/* width: 25%; */
max-width:55px;
cursor: pointer;
border: none !important;
}

.hoverBorder:hover{
border-bottom: 1px;
}

nav.navbar.navbar-default{
border-color: white;
background-color: white;
}
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Home from './pages/Home.js';
import Members from './pages/Members.js';
import Officers from './pages/Officers.js';
import { Switch, Route } from 'react-router-dom';
import Navbar2 from './components/navbar2.js';

const Main = () => (
<main>
Expand All @@ -21,6 +22,7 @@ class App extends Component {
return (
<div>
<Navbar/>
<Navbar2/>
<Main/>
</div>
)
Expand Down
56 changes: 56 additions & 0 deletions src/components/navbar2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import React, { Component } from 'react';
import {Navbar, Nav, NavItem, NavDropdown} from 'react-bootstrap';
import { IndexLinkContainer } from 'react-router-bootstrap';
import 'bootstrap/dist/css/bootstrap.css';

import logo from '../images/navbar/customlogo.jpg';

// <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">


class NavBar2 extends Component {

render () {
return (
<Navbar collapseOnSelect fluid>
<Navbar.Header>
<IndexLinkContainer to="/">

<img src={logo} className="d-inline-block align-top logo" alt={logo}/>

</IndexLinkContainer>

<Navbar.Toggle />

</Navbar.Header>
<Navbar.Collapse>

<Nav pullRight>

<NavDropdown className="navText hoverBorder" eventKey={1} title="ABOUT US" id="basic-nav-dropdown">
<IndexLinkContainer to="/officers">
<NavItem className="navText hoverBorder" eventKey={2} >Officers</NavItem>
</IndexLinkContainer>
<IndexLinkContainer to="/photos">
<NavItem className="navText hoverBorder" eventKey={3}>Photos</NavItem>
</IndexLinkContainer>
</NavDropdown>

<IndexLinkContainer to="/members">
<NavItem className="navText hoverBorder" eventKey={4} >MEMBERS</NavItem>
</IndexLinkContainer>
<IndexLinkContainer to="/join">
<NavItem className="navText hoverBorder" eventKey={5}>JOIN US</NavItem>
</IndexLinkContainer>
<IndexLinkContainer to="/contact">
<NavItem className="navText hoverBorder" eventKey={6}>CONTACT</NavItem>
</IndexLinkContainer>

</Nav>
</Navbar.Collapse>
</Navbar>
);
}
}

export default NavBar2;
Binary file added src/images/navbar/customlogo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.