Files
WatchIt/WatchIt.Website/WatchIt.Website/Components/Pages/UserPage/Panels/UserPageHeaderPanelComponent.razor

30 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-10-30 23:28:47 +01:00
<div id="base" class="vstack">
<AccountPictureComponent Class="shadow position-absolute z-1 start-50 translate-middle" Id="@(AccountProfileInfoData.Id)" Size="240"/>
2024-10-30 23:28:47 +01:00
<div class="panel z-0">
<div class="vstack gap-3">
<div id="space" class="container-grid"></div>
<div class="d-flex justify-content-center">
<h3 class="fw-bold m-0">@(AccountProfileInfoData.Username)</h3>
2024-10-30 23:28:47 +01:00
</div>
@if (!string.IsNullOrWhiteSpace(AccountProfileInfoData.Description))
2024-10-30 23:28:47 +01:00
{
<span class="text-center w-100 mb-2">
@(AccountProfileInfoData.Description)
2024-10-30 23:28:47 +01:00
</span>
}
<div class="d-flex flex-wrap justify-content-center metadata-pill-container">
<div class="metadata-pill"><strong>Email:</strong> @(AccountProfileInfoData.Email)</div>
@if (!string.IsNullOrWhiteSpace(AccountProfileInfoData.Gender?.Name))
2024-10-30 23:28:47 +01:00
{
<div class="metadata-pill"><strong>Gender:</strong> @(AccountProfileInfoData.Gender?.Name)</div>
2024-10-30 23:28:47 +01:00
}
<div class="metadata-pill"><strong>Account created:</strong> @(AccountProfileInfoData.CreationDate.ToShortDateString())</div>
<div class="metadata-pill"><strong>Last active:</strong> @(AccountProfileInfoData.LastActive.ToShortDateString())</div>
@if (AccountProfileInfoData.IsAdmin)
2024-10-30 23:28:47 +01:00
{
<div class="metadata-pill"><strong>Admin</strong></div>
}
</div>
</div>
</div>
</div>