Skip to content

Commit 78d3fc5

Browse files
committed
WIP:StatusBar
1 parent db2d31c commit 78d3fc5

File tree

1 file changed

+49
-14
lines changed

1 file changed

+49
-14
lines changed

dtool-lookup-webapp/src/App.vue

Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,38 @@
11
<template>
22
<div id="app" class="container-fluid">
33
<header>
4-
<div v-if="!token">
5-
</div>
6-
<div v-else>
7-
<nav class="navbar navbar-dark bg-dark p-2">
8-
<span class="navbar-brand mb-0 h1 mr-auto">dtool</span>
9-
<div class="d-flex align-items-center justify-content-end">
10-
<TextSearch @start-search="searchDatasets" />
11-
</div>
12-
<div>
13-
<b-button pill variant="outline-danger" @click="logout()">Logout</b-button>
14-
</div>
15-
</nav>
16-
</div>
4+
<nav v-if="token" class="navbar navbar-expand-lg navbar-dark bg-dark">
5+
<!-- Brand/logo with image -->
6+
<a class="navbar-brand" href="#">
7+
<img src="./assets/icons/128x128/dtool_logo.png" alt="dtool Logo" style="height: 35px;">
8+
dtool
9+
</a>
10+
11+
<!-- Toggler/collapsible Button for smaller screens -->
12+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
13+
<span class="navbar-toggler-icon"></span>
14+
</button>
15+
16+
<!-- Navbar content -->
17+
<div class="collapse navbar-collapse" id="navbarToggler">
18+
<!-- Navbar items aligned to the right -->
19+
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 d-flex align-items-center">
20+
<!-- Search input -->
21+
<li class="nav-item">
22+
<form class="d-flex" role="search">
23+
<TextSearch @start-search="searchDatasets" class="me-2" />
24+
</form>
25+
</li>
26+
<!-- Logout button -->
27+
<li class="nav-item">
28+
<button class="btn btn-outline-danger" type="button" @click="logout">Logout</button>
29+
</li>
30+
</ul>
31+
</div>
32+
</nav>
1733
</header>
1834

35+
1936
<div v-if="token" class="">
2037
<div class="row row-height">
2138
<div class="col-md-2 overflow-auto h-100 pr-0">
@@ -46,7 +63,6 @@
4663
</div>
4764

4865
<div v-else>
49-
<h6 class="p-0">{{this.uriQuery}}</h6>
5066
<DatasetTable
5167
:datasetHits="datasetHits"
5268
:responseheaders="responseheaders"
@@ -498,10 +514,29 @@ updateAnnotations: function () {
498514
margin-top: 60px;
499515
} */
500516
517+
#app {
518+
width: 100vw; /* 100% of the viewport width */
519+
height: 100vh; /* 100% of the viewport height */
520+
overflow: hidden; /* Prevents scrollbars if the content is larger than the viewport */
521+
}
522+
523+
501524
/*Set the row height to the viewport*/
502525
.row-height {
503526
height: calc(100vh - 60px);
504527
}
505528
529+
530+
.navbar {
531+
background: linear-gradient(
532+
190deg,
533+
#8b319b 0%,
534+
#95319b 50%,
535+
#8a419b 75%,
536+
#c800ff 100%
537+
);
538+
}
539+
540+
506541
/*Set up the columns with a 100% height, body color and overflow scroll*/
507542
</style>

0 commit comments

Comments
 (0)