1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-04 09:34:05 +02:00

Redesign Web navigation

This commit is contained in:
chylex 2023-12-20 04:26:48 +01:00
parent e679b17e3b
commit 1ded0e50b2
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
3 changed files with 9 additions and 6 deletions
Utils/Phantom.Utils/Runtime
Web/Phantom.Web
Layout
wwwroot/css

View File

@ -4,6 +4,6 @@ namespace Phantom.Utils.Runtime;
public static class AssemblyAttributes { public static class AssemblyAttributes {
public static string GetFullVersion(Assembly assembly) { public static string GetFullVersion(Assembly assembly) {
return assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Replace('+', '/') ?? string.Empty; return assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Replace('+', '-') ?? string.Empty;
} }
} }

View File

@ -6,7 +6,10 @@
<div class="navbar navbar-dark"> <div class="navbar navbar-dark">
<div class="container-fluid"> <div class="container-fluid">
<a class="navbar-brand" href="">Phantom Panel</a> <div class="pt-1 pb-2">
<a class="navbar-brand" href="">Phantom Panel</a>
<small class="navbar-text">Version&nbsp;@ApplicationProperties.Version</small>
</div>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu"> <button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
@ -45,9 +48,6 @@
</Authorized> </Authorized>
</AuthorizeView> </AuthorizeView>
</nav> </nav>
<footer>
Build @ApplicationProperties.Version
</footer>
</div> </div>
@code { @code {

View File

@ -14,6 +14,8 @@
.sidebar { .sidebar {
background-image: linear-gradient(180deg, #0f6477 200px, #1b3d59 1000px); background-image: linear-gradient(180deg, #0f6477 200px, #1b3d59 1000px);
border-right: 1px solid rgba(2, 39, 47, 0.5);
box-shadow: 0 0 2px #093c47;
} }
@media (min-width: 960px) { @media (min-width: 960px) {
@ -27,7 +29,7 @@
position: sticky; position: sticky;
top: 0; top: 0;
width: 230px; width: 230px;
min-height: 100vh; height: 100vh;
} }
} }
@ -38,6 +40,7 @@ main {
} }
h1 { h1 {
font-size: 2rem;
font-weight: 600; font-weight: 600;
} }