From 0ae333e7aae9e306117e939fc0cca29560083e0e Mon Sep 17 00:00:00 2001 From: enrico Date: Tue, 14 Jan 2020 19:34:28 +0100 Subject: [PATCH] ADDED all routes --- src/App.js | 17 +++++++++++++++-- src/routes/Film.js | 14 ++++++++++++++ src/routes/Giochi.js | 14 ++++++++++++++ src/routes/Immagini.js | 14 ++++++++++++++ src/routes/Musica.js | 14 ++++++++++++++ src/routes/{notfound.js => NotFound.js} | 0 src/routes/Programmi.js | 14 ++++++++++++++ src/routes/SerieTV.js | 14 ++++++++++++++ 8 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 src/routes/Film.js create mode 100644 src/routes/Giochi.js create mode 100644 src/routes/Immagini.js create mode 100644 src/routes/Musica.js rename src/routes/{notfound.js => NotFound.js} (100%) create mode 100644 src/routes/Programmi.js create mode 100644 src/routes/SerieTV.js diff --git a/src/App.js b/src/App.js index 24a3888..5405f86 100644 --- a/src/App.js +++ b/src/App.js @@ -2,8 +2,15 @@ import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import React, { Suspense, lazy } from 'react'; const Home = lazy(() => import('./routes/Home')); +const Film = lazy(() => import('./routes/Film')); const Anime = lazy(() => import('./routes/Anime')); -const Notfound = lazy(() => import('./routes/notfound')); +const SerieTV = lazy(() => import('./routes/SerieTV')); +const Immagini = lazy(() => import('./routes/Immagini')); +const Musica = lazy(() => import('./routes/Musica')); +const Giochi = lazy(() => import('./routes/Giochi')); +const Programmi = lazy(() => import('./routes/Programmi')); + +const NotFound = lazy(() => import('./routes/NotFound')); class App extends React.Component { @@ -13,9 +20,15 @@ class App extends React.Component { Loading...}> + + + + + + - + diff --git a/src/routes/Film.js b/src/routes/Film.js new file mode 100644 index 0000000..9f790ea --- /dev/null +++ b/src/routes/Film.js @@ -0,0 +1,14 @@ +import React from 'react'; +import Navbar from '../Navbar'; + +class Film extends React.Component { + render() { + return ( + <> + + + ); + } +} + +export default Film; diff --git a/src/routes/Giochi.js b/src/routes/Giochi.js new file mode 100644 index 0000000..385d175 --- /dev/null +++ b/src/routes/Giochi.js @@ -0,0 +1,14 @@ +import React from 'react'; +import Navbar from '../Navbar'; + +class Giochi extends React.Component { + render() { + return ( + <> + + + ); + } +} + +export default Giochi; diff --git a/src/routes/Immagini.js b/src/routes/Immagini.js new file mode 100644 index 0000000..67a8f22 --- /dev/null +++ b/src/routes/Immagini.js @@ -0,0 +1,14 @@ +import React from 'react'; +import Navbar from '../Navbar'; + +class Immagini extends React.Component { + render() { + return ( + <> + + + ); + } +} + +export default Immagini; diff --git a/src/routes/Musica.js b/src/routes/Musica.js new file mode 100644 index 0000000..b26e79e --- /dev/null +++ b/src/routes/Musica.js @@ -0,0 +1,14 @@ +import React from 'react'; +import Navbar from '../Navbar'; + +class Musica extends React.Component { + render() { + return ( + <> + + + ); + } +} + +export default Musica; diff --git a/src/routes/notfound.js b/src/routes/NotFound.js similarity index 100% rename from src/routes/notfound.js rename to src/routes/NotFound.js diff --git a/src/routes/Programmi.js b/src/routes/Programmi.js new file mode 100644 index 0000000..425c08f --- /dev/null +++ b/src/routes/Programmi.js @@ -0,0 +1,14 @@ +import React from 'react'; +import Navbar from '../Navbar'; + +class Programmi extends React.Component { + render() { + return ( + <> + + + ); + } +} + +export default Programmi; diff --git a/src/routes/SerieTV.js b/src/routes/SerieTV.js new file mode 100644 index 0000000..0b6a63c --- /dev/null +++ b/src/routes/SerieTV.js @@ -0,0 +1,14 @@ +import React from 'react'; +import Navbar from '../Navbar'; + +class SerieTV extends React.Component { + render() { + return ( + <> + + + ); + } +} + +export default SerieTV;