Correct element layout in app.js

pull/7/head
Brogan Clements 2022-03-04 11:25:50 -05:00
parent 96fc91afa1
commit a93584641c
1 changed files with 7 additions and 11 deletions

View File

@ -250,12 +250,6 @@ 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" target="_blank" rel="noreferrer">
View the Project on GitHub <small>EbookFoundation/free-programming-books</small>
@ -268,10 +262,13 @@ function App() {
Report an error on GitHub
</a>
</p>
<SectDropdown className="sect-drop" changeParameter={changeParameter} data={data} value={searchParams['section'] || "allSects"}/>
<div className="search-results section-results">{sectionResultsList}</div>
<h2>Top Results</h2>
<div className="search-results">{resultsList}</div>
<div>
<SearchBar changeParameter={changeParameter} />
<LangDropdown changeParameter={changeParameter} data={data} />
<SectDropdown className="sect-drop" changeParameter={changeParameter} data={data} value={searchParams['section'] || "allSects"}/>
<div className="search-results section-results">{sectionResultsList}</div>
</div>
</header>
<section className="search-results">
@ -302,7 +299,6 @@ function App() {
</small>
</p>
</footer>
)}
</div>
);