Merge pull request #3 from brogan20/main

pull/5/head
Brogan Clements 2022-02-17 01:37:38 -05:00 committed by GitHub
commit da457c3943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 7 deletions

View File

@ -269,3 +269,22 @@ footer {
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>
<a href="https://ebookfoundation.github.io/free-programming-books/">free-programming-books</a>
</h1>
<div>
<SearchBar changeParameter={changeParameter} />
<LangDropdown changeParameter={changeParameter} data={data} />
</div>
<br />
<p>
<img
class="emoji"
@ -245,13 +241,20 @@ function App() {
/>{" "}
Freely available programming books
</p>
<div>
<SearchBar changeParameter={changeParameter} />
<LangDropdown changeParameter={changeParameter} data={data} />
</div>
<br />
<p class="view">
<a href="https://github.com/EbookFoundation/free-programming-books">
View the Project on GitHub <small>EbookFoundation/free-programming-books</small>
</a>
</p>
<p>
Does a link not work?
Does a link not work?
<br />
<a href="https://github.com/EbookFoundation/free-programming-books/issues/" target="_blank">
Report an error on GitHub

View File

@ -45,7 +45,7 @@ function LangDropdown({ changeParameter, data }) {
});
// console.log(options);
return (
<select onChange={handleChange} name="languages" id="languages">
<select onChange={handleChange} name="languages" id="languages" class="languages">
<option key="allLangs" value="">
All Languages
</option>

View File

@ -18,6 +18,7 @@ function SearchBar(props) {
type="text"
name="searchTerm"
placeholder="Enter Book Name"
className="searchterm"
onChange={handleChange}
/>
</form>