Compare commits
No commits in common. "dc57b6b096f6fee8a7302bd244beb1da78b12ee6" and "4645211658138406035cc6e530687aa3a82ed00e" have entirely different histories.
dc57b6b096
...
4645211658
14
src/About.js
14
src/About.js
|
@ -1,14 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
import Navbar from './Navbar';
|
|
||||||
|
|
||||||
class About extends React.Component {
|
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<Navbar brand="LORDNABBO" />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default About;
|
|
|
@ -2,9 +2,7 @@ import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
||||||
import React, { Suspense, lazy } from 'react';
|
import React, { Suspense, lazy } from 'react';
|
||||||
|
|
||||||
const Home = lazy(() => import('./Home'));
|
const Home = lazy(() => import('./Home'));
|
||||||
const About = lazy(() => import('./About'));
|
//const About = lazy(() => import('./About'));
|
||||||
const Notfound = lazy(() => import('./notfound'));
|
|
||||||
|
|
||||||
|
|
||||||
class App extends React.Component {
|
class App extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
@ -13,9 +11,6 @@ class App extends React.Component {
|
||||||
<Suspense fallback={<div>Loading...</div>}>
|
<Suspense fallback={<div>Loading...</div>}>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path="/" component={Home}/>
|
<Route exact path="/" component={Home}/>
|
||||||
<Route path="/About" component={About}/>
|
|
||||||
|
|
||||||
<Route component={Notfound} />
|
|
||||||
</Switch>
|
</Switch>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</Router>
|
</Router>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {Link} from 'react-router-dom'
|
|
||||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||||
import 'bootstrap/dist/js/bootstrap.min.js';
|
import 'bootstrap/dist/js/bootstrap.min.js';
|
||||||
import './Buttons.css';
|
import './Buttons.css';
|
||||||
|
@ -17,7 +16,7 @@ export default class NavButton extends React.Component {
|
||||||
export class Button extends React.Component {
|
export class Button extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<button className="btn1" type="button"><Link to="/About">{this.props.name}</Link></button>
|
<button className="btn1">{this.props.name}</button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,15 +14,11 @@ class Navbar extends React.Component {
|
||||||
</button>
|
</button>
|
||||||
<div className="collapse navbar-collapse flex" id="navButtons">
|
<div className="collapse navbar-collapse flex" id="navButtons">
|
||||||
<ul className="navbar-nav nav-mod">
|
<ul className="navbar-nav nav-mod">
|
||||||
<NavButton name="Home" lhref="/" />
|
<NavButton name="Home" />
|
||||||
<NavButton name="Film" />
|
<NavButton name="Film" />
|
||||||
<NavButton name="Series" />
|
<NavButton name="Series" />
|
||||||
<NavButton name="About" lhref="/About" />
|
<NavButton name="About" />
|
||||||
</ul>
|
</ul>
|
||||||
<form class="form-inline my-2 my-lg-0">
|
|
||||||
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" />
|
|
||||||
<button class="btn1" type="submit">Search</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
import Navbar from './Navbar';
|
|
||||||
|
|
||||||
class NotFound extends React.Component {
|
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<Navbar brand="LORDNABBO" />
|
|
||||||
<div><h1>I MEME 404</h1></div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default NotFound;
|
|
Loading…
Reference in New Issue