Added branding / Fixed navbar

This commit is contained in:
Leon Meier 2023-05-23 22:04:56 +02:00
parent 584b00c878
commit d5fcf94455
3 changed files with 7 additions and 19 deletions

View File

@ -1,10 +1,6 @@
<nav class="navbar navbar-expand-lg bg-body-tertiary sticky-top" style="z-index: 9999">
<div class="container-fluid">
<img src="/logo/Design_icon.svg" height="10%">
<a class="navbar-brand" href="#" onclick="doTheConfetti()">AssetFlow</a>
<!-- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button> -->
<a class="navbar-brand user-select-none ms-2" onclick="doTheConfetti()" style="cursor: default"><img draggable="false" class="me-2" src="/logo/Design_icon.svg" width="40%" /> AssetFlow</a>
<button
class="navbar-toggler position-absolute d-md-none collapsed"
type="button"
@ -16,12 +12,10 @@
<span class="navbar-toggler-icon"></span>
</button>
<div class="" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
</ul>
<ul class="navbar-nav me-auto mb-2 mb-lg-0"></ul>
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search" id="SearchBox" />
<div class="autocomplete-items bg-secondary w-75 border-primary me-5 p-2" id="autocomplete-items" style="left: 16.7%"></div>
<div class="autocomplete-items bg-secondary border-primary me-2 p-2" id="autocomplete-items"></div>
</form>
</div>
</div>
@ -33,18 +27,10 @@
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
<div class="toast-container position-fixed bottom-0 end-0 p-3" id="toastMainController">
<div class="toast" role="alert" aria-live="assertive" aria-atomic="true" id="generalToast" style="z-index: 2000">
<div class="d-flex">
<div class="toast-body">Hello, world! This is a toast message.</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block sidebar collapse">
<nav id="sidebarMenu" class="col-md-2 col-lg-2 d-md-block sidebar collapse">
<div class="position-sticky pt-3">
<ul class="nav flex-column">
<li class="nav-item">

View File

@ -8,7 +8,7 @@ body {
.sidebar {
position: fixed;
top: 0.5rem;
top: 1.5rem;
bottom: 0;
left: 0;

View File

@ -3,6 +3,8 @@ const autocompleteBox = document.getElementById("autocomplete-items");
autocompleteBox.style.display = "none";
function handleSearchChange(e) {
console.log(e.target.value);
return; // No you won't. I'm not done yet.
// Check if known prefix is used (either > or #)
if(e.target.value != "" ) {
autocompleteBox.style.display = "block";