File tree Expand file tree Collapse file tree 4 files changed +46
-10
lines changed
src/SvgHelpers/SvgHelpers Expand file tree Collapse file tree 4 files changed +46
-10
lines changed Original file line number Diff line number Diff line change 1
- @page " /about"
2
-
3
- <p >This site implements utilities to help a person manually edit SVG files.</p >
1
+ <p >This site implements utilities to help a person manually edit SVG files.</p >
4
2
5
3
<p >The source code is available at: <a href =" https://github.com/ProgrammerAL/SvgHelpers" target =" _blank" >https://github.com/ProgrammerAL/SvgHelpers</a ></p >
6
-
7
-
Original file line number Diff line number Diff line change
1
+ <nav class =" px-2" >
2
+ <div class =" container mx-auto flex flex-col md:flex-row gap-4 md:gap-0 items-center justify-between" >
3
+ <div class =" flex place-self-end block text-center text-green-700 self-end font-semibold" >
4
+ </div >
5
+
6
+ <div class =" w-auto place-self-end grid grid-cols-4 place-items-center items-center gap-2 md:gap-4" >
7
+ <button onclick =" @(() => ToggleAboutVisibility())"
8
+ class =" text-green-700 hover:text-green-800 active:text-green-600 focus:text-green-900
9
+ text-sm lg:text-lg font-semibold
10
+ block text-center
11
+ border-none hover:bg-transparent border-0
12
+ col-start-3
13
+ px-2" >About</button >
14
+
15
+ <a href =" https://ProgrammerAL.com"
16
+ class =" text-green-700 hover:text-green-800 active:text-green-600 focus:text-green-900
17
+ text-sm lg:text-lg font-semibold
18
+ block text-center
19
+ border-none hover:bg-transparent border-0
20
+ col-start-4
21
+ px-2" >ProgrammerAL.com</a >
22
+ </div >
23
+ </div >
24
+
25
+ @if (IsAboutVisibile )
26
+ {
27
+ <AboutComponent />
28
+ }
29
+
30
+ <div class =" border-green-700 border-b-4 border-solid w-full mt-2 mx-auto" ></div >
31
+ </nav >
Original file line number Diff line number Diff line change
1
+ using Microsoft . AspNetCore . Components ;
2
+
3
+ namespace ProgrammerAl . SvgHelpers . Components ;
4
+ public partial class HeaderNavBarComponent : ComponentBase
5
+ {
6
+ private bool IsAboutVisibile { get ; set ; } = false ;
7
+
8
+ private void ToggleAboutVisibility ( )
9
+ {
10
+ IsAboutVisibile = ! IsAboutVisibile ;
11
+ }
12
+ }
Original file line number Diff line number Diff line change 2
2
@inherits LayoutComponentBase
3
3
4
4
<div class =" page" >
5
- <div class =" px-8 bg-gray-200 border flex justify-end" >
6
- <a href =" /about" class =" text-blue-700 text-xl p-2" >About</a >
7
- </div >
8
-
9
5
<main class =" flex flex-col mt-4" >
10
- <article class =" content mx-8" >
6
+ <HeaderNavBarComponent />
7
+ <article class =" content mt-4 mx-8" >
11
8
@Body
12
9
</article >
13
10
</main >
You can’t perform that action at this time.
0 commit comments