diff --git a/public/Photos/kolvaus2.jpg b/public/Photos/kolvaus2.jpg
new file mode 100644
index 0000000..7675be7
Binary files /dev/null and b/public/Photos/kolvaus2.jpg differ
diff --git a/public/Photos/kolvaus3.jpg b/public/Photos/kolvaus3.jpg
new file mode 100644
index 0000000..e6d1d63
Binary files /dev/null and b/public/Photos/kolvaus3.jpg differ
diff --git a/public/Photos/kolvaus4.jpg b/public/Photos/kolvaus4.jpg
new file mode 100644
index 0000000..804b9d6
Binary files /dev/null and b/public/Photos/kolvaus4.jpg differ
diff --git a/public/Photos/valkosipuli1.jpeg b/public/Photos/valkosipuli1.jpeg
deleted file mode 100644
index c65a2ad..0000000
Binary files a/public/Photos/valkosipuli1.jpeg and /dev/null differ
diff --git a/public/Photos/valkosipulivk1.jpeg b/public/Photos/valkosipulivk1.jpeg
new file mode 100644
index 0000000..7034a14
Binary files /dev/null and b/public/Photos/valkosipulivk1.jpeg differ
diff --git a/public/Photos/valkosipulivk2.jpg b/public/Photos/valkosipulivk2.jpg
new file mode 100644
index 0000000..d7f81fa
Binary files /dev/null and b/public/Photos/valkosipulivk2.jpg differ
diff --git a/public/plantinfo.json b/public/plantinfo.json
index c702c00..c62f401 100644
--- a/public/plantinfo.json
+++ b/public/plantinfo.json
@@ -2,7 +2,7 @@
"id": "Valkosipuli",
"type": "Sipuli",
"description": "Sipulilajike joka maistuu hyvältä",
- "imagefile": "../Photos/valkosipuli1.jpeg",
+ "imagefile": "../Photos/valkosipulivk1.jpeg",
"logfile_output": "/path/to/plant/log/file.log",
"istutuspv": "10.10.2019",
diff --git a/src/App.css b/src/App.css
index d02ea9c..afe2b3b 100644
--- a/src/App.css
+++ b/src/App.css
@@ -13,22 +13,34 @@
font-size: 40px;
}
-.plants{
- display:grid;
- grid-template-columns: 1fr;
- grid-column-gap: 15px;
- grid-row-gap: 10px;
+.plants {
+ width: 60%;
+ display: grid;
+ grid-column-gap: 12px;
+ grid-row-gap: 12px;
+ grid-template-columns: 1fr 1fr;
}
-.plant {
+.plant1 {
+ background: rgb(240, 240, 240);
+ text-align: center;
+ border: rgb(0, 0, 0) solid 1px;
+ font-size: 25px;
+}
+
+.plant1 h6{
+ font-size: 25px;
+}
+
+.plant2 {
+ margin-left:10px;
background: rgb(240, 240, 240);
- width: 40%;
text-align: center;
border: rgb(0, 0, 0) solid 1px;
font-size: 25px;
}
-.plant h6{
+.plant2 h6{
font-size: 25px;
}
@@ -49,32 +61,12 @@
font-size: 35px;
}
-.App-logo {
- 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: #09d3ac;
-}
-
.Modaldiv{
width:30%;
- margin-top: 100px;
+ margin-top: 50px;
margin-left: 300px;
align-content:auto;
color: white;
-
}
.modal-wrapper{
@@ -82,16 +74,16 @@
display:grid;
grid-column-gap: 12px;
grid-row-gap: 12px;
- grid-template-columns: 1fr 1fr 1fr 1fr;
+ grid-template-columns: 1fr 1fr 1fr;
}
.nav-link{
- font-size: 30px;
+ font-size: 35px;
align-content: center;
}
.navbar-brand{
- font-size: 35px;
+ font-size: 45px;
}
\ No newline at end of file
diff --git a/src/Components/Home.js b/src/Components/Home.js
index 58b9b95..266640d 100644
--- a/src/Components/Home.js
+++ b/src/Components/Home.js
@@ -1,7 +1,6 @@
import React from 'react';
-import ModalList from './ModalList';
-//import ModalGrid from './ModalGrid';
-
+//import ModalList from './ModalList';
+import ModalGrid from './ModalGrid';
// TODO fix modallist to display right item
@@ -10,7 +9,7 @@ const Home = () => {
Welcome to TinyForest
-
+
);
diff --git a/src/Components/ModalGrid.js b/src/Components/ModalGrid.js
index 2f64b0b..8ac75a4 100644
--- a/src/Components/ModalGrid.js
+++ b/src/Components/ModalGrid.js
@@ -5,17 +5,26 @@ import Modalbox3 from './Modalbox3';
import Modalbox4 from './Modalbox4';
import Modalbox5 from './Modalbox5';
import Modalbox6 from './Modalbox6';
-
+import Modalbox7 from './Modalbox7';
+import Modalbox8 from './Modalbox8';
+import Modalbox9 from './Modalbox9';
+import Modalbox10 from './Modalbox10';
+import Modalbox11 from './Modalbox11';
const ModalGrid = () => {
return (
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
);
};
diff --git a/src/Components/ModalList.js b/src/Components/ModalList.js
index b747680..0539e76 100644
--- a/src/Components/ModalList.js
+++ b/src/Components/ModalList.js
@@ -9,12 +9,17 @@ const ModalList = () => {
const [open, setOpen] = React.useState(false);
const imageList = [
- { id: "0", url: "../Photos/kolvaus1.jpeg", desc: "Kolvaus kuva" },
+ { id: "0", url: "../Photos/kokous1.jpeg", desc: "Kolvaus kuva" },
{ id: "1", url: "../Photos/rpiMoist.jpeg", desc: "rpi Vesianturi" },
{ id: "2", url: "../Photos/rpiPek.jpeg", desc: "Pekan testit" },
{ id: "3", url: "../Photos/rpiTemp.jpeg", desc: "rpi Lämpöanturi" },
{ id: "4", url: "../Photos/konstaRpi.jpeg", desc: "Konstan testit" },
- { id: "5", url: "../Photos/kokous1.jpeg", desc: "Kokous kuva" }
+ { id: "5", url: "../Photos/kolvaus1.jpeg", desc: "Kokous kuva 1" },
+ { id: "6", url: "../Photos/kolvaus2.jpg", desc: "Kolvaus kuva 2" },
+ { id: "7", url: "../Photos/kolvaus3.jpg", desc: "Kolvaus kuva 3" },
+ { id: "8", url: "../Photos/kolvaus4.jpg", desc: "Kolvaus kuva 4" },
+ { id: "9", url: "../Photos/valkosipulivk1.jpeg", desc: "Valkosipuli viikko 1" },
+ { id: "10", url: "../Photos/valkosipulivk2.jpg", desc: "Valkosipuli viikko 2" }
]
const handleOpen = (e) => {
@@ -39,7 +44,7 @@ const ModalList = () => {
onClose={handleClose}
>
-
+
{item.desc}
diff --git a/src/Components/Modalbox10.js b/src/Components/Modalbox10.js
new file mode 100644
index 0000000..866fa4e
--- /dev/null
+++ b/src/Components/Modalbox10.js
@@ -0,0 +1,35 @@
+import React from 'react';
+import Modal from '@material-ui/core/Modal';
+import '../App.css';
+
+const Modalbox10 = props => {
+
+ const [open, setOpen] = React.useState(false);
+
+ const handleOpen = () => {
+ setOpen(true);
+ };
+
+ const handleClose = () => {
+ setOpen(false);
+ };
+
+ return (
+
+
+
+
+
+
+
+
+ );
+};
+
+
+export default Modalbox10;
\ No newline at end of file
diff --git a/src/Components/Modalbox11.js b/src/Components/Modalbox11.js
new file mode 100644
index 0000000..9fbef23
--- /dev/null
+++ b/src/Components/Modalbox11.js
@@ -0,0 +1,35 @@
+import React from 'react';
+import Modal from '@material-ui/core/Modal';
+import '../App.css';
+
+const Modalbox11 = props => {
+
+ const [open, setOpen] = React.useState(false);
+
+ const handleOpen = () => {
+ setOpen(true);
+ };
+
+ const handleClose = () => {
+ setOpen(false);
+ };
+
+ return (
+
+
+
+
+
+
+
+
+ );
+};
+
+
+export default Modalbox11;
\ No newline at end of file
diff --git a/src/Components/Modalbox7.js b/src/Components/Modalbox7.js
new file mode 100644
index 0000000..3488964
--- /dev/null
+++ b/src/Components/Modalbox7.js
@@ -0,0 +1,35 @@
+import React from 'react';
+import Modal from '@material-ui/core/Modal';
+import '../App.css';
+
+const Modalbox7 = props => {
+
+ const [open, setOpen] = React.useState(false);
+
+ const handleOpen = () => {
+ setOpen(true);
+ };
+
+ const handleClose = () => {
+ setOpen(false);
+ };
+
+ return (
+
+
+
+
+
+
+
+
+ );
+};
+
+
+export default Modalbox7;
\ No newline at end of file
diff --git a/src/Components/Modalbox8.js b/src/Components/Modalbox8.js
new file mode 100644
index 0000000..7c21125
--- /dev/null
+++ b/src/Components/Modalbox8.js
@@ -0,0 +1,35 @@
+import React from 'react';
+import Modal from '@material-ui/core/Modal';
+import '../App.css';
+
+const Modalbox8 = props => {
+
+ const [open, setOpen] = React.useState(false);
+
+ const handleOpen = () => {
+ setOpen(true);
+ };
+
+ const handleClose = () => {
+ setOpen(false);
+ };
+
+ return (
+
+
+
+
+
+
+
+
+ );
+};
+
+
+export default Modalbox8;
\ No newline at end of file
diff --git a/src/Components/Modalbox9.js b/src/Components/Modalbox9.js
new file mode 100644
index 0000000..1b6d468
--- /dev/null
+++ b/src/Components/Modalbox9.js
@@ -0,0 +1,35 @@
+import React from 'react';
+import Modal from '@material-ui/core/Modal';
+import '../App.css';
+
+const Modalbox9 = props => {
+
+ const [open, setOpen] = React.useState(false);
+
+ const handleOpen = () => {
+ setOpen(true);
+ };
+
+ const handleClose = () => {
+ setOpen(false);
+ };
+
+ return (
+
+
+
+
+
+
+
+
+ );
+};
+
+
+export default Modalbox9;
\ No newline at end of file
diff --git a/src/Components/Plants.js b/src/Components/Plants.js
index 8849631..f9d5667 100644
--- a/src/Components/Plants.js
+++ b/src/Components/Plants.js
@@ -20,7 +20,7 @@ const Plants = () => {
.catch(err => console.error(err))
}
- console.log(plant.imagefile)
+ //console.log(plant.imagefile)
return (
@@ -29,13 +29,18 @@ const Plants = () => {
Plant Information
-
+
Nimi: {plant.id}
Tyyppi: {plant.type}
-
Istutus päivä: {plant.istutuspv}
+
Istutuspäivä: {plant.istutuspv}
+
-
+
+
Nimi: Kasvi2
+
Tyyppi: Kasvi2Tyyppi
+
Istutuspäivä: Istutuspv2
+