Skip to content

Commit

Permalink
Added link to source code from demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Sep 24, 2023
1 parent 42fcf3f commit 7171f27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Blazor.WebAuthentication.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KristofferStrube.Blazor.Cre
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KristofferStrube.Blazor.WebAuthentication", "src\KristofferStrube.Blazor.WebAuthentication\KristofferStrube.Blazor.WebAuthentication.csproj", "{A696790A-5532-4C70-9FE0-57892698BDAF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KristofferStrube.Blazor.WebAuthentication.BlazorExample", "samples\KristofferStrube.Blazor.WebAuthentication.BlazorExample\KristofferStrube.Blazor.WebAuthentication.BlazorExample.csproj", "{9811E16F-3101-45B3-B3AA-304A1391F0A0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KristofferStrube.Blazor.WebAuthentication.WasmExample", "samples\KristofferStrube.Blazor.WebAuthentication.WasmExample\KristofferStrube.Blazor.WebAuthentication.WasmExample.csproj", "{9811E16F-3101-45B3-B3AA-304A1391F0A0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@inherits LayoutComponentBase
@inject NavigationManager NavigationManager

<div class="page">
<div class="sidebar">
Expand All @@ -7,11 +8,19 @@

<main>
<div class="top-row px-4">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
<a href="@($"https://github.com/KristofferStrube/Blazor.WebAuthentication/blob/main/samples/KristofferStrube.Blazor.WebAuthentication.WasmExample/Pages/{page}")" target="_blank" style="position: fixed; top: 5px; right: 5px">
<img src="https://img.shields.io/badge/this%20page%20on%20GitHub-@(page)-green?logo=github" />
</a>
</div>

<article class="content px-4">
@Body
</article>
</main>
</div>

@code {
private string relativeUri => NavigationManager.ToBaseRelativePath(NavigationManager.Uri);

protected string page => (string.IsNullOrEmpty(relativeUri) ? "Index" : relativeUri) + ".razor";
}

0 comments on commit 7171f27

Please sign in to comment.