Skip to content

Commit

Permalink
update ui of searchbar
Browse files Browse the repository at this point in the history
  • Loading branch information
avanimathur committed Oct 25, 2024
1 parent ff6e197 commit a312977
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 8 additions & 2 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<nav class="main-nav">
<div class="container-lg mx-auto clearfix">
<div class="float-sm-right">

<form class="form-inline my-2 my-lg-0" action="/search" method="get">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="query">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>

<ul
class="main-links d-flex flex-wrap flex-items-stretch flex-justify-center border-left border-bottom border-sm-0 list-style-none">
<li class="d-inline-block border-right">
Expand Down Expand Up @@ -32,7 +38,7 @@
</div>
</li>
{% endif %}
</ul>
</ul>
</div>
{% if page.layout != 'index' %}
<div class="float-sm-left pl-3 breadcrumb">
Expand All @@ -46,4 +52,4 @@
</div>
{% endif %}
</div>
</nav>
</nav>
5 changes: 0 additions & 5 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
<body>
<main>
<div id="content">
<!-- Search Form -->
<form id="searchForm" onsubmit="return searchSite(event)">
<input type="text" id="searchBar" placeholder="Search guides..." />
<button type="submit">Search</button>
</form>
<div id="results"></div>

<!-- Main Content -->
Expand Down

0 comments on commit a312977

Please sign in to comment.