1
0
mirror of synced 2024-11-27 16:10:53 +01:00

Test card page

This commit is contained in:
shiibe 2022-09-05 00:52:29 -04:00
parent 9d37f10a3b
commit fa16d4d56f
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,8 @@
@page "/Card/{baid}"
<h1>Card: @Baid</h1>
@code {
[Parameter]
public string? Baid { get; set; }
}

View File

@ -1,5 +1,6 @@
@using SharedProject.Models.Responses
@inject HttpClient Client
@inject NavigationManager UriHelper
@page "/Dashboard"
<MudContainer>
@ -18,6 +19,9 @@
<CardHeaderContent>
<MudText Typo="Typo.h5">Baid @user.Baid</MudText>
</CardHeaderContent>
<CardHeaderActions>
<MudIconButton OnClick="() => NavigateToProfile(user.Baid)" Icon="@Icons.Material.Filled.Settings" Color="Color.Default" />
</CardHeaderActions>
</MudCardHeader>
<MudCardContent>
<MudText Typo="Typo.h6">Access Code</MudText>
@ -40,4 +44,9 @@
response = await Client.GetFromJsonAsync<DashboardResponse>("api/Dashboard");
}
void NavigateToProfile(uint baid)
{
UriHelper.NavigateTo($"/Card/{baid}");
}
}

View File

@ -18,7 +18,7 @@
<NavMenu/>
</MudDrawer>
<MudMainContent>
<MudContainer MaxWidth="MaxWidth.Large" Class="my-16 pt-16">
<MudContainer MaxWidth="MaxWidth.Large" Class="my-8 pt-8">
@Body
</MudContainer>
</MudMainContent>