Skip to content

Commit

Permalink
Merge pull request #892 from kesava23/main
Browse files Browse the repository at this point in the history
placed search bar in the webpage
  • Loading branch information
sunny0625 authored Jun 4, 2024
2 parents 3c65272 + 94d2f30 commit 7a69d58
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@
<li>
<a class="" href="Html-files/cart.html"><i class="fa-solid fa-cart-shopping"></i></a>
</li>
<div class="search-bar">
<input type="text" placeholder="Search your food item.." name="search">
<button type="submit">Search</button>
</div>
</ul>
</div>
</div>

</nav>


<section class="hero text-center" aria-label="home" id="home">
<ul class="hero-slider" data-hero-slider>
<li class="slider-item active" data-hero-slider-item>
Expand Down Expand Up @@ -662,5 +666,4 @@ <h4>Follow Us</h4>
}
</script>
main

</html>
29 changes: 27 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,32 @@ body {
max-height: 0.1%;
}
}
.search-bar {
position: relative;
display: flex;
}
.search-bar input[type="text"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-top: 10px;
}

.search-bar button {
padding: 1px;
background-color: #ddd;
border: 1px solid #ccc;
border-radius: 5px;
cursor: pointer;
margin-left: 5px;
margin-top: 10px;
}

.search-bar button:hover {
background-color: #ccc; /* Changes button color on hover */
}


.intro_container {
display: flex;
Expand Down Expand Up @@ -1119,8 +1145,7 @@ ul {
background: #de6262;
background: -webkit-linear-gradient(to right, #de6262, #ffb88c);
background: linear-gradient(to right, #de6262, #ffb88c);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

}

@keyframes marquee {
Expand Down

0 comments on commit 7a69d58

Please sign in to comment.