-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d29de46
commit b3f17f0
Showing
4 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
6 changes: 1 addition & 5 deletions
6
src/SvgHelpers/SvgHelpers/Pages/About.razor → ...vgHelpers/Components/AboutComponent.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
@page "/about" | ||
|
||
<p>This site implements utilities to help a person manually edit SVG files.</p> | ||
<p>This site implements utilities to help a person manually edit SVG files.</p> | ||
|
||
<p>The source code is available at: <a href="https://github.com/ProgrammerAL/SvgHelpers" target="_blank">https://github.com/ProgrammerAL/SvgHelpers</a></p> | ||
|
||
|
31 changes: 31 additions & 0 deletions
31
src/SvgHelpers/SvgHelpers/Components/HeaderNavBarComponent.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<nav class="px-2"> | ||
<div class="container mx-auto flex flex-col md:flex-row gap-4 md:gap-0 items-center justify-between"> | ||
<div class="flex place-self-end block text-center text-green-700 self-end font-semibold"> | ||
</div> | ||
|
||
<div class="w-auto place-self-end grid grid-cols-4 place-items-center items-center gap-2 md:gap-4"> | ||
<button onclick="@(() => ToggleAboutVisibility())" | ||
class="text-green-700 hover:text-green-800 active:text-green-600 focus:text-green-900 | ||
text-sm lg:text-lg font-semibold | ||
block text-center | ||
border-none hover:bg-transparent border-0 | ||
col-start-3 | ||
px-2">About</button> | ||
|
||
<a href="https://ProgrammerAL.com" | ||
class="text-green-700 hover:text-green-800 active:text-green-600 focus:text-green-900 | ||
text-sm lg:text-lg font-semibold | ||
block text-center | ||
border-none hover:bg-transparent border-0 | ||
col-start-4 | ||
px-2">ProgrammerAL.com</a> | ||
</div> | ||
</div> | ||
|
||
@if (IsAboutVisibile) | ||
{ | ||
<AboutComponent /> | ||
} | ||
|
||
<div class="border-green-700 border-b-4 border-solid w-full mt-2 mx-auto"></div> | ||
</nav> |
12 changes: 12 additions & 0 deletions
12
src/SvgHelpers/SvgHelpers/Components/HeaderNavBarComponent.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace ProgrammerAl.SvgHelpers.Components; | ||
public partial class HeaderNavBarComponent : ComponentBase | ||
{ | ||
private bool IsAboutVisibile { get; set; } = false; | ||
|
||
private void ToggleAboutVisibility() | ||
{ | ||
IsAboutVisibile = !IsAboutVisibile; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters