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
+4 -1
View File
@@ -39,10 +39,13 @@ limitations under the License.
</p>
</header>
<form>
<form id="search-form">
<div class="search-wrapper">
<input type="search" name="search" placeholder="Search..." required />
<button type="submit">Search</button>
</div>
</form>
<footer>
<p>&copy; 2026 seekra.</p>
</footer>
+30 -13
View File
@@ -23,27 +23,44 @@ header p {
form {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 20px;
width: 100%;
gap: 10px;
}
form button{
margin-left: 0;
border-radius: 999px;
border: 1.5px solid #ccc;
padding: 10px 15px;
}
form input{
.search-wrapper {
display: flex;
align-items: center;
width: 80%;
border-radius: 999px;
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{
text-align: center;
margin-top: 20px;