forked from Enri1196/lordfrontend
Compare commits
No commits in common. "22154d195317748132d58130817930245dfc6c1e" and "7c725a62fafa3fb0d425c8dcd941ceb0fd7a6930" have entirely different histories.
22154d1953
...
7c725a62fa
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="initial-scale=1" />
|
||||
<title>LORD//CHANNEL</title>
|
||||
<title>LORDNABBO</title>
|
||||
</head>
|
||||
<body style="background-color: #343a40;">
|
||||
<div id="root"></div>
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
||||
import React, { Suspense, lazy } from 'react';
|
||||
|
||||
const Home = lazy(() => import('./routes/Home'));
|
||||
const Anime = lazy(() => import('./routes/Anime'));
|
||||
const Notfound = lazy(() => import('./routes/notfound'));
|
||||
|
||||
const Home = lazy(() => import('./Home'));
|
||||
//const About = lazy(() => import('./About'));
|
||||
|
||||
class App extends React.Component {
|
||||
render() {
|
||||
|
@ -13,9 +11,6 @@ class App extends React.Component {
|
|||
<Suspense fallback={<div>Loading...</div>}>
|
||||
<Switch>
|
||||
<Route exact path="/" component={Home}/>
|
||||
<Route path="/Anime" component={Anime}/>
|
||||
|
||||
<Route component={Notfound} />
|
||||
</Switch>
|
||||
</Suspense>
|
||||
</Router>
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
import React from 'react';
|
||||
import {Link} from 'react-router-dom';
|
||||
import React from 'react'
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import 'bootstrap/dist/js/bootstrap.min.js';
|
||||
import './Buttons.css';
|
||||
|
||||
class NavButton extends React.Component {
|
||||
export default class NavButton extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<li className="nav-item">
|
||||
<Link to={this.props.lhref}><button className="btn1">{this.props.name}</button></Link>
|
||||
<Button name={this.props.name} />
|
||||
</li>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default NavButton;
|
||||
export class Button extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<button className="btn1">{this.props.name}</button>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import React from 'react';
|
||||
import Navbar from '../Navbar';
|
||||
import Parallax from '../Parallax';
|
||||
import CardContainer from '../CardContainer';
|
||||
import Navbar from './Navbar';
|
||||
import Parallax from './Parallax';
|
||||
import CardContainer from './CardContainer';
|
||||
|
||||
class Home extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Navbar brand="CHANNEL" />
|
||||
<Navbar brand="LORDNABBO" />
|
||||
<Parallax />
|
||||
<CardContainer sectionTitle="Latest Uploads" />
|
||||
<CardContainer sectionTitle="Random" />
|
|
@ -1,5 +1,4 @@
|
|||
import React from 'react';
|
||||
import {Link} from 'react-router-dom';
|
||||
import NavButton from './Buttons';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import 'bootstrap/dist/js/bootstrap.min.js';
|
||||
|
@ -9,24 +8,17 @@ class Navbar extends React.Component {
|
|||
render() {
|
||||
return (
|
||||
<nav className="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<Link to="/"><span className="navbar-brand">LORD//{this.props.brand}</span></Link>
|
||||
<span className="navbar-brand">{this.props.brand}</span>
|
||||
<button className="navbar-toggler" type="button" data-toggle="collapse" data-target="#navButtons" aria-controls="navButtons" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span className="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div className="collapse navbar-collapse flex" id="navButtons">
|
||||
<ul className="navbar-nav nav-mod">
|
||||
<NavButton name="Film" lhref="/Film" />
|
||||
<NavButton name="Anime" lhref="/Anime" />
|
||||
<NavButton name="Serie TV" lhref="/Serietv" />
|
||||
<NavButton name="Immagini" lhref="/Immagini" />
|
||||
<NavButton name="Musica" lhref="/Musica" />
|
||||
<NavButton name="Giochi" lhref="/Giochi" />
|
||||
<NavButton name="Programmi" lhref="/Programmi" />
|
||||
<NavButton name="Home" />
|
||||
<NavButton name="Film" />
|
||||
<NavButton name="Series" />
|
||||
<NavButton name="About" />
|
||||
</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>
|
||||
</nav>
|
||||
);
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
import React from 'react';
|
||||
import Navbar from '../Navbar';
|
||||
|
||||
class Anime extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Navbar brand="ANIME" />
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Anime;
|
|
@ -1,15 +0,0 @@
|
|||
import React from 'react';
|
||||
import Navbar from '../Navbar';
|
||||
|
||||
class NotFound extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Navbar brand="404" />
|
||||
<div><h1>I MEME 404</h1></div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default NotFound;
|
Loading…
Reference in New Issue