From e324446051005f01d7cd4a8bf3a0903f4f3be8d3 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 18 Nov 2018 19:03:01 +0100 Subject: [PATCH] Updated file structure --- src/App.css | 32 ----------- src/App.test.js | 9 --- src/{ => components}/App.js | 12 ++-- src/components/Header.js | 3 +- src/components/Home.js | 35 ++++++++++++ src/components/Map.js | 73 +++++++++++++----------- src/css/Header.css | 21 +++++++ src/css/Home.css | 3 + src/css/Map.css | 49 ++++++++++++++++ src/css/index.css | 38 +++++++++++++ src/index.css | 108 ------------------------------------ src/index.js | 4 +- src/logo.svg | 7 --- 13 files changed, 197 insertions(+), 197 deletions(-) delete mode 100644 src/App.css delete mode 100644 src/App.test.js rename src/{ => components}/App.js (83%) create mode 100644 src/components/Home.js create mode 100644 src/css/Header.css create mode 100644 src/css/Home.css create mode 100644 src/css/Map.css create mode 100644 src/css/index.css delete mode 100644 src/index.css delete mode 100644 src/logo.svg diff --git a/src/App.css b/src/App.css deleted file mode 100644 index 92f956e..0000000 --- a/src/App.css +++ /dev/null @@ -1,32 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - animation: App-logo-spin infinite 20s linear; - height: 40vmin; -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/src/App.test.js b/src/App.test.js deleted file mode 100644 index a754b20..0000000 --- a/src/App.test.js +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; - -it('renders without crashing', () => { - const div = document.createElement('div'); - ReactDOM.render(, div); - ReactDOM.unmountComponentAtNode(div); -}); diff --git a/src/App.js b/src/components/App.js similarity index 83% rename from src/App.js rename to src/components/App.js index 6415a98..86d1817 100644 --- a/src/App.js +++ b/src/components/App.js @@ -1,13 +1,12 @@ import React, { Component } from 'react'; -import Header from './components/Header'; +import Header from './Header'; import { BrowserRouter as Router, Route, Switch, } from 'react-router-dom'; -import Map from './components/Map'; -import Vegetables from './components/Vegetables'; - -import './App.css'; +import Map from './Map'; +import Home from './Home'; +import Vegetables from './Vegetables'; class App extends Component { constructor(props) { @@ -42,7 +41,8 @@ class App extends Component {
- + + diff --git a/src/components/Header.js b/src/components/Header.js index 5cc21a8..3a496af 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -27,6 +27,7 @@ import { } from 'react-notifications'; import strToSlug from '../StrToSlug'; +import '../css/Header.css' export default class Header extends React.Component { constructor(props) { @@ -71,7 +72,7 @@ export default class Header extends React.Component {