diff --git a/src/App.js b/src/App.js index 5405f86..e18f48c 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,6 @@ import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import React, { Suspense, lazy } from 'react'; +import Loading from "./routes/Loading" const Home = lazy(() => import('./routes/Home')); const Film = lazy(() => import('./routes/Film')); @@ -17,7 +18,7 @@ class App extends React.Component { render() { return ( - Loading...}> + }> diff --git a/src/routes/Loading.js b/src/routes/Loading.js new file mode 100644 index 0000000..2c8543b --- /dev/null +++ b/src/routes/Loading.js @@ -0,0 +1,22 @@ +import React from 'react'; +import Navbar from '../Navbar'; +import 'bootstrap/dist/css/bootstrap.min.css'; +import 'bootstrap/dist/js/bootstrap.min.js'; +import "./centercontainer.css" + +class Loading extends React.Component { + render() { + return ( + <> + +
+
+ Loading... +
+
+ + ); + } +} + +export default Loading; diff --git a/src/routes/NotFound.js b/src/routes/NotFound.js index b65408f..3d42f9d 100644 --- a/src/routes/NotFound.js +++ b/src/routes/NotFound.js @@ -1,12 +1,19 @@ import React from 'react'; import Navbar from '../Navbar'; +import 'bootstrap/dist/css/bootstrap.min.css'; +import 'bootstrap/dist/js/bootstrap.min.js'; +import "./centercontainer.css" class NotFound extends React.Component { render() { return ( <> -

I MEME 404

+
+
+ Loading... +
+
); } diff --git a/src/routes/centercontainer.css b/src/routes/centercontainer.css new file mode 100644 index 0000000..9473f8a --- /dev/null +++ b/src/routes/centercontainer.css @@ -0,0 +1,15 @@ +.centered { + height: 93vh; + display: flex; + align-items: center; + justify-content: center; +} + +.row { + width: auto; +} + +img { + height: 30vh; + width: auto; +} \ No newline at end of file