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 {