Update the styling of the forms

pull/3/head
Brogan Clements 2022-02-17 01:35:49 -05:00
parent 8fc043b237
commit 53d2b244a1
4 changed files with 30 additions and 7 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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>

View File

@ -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>