Update the styling of the forms
parent
8fc043b237
commit
53d2b244a1
19
src/App.css
19
src/App.css
|
@ -269,3 +269,22 @@ footer {
|
||||||
color:#444;
|
color:#444;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.searchbar {
|
||||||
|
padding-bottom: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.searchterm {
|
||||||
|
border: 1px solid #666;
|
||||||
|
border-radius: 0.3em;
|
||||||
|
padding: 0.15em 0.15em 0.15em 0.15em;
|
||||||
|
width: 15em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.languages {
|
||||||
|
border: 1px solid #666;
|
||||||
|
border-radius: 0.3em;
|
||||||
|
padding: 0.15em 0.15em 0.15em 0.15em;
|
||||||
|
width: 15.4em;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
15
src/App.js
15
src/App.js
|
@ -229,11 +229,7 @@ function App() {
|
||||||
<h1>
|
<h1>
|
||||||
<a href="https://ebookfoundation.github.io/free-programming-books/">free-programming-books</a>
|
<a href="https://ebookfoundation.github.io/free-programming-books/">free-programming-books</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
|
||||||
<SearchBar changeParameter={changeParameter} />
|
|
||||||
<LangDropdown changeParameter={changeParameter} data={data} />
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<p>
|
<p>
|
||||||
<img
|
<img
|
||||||
class="emoji"
|
class="emoji"
|
||||||
|
@ -245,13 +241,20 @@ function App() {
|
||||||
/>{" "}
|
/>{" "}
|
||||||
Freely available programming books
|
Freely available programming books
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<SearchBar changeParameter={changeParameter} />
|
||||||
|
<LangDropdown changeParameter={changeParameter} data={data} />
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
|
||||||
<p class="view">
|
<p class="view">
|
||||||
<a href="https://github.com/EbookFoundation/free-programming-books">
|
<a href="https://github.com/EbookFoundation/free-programming-books">
|
||||||
View the Project on GitHub <small>EbookFoundation/free-programming-books</small>
|
View the Project on GitHub <small>EbookFoundation/free-programming-books</small>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Does a link not work?
|
Does a link not work?
|
||||||
<br />
|
<br />
|
||||||
<a href="https://github.com/EbookFoundation/free-programming-books/issues/" target="_blank">
|
<a href="https://github.com/EbookFoundation/free-programming-books/issues/" target="_blank">
|
||||||
Report an error on GitHub
|
Report an error on GitHub
|
||||||
|
|
|
@ -45,7 +45,7 @@ function LangDropdown({ changeParameter, data }) {
|
||||||
});
|
});
|
||||||
// console.log(options);
|
// console.log(options);
|
||||||
return (
|
return (
|
||||||
<select onChange={handleChange} name="languages" id="languages">
|
<select onChange={handleChange} name="languages" id="languages" class="languages">
|
||||||
<option key="allLangs" value="">
|
<option key="allLangs" value="">
|
||||||
All Languages
|
All Languages
|
||||||
</option>
|
</option>
|
||||||
|
|
|
@ -18,6 +18,7 @@ function SearchBar(props) {
|
||||||
type="text"
|
type="text"
|
||||||
name="searchTerm"
|
name="searchTerm"
|
||||||
placeholder="Enter Book Name"
|
placeholder="Enter Book Name"
|
||||||
|
className="searchterm"
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue