Skip to content

Commit

Permalink
Added bootstrap js and test navbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
kannansuresh committed Jan 19, 2024
1 parent 5fb46c0 commit 6b39a7a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/Aneejian.Games.ClickMatch.Client/Components/_Navbar.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<nav class="navbar fixed-top">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar" aria-controls="offcanvasNavbar" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">Click and Match</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</li>
</ul>
<form class="d-flex mt-3" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</div>
</nav>
1 change: 1 addition & 0 deletions src/Aneejian.Games.ClickMatch.Client/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
<script src="js/bootstrap/bootstrap.bundle.min.js"></script>
<script src="js/custom.js"></script>
<script src="_framework/blazor.webassembly.js"></script>
<script>navigator.serviceWorker.register('js/custom.js');</script>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 6b39a7a

Please sign in to comment.