@@ -164,38 +165,46 @@ export default class Map extends React.Component {
-
+
-
-
- {
- this.state.types.map((type, key) =>
- (
- this.selectType(type)}>
- {type.name}
- {type.Vegetables.length}
-
- )
- )
- }
-
+
+
+
+
+ {
+ this.state.types.map((type, key) =>
+ (
+ this.selectType(type)}>
+ {type.name}
+ {type.Vegetables.length}
+
+ )
+ )
+ }
+
+
+
-
-
- {
- this.state.selectedType &&
- this.state.selectedType.Vegetables &&
- this.state.selectedType.Vegetables.map((vegetable, key) =>
- (
- this.selectVegetable(vegetable)}>
- {vegetable.name}
-
- )
- )
- }
-
+
+
+
+
+ {
+ this.state.selectedType &&
+ this.state.selectedType.Vegetables &&
+ this.state.selectedType.Vegetables.map((vegetable, key) =>
+ (
+ this.selectVegetable(vegetable)}>
+ {vegetable.name}
+
+ )
+ )
+ }
+
+
+
diff --git a/src/css/Header.css b/src/css/Header.css
new file mode 100644
index 0000000..37319f8
--- /dev/null
+++ b/src/css/Header.css
@@ -0,0 +1,21 @@
+.navbar-collapse {
+ flex-grow: unset !important;
+}
+
+.nav-item {
+ padding: 0 16px;
+ border-left: 1px solid #ccc;
+}
+
+.navbar.navbar-expand-md.navbar-light.bg-light {
+ box-shadow: 0 2px 2px #a7a7a7;
+ margin-bottom: 16px;
+}
+
+.nav-link .text {
+ padding-right: 32px;
+}
+.nav-link .badge {
+ position: absolute;
+ right: 24px;
+}
\ No newline at end of file
diff --git a/src/css/Home.css b/src/css/Home.css
new file mode 100644
index 0000000..617f26e
--- /dev/null
+++ b/src/css/Home.css
@@ -0,0 +1,3 @@
+.logo {
+ margin: 0 16px 16px 0;
+}
\ No newline at end of file
diff --git a/src/css/Map.css b/src/css/Map.css
new file mode 100644
index 0000000..3b6ef0b
--- /dev/null
+++ b/src/css/Map.css
@@ -0,0 +1,49 @@
+
+.map {
+ width: 734px;
+ height: 530px;
+ background: url('/plan.jpg');
+ background-size: cover;
+ position: relative;
+}
+.mapMarker {
+position: absolute;
+left: 25%;
+top: 33%;
+}
+
+.mapMarker svg {
+ color: #dc3545;
+ font-size: 2rem;
+ cursor: pointer;
+}
+
+.mapMarker.selected svg {
+ color: #007bff;
+ animation: bounce 0.7s ease 5;
+}
+
+@keyframes bounce{
+ from {margin-top: 0;}
+ 50% {margin-top: 8px;}
+ to {margin-top: 0;}
+}
+
+.vegetables--types--group li {
+ cursor: pointer;
+ text-align: left;
+}
+
+.vegetables--types--group li:hover {
+ background: #fafafa;
+ opacity: 0.6;
+}
+
+.vegetables--types--group li.selected {
+ background: #f1f1f1;
+ font-weight: bold;
+}
+
+.vegetables--types--group .badge {
+ margin-left: 8px;
+}
diff --git a/src/css/index.css b/src/css/index.css
new file mode 100644
index 0000000..55121de
--- /dev/null
+++ b/src/css/index.css
@@ -0,0 +1,38 @@
+body {
+ margin: 0;
+ padding: 0;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
+ sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ background: url('/background/1.jpg') no-repeat fixed;
+ background-size: cover;
+ background-position: center center;
+}
+
+.with-border {
+ box-shadow: 4px 4px 6px #a7a7a7;
+ border-radius: 8px;
+ border: 1px solid #ccc;
+ /* margin: 16px; */
+ padding: 8px;
+}
+
+.with-margin {
+ margin: 8px;
+}
+
+@media (max-width: 575.98px) {
+ .with-margin {
+ margin: 8px 0;
+ }
+}
+
+.with-background {
+ background-color: rgba(248,249,250, 0.7) !important;
+}
+
+.container {
+ margin-top: 116px;
+}
\ No newline at end of file
diff --git a/src/index.css b/src/index.css
deleted file mode 100644
index f075ea3..0000000
--- a/src/index.css
+++ /dev/null
@@ -1,108 +0,0 @@
-body {
- margin: 0;
- padding: 0;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
- "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
- sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- background: url('/background/1.jpg') no-repeat fixed;
- background-size: cover;
- background-position: center center;
-}
-
-code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
- monospace;
-}
-
-
-.navbar-collapse {
- flex-grow: unset !important;
-}
-
-.nav-item {
- padding: 0 16px;
- border-left: 1px solid #ccc;
-}
-
-.navbar.navbar-expand-md.navbar-light.bg-light {
- /* background-color: rgba(248,249,250, 0.8) !important; */
- box-shadow: 0 2px 2px #a7a7a7;
- margin-bottom: 16px;
-}
-
-.with-border {
- box-shadow: 4px 4px 6px #a7a7a7;
- border-radius: 8px;
- border: 1px solid #ccc;
- margin: 16px;
- padding: 8px;
-}
-
-.with-background {
- /* background: #f8f9fa; */
- background-color: rgba(248,249,250, 0.7) !important;
-
-}
-
-.container {
- margin-top: 116px;
-}
-
-.nav-link .text {
- padding-right: 32px;
-}
-.nav-link .badge {
- position: absolute;
- right: 24px;
-}
-
-.vegetables--types--group li {
- cursor: pointer;
- text-align: left;
-}
-
-.vegetables--types--group li:hover {
- background: #fafafa;
- opacity: 0.6;
-}
-
-.vegetables--types--group li.selected {
- background: #f1f1f1;
- font-weight: bold;
-}
-
-.vegetables--types--group .badge {
- margin-left: 8px;
-}
-
-.map {
- width: 734px;
- height: 530px;
- background: url('/plan.jpg');
- background-size: cover;
- position: relative;
-}
-.mapMarker {
-position: absolute;
-left: 25%;
-top: 33%;
-}
-
-.mapMarker svg {
- color: #dc3545;
- font-size: 2rem;
- cursor: pointer;
-}
-
-.mapMarker.selected svg {
- color: #007bff;
- animation: bounce 0.7s ease 5;
-}
-
-@keyframes bounce{
- from {margin-top: 0;}
- 50% {margin-top: 8px;}
- to {margin-top: 0;}
-}
\ No newline at end of file
diff --git a/src/index.js b/src/index.js
index 762b066..68871a9 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,11 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
-import App from './App';
+import App from './components/App';
import * as serviceWorker from './serviceWorker';
import 'react-notifications/lib/notifications.css';
import 'bootstrap/dist/css/bootstrap.min.css';
-import './index.css';
+import './css/index.css';
ReactDOM.render(
, document.getElementById('root'));
diff --git a/src/logo.svg b/src/logo.svg
deleted file mode 100644
index 6b60c10..0000000
--- a/src/logo.svg
+++ /dev/null
@@ -1,7 +0,0 @@
-