17 changed files with 308 additions and 271 deletions
@ -0,0 +1,30 @@
|
||||
@using Model.Website |
||||
|
||||
<div class="sectionContainer"> |
||||
@foreach (var childPage in Section.WebPageModels) { |
||||
if (childPage.IsPrivate.Equals("True")) { |
||||
continue; |
||||
} |
||||
<DesktopNavLinkComponent Page=childPage></DesktopNavLinkComponent> |
||||
} |
||||
</div> |
||||
|
||||
<style> |
||||
.sectionContainer { |
||||
display: flex; |
||||
flex-direction: column; |
||||
gap: 4px; |
||||
justify-content: flex-start; |
||||
position: relative; |
||||
width: 100%; |
||||
} |
||||
|
||||
|
||||
</style> |
||||
|
||||
@code { |
||||
|
||||
[Parameter] |
||||
public WebSectionModel Section { get; set; } = default!; |
||||
|
||||
} |
||||
@ -1,59 +0,0 @@
|
||||
@using Model.Website |
||||
|
||||
<div class="sectionContainer"> |
||||
<div class="sectionHeader"> |
||||
<div class="sectionTitle"> |
||||
@Section.Name |
||||
</div> |
||||
</div> |
||||
|
||||
@foreach (var childPage in Children) { |
||||
if (childPage.IsPrivate.Equals("True")) { |
||||
continue; |
||||
} |
||||
<NavLinkComponent Page=childPage></NavLinkComponent> |
||||
} |
||||
</div> |
||||
|
||||
<style> |
||||
.sectionContainer { |
||||
display: flex; |
||||
flex-direction: column; |
||||
gap: 4px; |
||||
justify-content: flex-start; |
||||
position: relative; |
||||
margin-top: 12px; |
||||
padding: 18px; |
||||
width: 300px; |
||||
margin-left: 4px; |
||||
} |
||||
|
||||
.sectionHeader { |
||||
bottom: 100%; |
||||
position: absolute; |
||||
top: 0px; |
||||
left: -8px; |
||||
padding-right: 12px; |
||||
padding-left: 4px; |
||||
width: 100%; |
||||
display: flex; |
||||
line-height: 0px; |
||||
} |
||||
|
||||
.sectionTitle { |
||||
font-weight: bold; |
||||
padding-right: 8px; |
||||
margin-top: -2px; |
||||
white-space: pre; |
||||
} |
||||
</style> |
||||
|
||||
@code { |
||||
|
||||
[Parameter] |
||||
public WebSectionModel Section { get; set; } = default!; |
||||
|
||||
[Parameter] |
||||
public List<WebPageModel> Children { get; set; } = default!; |
||||
|
||||
} |
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
[{"Id":1,"Name":"Tools","Description":"Tools Stuff","Href":null,"Order":1,"IsPrivate":"False"},{"Id":2,"Name":"Resources","Description":"Resources Stuff","Href":null,"Order":2,"IsPrivate":"False"},{"Id":3,"Name":"General","Description":"About Stuff","Href":null,"Order":3,"IsPrivate":"False"},{"Id":4,"Name":"Development","Description":"Development Stuff","Href":null,"Order":4,"IsPrivate":"False"}] |
||||
[{"Id":1,"Name":"Tools","Description":"Tools Stuff","Href":null,"Order":1,"IsPrivate":"False","WebPageModels":[]},{"Id":2,"Name":"Resources","Description":"Resources Stuff","Href":null,"Order":2,"IsPrivate":"False","WebPageModels":[]},{"Id":3,"Name":"General","Description":"About Stuff","Href":null,"Order":3,"IsPrivate":"False","WebPageModels":[]},{"Id":4,"Name":"Development","Description":"Development Stuff","Href":null,"Order":4,"IsPrivate":"False","WebPageModels":[]}] |
||||
Loading…
Reference in new issue