summaryrefslogtreecommitdiff
path: root/views/partials/top/navbar.ejs
blob: d9c06db1116de56c04ec434c16ef4fe4dd9d0925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<nav class="navbar navbar-expand-lg text-bg-dark shadow sticky-top">
	<div class="container-fluid">
		<a class="navbar-brand text-bg-dark" href="/">
			<img src="static/images/sneedsfeednseed-store.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top">
			SNEEDBAY
		</a>
		<div class="align-items-center d-flex justify-content-between gap-3">
			<a href="/info" class="link-light">
				<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" viewBox="0 0 16 16">
					<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" />
					<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" />
				</svg>
			</a>

			<% if (showSearchBar) { %>
				<form class="d-flex" action="search" method="POST">
					<div class="input-group">
						<input type="text" class="form-control" placeholder="Search for torrent" name="search">
						<button class="input-group-text btn btn-outline-success" type="submit">
							<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
								<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"></path>
							</svg>
						</button>
					</div>
				</form>
			<% } %>
		</div>
	</div>
</nav>