Skip to content

Commit

Permalink
Add Login shared login page
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Apr 1, 2024
1 parent 5b8f73f commit 7ae8f3b
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 56 deletions.
5 changes: 3 additions & 2 deletions sources/Clients.Admin.Web/App.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Router AppAssembly="@typeof(App).Assembly">
@using MadWorldNL.Clients.Identity.Blazor.Shared
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="new []{ typeof(IIdentityMarker).Assembly }" >
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1"/>
</Found>
<NotFound>
Expand Down
4 changes: 3 additions & 1 deletion sources/Clients.Admin.Web/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

<main>
<div class="top-row px-4">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
<NavLink class="nav-link" href="Login">
Login
</NavLink>
</div>

<article class="content px-4">
Expand Down
2 changes: 1 addition & 1 deletion sources/Clients.Admin.Web/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="css/app.css" />
<link rel="icon" type="image/png" href="favicon.png" />
<link href="Clients.Admin.Web.styles.css" rel="stylesheet" />
<link href="MadWorldNL.Clients.Admin.Web.styles.css" rel="stylesheet" />
</head>

<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Clients.Identity.Api.Contracts\Clients.Identity.Api.Contracts.csproj" />
<ProjectReference Include="..\Clients.Identity.Api.Contracts\Clients.Identity.Api.Contracts.csproj" />
</ItemGroup>

</Project>
3 changes: 0 additions & 3 deletions sources/Clients.Identity.Blazor.Shared/Component1.razor

This file was deleted.

6 changes: 0 additions & 6 deletions sources/Clients.Identity.Blazor.Shared/Component1.razor.css

This file was deleted.

36 changes: 0 additions & 36 deletions sources/Clients.Identity.Blazor.Shared/ExampleJsInterop.cs

This file was deleted.

6 changes: 6 additions & 0 deletions sources/Clients.Identity.Blazor.Shared/IIdentityMarker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace MadWorldNL.Clients.Identity.Blazor.Shared;

public interface IIdentityMarker
{

}
3 changes: 3 additions & 0 deletions sources/Clients.Identity.Blazor.Shared/pages/Login.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@page "/Login"

<h3>Login</h3>

This file was deleted.

0 comments on commit 7ae8f3b

Please sign in to comment.