Added logo to navbar, reworked navbar layout
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -91,8 +91,8 @@ async function generateCriticalCSSForViews() {
|
|||||||
forceExclude: ['.btn'], // Otherwise buttons end up colorless and .btn overrides other classes like .btn-warning, etc. - so it has to be force-excluded here and re-added later
|
forceExclude: ['.btn'], // Otherwise buttons end up colorless and .btn overrides other classes like .btn-warning, etc. - so it has to be force-excluded here and re-added later
|
||||||
forceInclude: [
|
forceInclude: [
|
||||||
'[data-bs-theme="dark"]', '[data-bs-theme="dark"] body', '[data-bs-theme="dark"] .navbar', '[data-bs-theme="dark"] .card', '[data-bs-theme="dark"] .btn',
|
'[data-bs-theme="dark"]', '[data-bs-theme="dark"] body', '[data-bs-theme="dark"] .navbar', '[data-bs-theme="dark"] .card', '[data-bs-theme="dark"] .btn',
|
||||||
'.navbar',
|
|
||||||
'.col-md-4',
|
'.col-md-4',
|
||||||
|
'.navbar', '.ms-auto', '.dropdown', '.dropdown-menu',
|
||||||
'.visually-hidden', // visually hidden headings
|
'.visually-hidden', // visually hidden headings
|
||||||
'.bi-info-circle-fill', '.text-info', // info icon
|
'.bi-info-circle-fill', '.text-info', // info icon
|
||||||
'.container', '.col-md-6', '.row', '.g-4', '.row>*',
|
'.container', '.col-md-6', '.row', '.g-4', '.row>*',
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# How to use CriticalCSS
|
# How to use CriticalCSS
|
||||||
1. Install it here
|
1. Install the dependencies from here
|
||||||
```bash
|
```bash
|
||||||
npm i -D critical
|
npm i -D critical
|
||||||
npm install puppeteer
|
npm install puppeteer
|
||||||
@@ -8,4 +8,3 @@ npm install puppeteer
|
|||||||
```bash
|
```bash
|
||||||
node CriticalCSSGenerator.js
|
node CriticalCSSGenerator.js
|
||||||
```
|
```
|
||||||
3. Move the `.css` files from the current directory to the `CriticalCSS/` folder (overwrite existing files)
|
|
||||||
@@ -52,7 +52,9 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light border-bottom box-shadow mb-3">
|
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light border-bottom box-shadow mb-3">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">embeddingsearch</a>
|
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">
|
||||||
|
<img fetchpriority="high" alt="Logo" src="/logo.png" width="40" height="40" style="width: 40px; height: 40px;">
|
||||||
|
</a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||||
aria-expanded="false" aria-label="Toggle navigation">
|
aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
@@ -69,17 +71,20 @@
|
|||||||
</li>
|
</li>
|
||||||
@if (User.IsInRole("Admin") || User.IsInRole("Swagger"))
|
@if (User.IsInRole("Admin") || User.IsInRole("Swagger"))
|
||||||
{
|
{
|
||||||
<li class="nav-item">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link text" href="/swagger/index.html?ReturnUrl=@(currentUrl)">@T["Swagger"]</a>
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
</li>
|
@T["Tools"]
|
||||||
}
|
</a>
|
||||||
|
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||||
|
<a class="dropdown-item" href="/swagger/index.html?ReturnUrl=@(currentUrl)">@T["Swagger"]</a>
|
||||||
@if (User.IsInRole("Admin"))
|
@if (User.IsInRole("Admin"))
|
||||||
{
|
{
|
||||||
<li class="nav-item">
|
<a class="dropdown-item" href="/elmah?ReturnUrl=@(currentUrl)">@T["Elmah"]</a>
|
||||||
<a class="nav-link text" href="/elmah?ReturnUrl=@(currentUrl)">@T["Elmah"]</a>
|
}
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
<li class="nav-item">
|
<li class="nav-item ms-auto">
|
||||||
<a class="nav-link text" asp-area="" asp-controller="Account" asp-action="Logout">@T["Logout"]</a>
|
<a class="nav-link text" asp-area="" asp-controller="Account" asp-action="Logout">@T["Logout"]</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
src/Server/wwwroot/logo.png
Normal file
BIN
src/Server/wwwroot/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.1 KiB |
Reference in New Issue
Block a user