timelapse/Timelapse/Shared/MainLayout.razor

31 lines
628 B
Plaintext
Raw Permalink Normal View History

2021-12-28 07:25:39 +00:00
@inherits LayoutComponentBase
@using Timelapse.Data;
@inject MyLinksService MyLinks;
<div class="page">
<div class="sidebar">
<NavMenu />
</div>
<div class="main">
<div class="top-row px-4">
<a href="#" @onclick="GitLab">GitLab</a><a href="#" @onclick="MySite">My Website</a>
</div>
<div class="content px-4">
@Body
</div>
</div>
</div>
@code {
public async Task GitLab()
{
await MyLinks.GitLab();
}
public async Task MySite()
{
await MyLinks.MySite();
}
}