Search Button in Searchbar

This commit is contained in:
2026-05-04 18:24:01 +02:00
parent 58d52f59da
commit b9cbdc7392
2 changed files with 36 additions and 16 deletions
+6 -3
View File
@@ -39,10 +39,13 @@ limitations under the License.
</p> </p>
</header> </header>
<form> <form id="search-form">
<input type="search" name="search" placeholder="Search..." required /> <div class="search-wrapper">
<button type="submit">Search</button> <input type="search" name="search" placeholder="Search..." required />
<button type="submit">Search</button>
</div>
</form> </form>
<footer> <footer>
<p>&copy; 2026 seekra.</p> <p>&copy; 2026 seekra.</p>
</footer> </footer>
+30 -13
View File
@@ -23,27 +23,44 @@ header p {
form { form {
display: flex; display: flex;
flex-direction: column; justify-content: center;
align-items: center;
margin-top: 20px; margin-top: 20px;
width: 100%; width: 100%;
gap: 10px;
} }
form button{ .search-wrapper {
margin-left: 0; display: flex;
border-radius: 999px; align-items: center;
border: 1.5px solid #ccc;
padding: 10px 15px;
}
form input{
width: 80%; width: 80%;
border-radius: 999px;
border: 1.5px solid #ccc; border: 1.5px solid #ccc;
padding: 10px 15px; border-radius: 999px;
padding: 4px 4px 4px 16px;
} }
.search-wrapper input {
border: none;
outline: none;
width: 100%;
font-size: 1rem;
background: transparent;
}
.search-wrapper button {
border-radius: 999px;
border: none;
padding: 8px 20px;
background: #4562BE;
color: white;
cursor: pointer;
white-space: nowrap;
}
.search-wrapper button:hover {
background: #374FA5;
}
footer{ footer{
text-align: center; text-align: center;
margin-top: 20px; margin-top: 20px;