|
1 | 1 | <template> |
2 | 2 | <div id="app" class="container-fluid"> |
3 | 3 | <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> |
17 | 33 | </header> |
18 | 34 |
|
| 35 | + |
19 | 36 | <div v-if="token" class=""> |
20 | 37 | <div class="row row-height"> |
21 | 38 | <div class="col-md-2 overflow-auto h-100 pr-0"> |
|
46 | 63 | </div> |
47 | 64 |
|
48 | 65 | <div v-else> |
49 | | - <h6 class="p-0">{{this.uriQuery}}</h6> |
50 | 66 | <DatasetTable |
51 | 67 | :datasetHits="datasetHits" |
52 | 68 | :responseheaders="responseheaders" |
@@ -498,10 +514,29 @@ updateAnnotations: function () { |
498 | 514 | margin-top: 60px; |
499 | 515 | } */ |
500 | 516 |
|
| 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 | +
|
501 | 524 | /*Set the row height to the viewport*/ |
502 | 525 | .row-height { |
503 | 526 | height: calc(100vh - 60px); |
504 | 527 | } |
505 | 528 |
|
| 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 | +
|
506 | 541 | /*Set up the columns with a 100% height, body color and overflow scroll*/ |
507 | 542 | </style> |
0 commit comments