diff --git a/Start/Client/App.razor b/Start/Client/App.razor index d30c0d9..0bd7390 100644 --- a/Start/Client/App.razor +++ b/Start/Client/App.razor @@ -3,7 +3,7 @@ - + @if (!context.User.Identity?.IsAuthenticated ?? false) { @@ -17,9 +17,7 @@ - -

Sorry, there's nothing at this address.

-
+

Sorry, there's nothing at this address.

diff --git a/Start/Client/Shared/LoginDisplay.razor b/Start/Client/Shared/LoginDisplay.razor deleted file mode 100644 index 0bda17d..0000000 --- a/Start/Client/Shared/LoginDisplay.razor +++ /dev/null @@ -1,24 +0,0 @@ -@using Microsoft.AspNetCore.Components.Authorization -@using Microsoft.AspNetCore.Components.WebAssembly.Authentication - -@inject NavigationManager Navigation -@inject SignOutSessionStateManager SignOutManager - - - - Hello, @context.User.Identity?.Name! - - - - Register - Log in - - - -@code{ - private async Task BeginSignOut(MouseEventArgs args) - { - await SignOutManager.SetSignOutState(); - Navigation.NavigateTo("authentication/logout"); - } -} diff --git a/Start/Client/Shared/MainLayout.razor b/Start/Client/Shared/MainLayout.razor deleted file mode 100644 index 655f150..0000000 --- a/Start/Client/Shared/MainLayout.razor +++ /dev/null @@ -1,9 +0,0 @@ -@inherits LayoutComponentBase - -
-
-
- @Body -
-
-
diff --git a/Start/Client/Shared/NavMenu.razor b/Start/Client/Shared/NavMenu.razor deleted file mode 100644 index 45d08d9..0000000 --- a/Start/Client/Shared/NavMenu.razor +++ /dev/null @@ -1,42 +0,0 @@ - - -
- -
- -@code { - private bool collapseNavMenu = true; - - private string NavMenuCssClass => collapseNavMenu ? "collapse" : ""; - - private void ToggleNavMenu() - { - collapseNavMenu = !collapseNavMenu; - } -} diff --git a/Start/Client/Shared/NavMenu.razor.css b/Start/Client/Shared/NavMenu.razor.css deleted file mode 100644 index acc5f9f..0000000 --- a/Start/Client/Shared/NavMenu.razor.css +++ /dev/null @@ -1,62 +0,0 @@ -.navbar-toggler { - background-color: rgba(255, 255, 255, 0.1); -} - -.top-row { - height: 3.5rem; - background-color: rgba(0,0,0,0.4); -} - -.navbar-brand { - font-size: 1.1rem; -} - -.oi { - width: 2rem; - font-size: 1.1rem; - vertical-align: text-top; - top: -2px; -} - -.nav-item { - font-size: 0.9rem; - padding-bottom: 0.5rem; -} - - .nav-item:first-of-type { - padding-top: 1rem; - } - - .nav-item:last-of-type { - padding-bottom: 1rem; - } - - .nav-item ::deep a { - color: #d7d7d7; - border-radius: 4px; - height: 3rem; - display: flex; - align-items: center; - line-height: 3rem; - } - -.nav-item ::deep a.active { - background-color: rgba(255,255,255,0.25); - color: white; -} - -.nav-item ::deep a:hover { - background-color: rgba(255,255,255,0.1); - color: white; -} - -@media (min-width: 641px) { - .navbar-toggler { - display: none; - } - - .collapse { - /* Never collapse the sidebar for wide screens */ - display: block; - } -}