Skip to content

Commit

Permalink
modification button
Browse files Browse the repository at this point in the history
  • Loading branch information
grosjeanstephanie committed Apr 28, 2019
1 parent 463b4f7 commit aea6b6e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
18 changes: 16 additions & 2 deletions src/InfoMeteo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@ import React from 'react';

export const InfoMeteo = (props) => {
const {tabData, temps, wind}=props
console.log(temps)
let x = Math.ceil(temps.length / 2);

let list1 = [], list2 = [];

for (let i = 0; i < temps.length; i++) {
if (i > x) {
list1.push(temps[i]);
} else {
list2.push(temps[i]);
}
}

return (
<div>
<div className="ofx-s w-100 row">
{temps.map((temp)=>
{list1.map((temp)=>
(
<div className="w-250px p-20">
Temperature : {Math.floor(temp)} °C<br/>
Expand All @@ -17,5 +29,7 @@ export const InfoMeteo = (props) => {
)
)}
</div>

</div>
)
}
4 changes: 2 additions & 2 deletions src/InfoPlanet.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export const InfoPlanet = (props) => {
{Math.floor(props.coord.longitude)}
<div className="buttonfield">
<button onClick={startRecording} type="button" className="button">
Start
Speak
</button>
<button onClick={stopRecording} type="button" className="button" >
Stop
Answers
</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Planet.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class Planet extends Component {
let sphereGeometry2 = new THREE.SphereBufferGeometry(15, 30, 30, 0,Math.PI );

// Sphere Material 2
let sphereMaterial2= new THREE.MeshPhongMaterial({ color : 0xffffff});
let sphereMaterial2= new THREE.MeshPhongMaterial({color : 0xffffff });
let sphereMesh2 = new THREE.Mesh(sphereGeometry2, sphereMaterial2);
sphereMesh2.position.set(0, 0, 200);
pivotPoint.add(sphereMesh2);
Expand Down
12 changes: 10 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ code {
monospace;
}
.ofx-s{
overflow-x: scroll
overflow-x: scroll;
overflow: hidden;
}
.sndrow{
grid-row: 2/3;
}

.w-100{
width:90vw
width:100vw;
}
.w-250px{
width:250px;
Expand All @@ -42,6 +46,7 @@ code {
.App{
padding: 25px;
color: white;
margin-top: 15px;
display: grid;
grid-template-columns: 55% auto;

Expand Down Expand Up @@ -77,9 +82,12 @@ margin: 0 3px;
margin-top: 10px;
display: flex;
justify-content: center;
color: lightseagreen;

}



/* bbffee blue */

/* e2381e red */
Expand Down

0 comments on commit aea6b6e

Please sign in to comment.