Commit d96323a7 authored by Weiser's avatar Weiser
Browse files

css

parent b04ad954
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
} }
.filter input[type="text"], .filter input[type="text"],
.filter select { .filter select {
width: 100%; width: 100%;
padding: 8px; padding: 8px;
...@@ -44,39 +45,43 @@ ...@@ -44,39 +45,43 @@
#apiUrloutput { #apiUrloutput {
width: 1250px; width: 1250px;
} }
.list-container { .field_write{
width: 300px; margin-top: 30px;
margin: 20px auto; display: flex;
font-family: Arial, sans-serif; flex-direction: row;
} }
.fw{
.list-item { margin-left:20px;
border: 1px solid #ccc;
margin: 10px 0;
padding: 10px;
border-radius: 5px;
transition: background-color 0.3s;
cursor: pointer;
} }
.h1{
.list-item:hover { margin-bottom: -30px;
background-color: #f0f0f0;
} }
.thq-grid-5{
.title { display: flex;
font-size: 18px; flex-direction: column;
font-weight: bold;
} }
.h2{
.subtitle { margin-top: 40px;
font-size: 14px;
color: #666;
} }
.location{
margin-top: 40px;
}
.time{
margin-top:40px;
margin-left:80px;
}
.dataselect{
display: flex;
flex-direction: row;
.APIButton { }
display: block; .data{
margin: 10px auto; margin-top:40px;
padding: 10px 20px; margin-left:80px;
font-size: 16px; }
cursor: pointer; .h3{
margin-bottom: 10px;
}
.generate{
margin-top: 20px;
} }
\ No newline at end of file
...@@ -17,7 +17,12 @@ const Currentdata = (props) => { ...@@ -17,7 +17,12 @@ const Currentdata = (props) => {
<div className="home-container"> <div className="home-container">
<div> <div>
<div className="thq-grid-5"> <div className="thq-grid-5">
<div class="filter"> <div class="h1">
<h1>Choose your City</h1>
<br />
</div>
<div class="field_write">
<div class="fw">
<label htmlFor="location">Location:</label> <label htmlFor="location">Location:</label>
<input <input
type="text" type="text"
...@@ -36,20 +41,33 @@ const Currentdata = (props) => { ...@@ -36,20 +41,33 @@ const Currentdata = (props) => {
lon={item.lon} lon={item.lon}
/> />
))} ))}
<br /> </div>
<div class="fw">
<label for="region">Region:</label> <label for="region">Region:</label>
<input type="text" id="region_text" placeholder="Region" /> <input type="text" id="region_text" placeholder="Region" />
<br /> </div>
<div class="fw">
<label>Country:</label> <label>Country:</label>
<input type="text" id="country_text" placeholder="Country" /> <input type="text" id="country_text" placeholder="Country" />
<br /> </div>
<div class="fw">
<label>Latitude:</label> <label>Latitude:</label>
<input type="text" id="latitude_text" placeholder="Latitude" /> <input type="text" id="latitude_text" placeholder="Latitude" />
</div>
<div class="fw">
<label>Longitude:</label> <label>Longitude:</label>
<input type="text" id="longitude_text" placeholder="Longitude" /> <input type="text" id="longitude_text" placeholder="Longitude" />
<br />
</div> </div>
<div> </div>
</div>
<div class="h2">
<h2>Choose the variables you want.</h2>
</div>
<div className="dataselect">
<div class="location">
<div class="h3">
<h3>Location</h3>
</div>
<input type="checkbox" id="name" className="checkBoxFilter" /> <input type="checkbox" id="name" className="checkBoxFilter" />
<label> City Name</label> <label> City Name</label>
<br /> <br />
...@@ -65,6 +83,11 @@ const Currentdata = (props) => { ...@@ -65,6 +83,11 @@ const Currentdata = (props) => {
<input type="checkbox" id="lat" className="checkBoxFilter" /> <input type="checkbox" id="lat" className="checkBoxFilter" />
<label> Latitude</label> <label> Latitude</label>
<br /> <br />
</div>
<div class="time">
<div class="h3">
<h3>Time</h3>
</div>
<input type="checkbox" id="tz_id" className="checkBoxFilter" /> <input type="checkbox" id="tz_id" className="checkBoxFilter" />
<label> Timezone Id</label> <label> Timezone Id</label>
<br /> <br />
...@@ -92,29 +115,26 @@ const Currentdata = (props) => { ...@@ -92,29 +115,26 @@ const Currentdata = (props) => {
/> />
<label> Last Updated</label> <label> Last Updated</label>
<br /> <br />
</div>
<div class="data">
<div class="h3">
<h3>Temperature</h3>
</div>
<input type="checkbox" id="temp" className="checkBoxFilter" /> <input type="checkbox" id="temp" className="checkBoxFilter" />
<label for="temp">Temp</label> <label for="temp">Temp</label>
<br /> <br />
<input type="checkbox" id="id_day" className="checkBoxFilter" /> <input type="checkbox" id="id_day" className="checkBoxFilter" />
<label for="id_day">ID Day</label> <label for="id_day">ID Day</label>
<br /> <br />
<input <input type="checkbox"id="condition_text"className="checkBoxFilter"/>
type="checkbox"
id="condition_text"
className="checkBoxFilter"
/>
<label for="condition">Condition Text</label> <label for="condition">Condition Text</label>
<br /> <br />
<input </div>
type="checkbox" <div class="data">
id="condition" <div class="h3">
className="checkBoxFilter" <h3>Wind</h3>
/> </div>
<input <input type="checkbox" id="wind_degree" className="checkBoxFilter" />
type="checkbox"
id="wind_degree"
className="checkBoxFilter"
/>
<label for="wind_degree">Wind Degree</label> <label for="wind_degree">Wind Degree</label>
<br /> <br />
<input type="checkbox" id="wind_dir" className="checkBoxFilter" /> <input type="checkbox" id="wind_dir" className="checkBoxFilter" />
...@@ -132,6 +152,11 @@ const Currentdata = (props) => { ...@@ -132,6 +152,11 @@ const Currentdata = (props) => {
<input type="checkbox" id="cloud" className="checkBoxFilter" /> <input type="checkbox" id="cloud" className="checkBoxFilter" />
<label for="cloud">Cloud</label> <label for="cloud">Cloud</label>
<br /> <br />
</div>
<div class="data">
<div class="h3">
<h3>Temperature</h3>
</div>
<input type="checkbox" id="feelslike" className="checkBoxFilter" /> <input type="checkbox" id="feelslike" className="checkBoxFilter" />
<label for="feelslike">Feelslike</label> <label for="feelslike">Feelslike</label>
<br /> <br />
...@@ -153,6 +178,11 @@ const Currentdata = (props) => { ...@@ -153,6 +178,11 @@ const Currentdata = (props) => {
<input type="checkbox" id="gust" className="checkBoxFilter" /> <input type="checkbox" id="gust" className="checkBoxFilter" />
<label for="gust">Gust </label> <label for="gust">Gust </label>
<br /> <br />
</div>
<div class="data">
<div class="h3">
<h3>Air Quality</h3>
</div>
<input <input
type="checkbox" type="checkbox"
id="air_quality_co" id="air_quality_co"
...@@ -209,6 +239,8 @@ const Currentdata = (props) => { ...@@ -209,6 +239,8 @@ const Currentdata = (props) => {
/> />
<label for="air_quality_gb_defra_index">GB DEFRA Index</label> <label for="air_quality_gb_defra_index">GB DEFRA Index</label>
<br /> <br />
</div>
</div>
<div> <div>
<label for="units">Choose a unit:</label> <label for="units">Choose a unit:</label>
<select name="unnits" id="units"> <select name="unnits" id="units">
...@@ -218,7 +250,7 @@ const Currentdata = (props) => { ...@@ -218,7 +250,7 @@ const Currentdata = (props) => {
</option> </option>
</select> </select>
</div> </div>
<div> <div class="generate">
<button className="thq-button-filled" onClick={getData}> <button className="thq-button-filled" onClick={getData}>
Generate Generate
</button> </button>
...@@ -238,8 +270,6 @@ const Currentdata = (props) => { ...@@ -238,8 +270,6 @@ const Currentdata = (props) => {
<br /> <br />
</div> </div>
</div> </div>
</div>
</div>
); );
function getData() { function getData() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment