You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
@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!; |
|
|
|
} |