+
+
+
+ @UtilityString.ExtractInitials(UserSession.User.Fullname)
+
+
+
+ @UserSession.User.Fullname
+ @if (UserSession.User.KeyGroup is not null)
+ {
+ @(((KeyGroupEnum)UserSession.User.KeyGroup).ConvertToHumanReadable())
+ }
+
+
+
+
+
+
+
+
+ Profilo azienda
+ @CodHash
+
+
+
+
+
+
Status
+ @if (NetworkService.ConnectionAvailable)
+ {
+
+
+ Online
+
+ }
+ else
+ {
+
+
+ Offline
+
+ }
+
+
+
+
+
+
+
+ Sincronizza ispezioni
+
+
+
+
+
+ Esci
+
+
+
+
+
+}
+
+@code {
+ private bool IsLoggedIn { get; set; }
+ private string? CodHash { get; set; } = "";
+
+ protected override async Task OnInitializedAsync()
+ {
+ IsLoggedIn = await UserSession.IsLoggedIn();
+ CodHash = LocalStorage.GetString("codHash");
+ StateHasChanged();
+ }
+
+ private void UpdateDb()
+ {
+ }
+
+ private async Task Logout()
+ {
+ await AuthenticationStateProvider.SignOut();
+ IsLoggedIn = await UserSession.IsLoggedIn();
+ StateHasChanged();
+ }
+
+}
\ No newline at end of file
diff --git a/SteUp.Shared/Components/Pages/User.razor.css b/SteUp.Shared/Components/Pages/User.razor.css
new file mode 100644
index 0000000..0c67ba1
--- /dev/null
+++ b/SteUp.Shared/Components/Pages/User.razor.css
@@ -0,0 +1,83 @@
+.container-primary-info {
+ background: var(--light-card-background);
+ width: 100%;
+ margin-bottom: 2rem;
+ border-radius: 12px;
+}
+
+.container-primary-info .divider {
+ margin: 0 0 0 7rem;
+ width: unset;
+}
+
+.section-primary-info {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ gap: 1.5rem;
+ padding: .8rem 1.2rem .4rem;
+}
+
+.personal-info {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ line-height: normal;
+}
+
+.info-nome {
+ color: var(--mud-palette-text-primary);
+ font-weight: 800;
+ font-size: x-large;
+}
+
+.info-section {
+ color: var(--mud-palette-gray-default);
+ font-size: medium;
+ font-weight: 600;
+}
+
+.section-info {
+ display: flex;
+ justify-content: space-between;
+ flex-direction: row;
+ padding: .4rem 1.2rem .8rem;
+}
+
+.section-personal-info {
+ display: flex;
+ flex-direction: column;
+}
+
+.section-personal-info > div {
+ display: flex;
+ flex-direction: column;
+ line-height: normal;
+ margin: .25rem 0;
+}
+
+.info-title {
+ color: var(--mud-palette-gray-darker);
+ font-weight: 800;
+}
+
+.info-text {
+ color: var(--mud-palette-text-secondary);
+ font-weight: 700;
+ font-size: small;
+}
+
+.content ::deep .user-button { border: 1px solid var(--card-border-color) !important; }
+
+.user-button > i { font-size: large; }
+
+.user-button > span {
+ font-size: medium;
+ font-weight: 600;
+}
+
+.status { font-weight: 700; }
+
+.status.online { color: var(--mud-palette-success); }
+
+.status.offline { color: var(--mud-palette-error); }
\ No newline at end of file
diff --git a/SteUp.Shared/Components/SingleElements/AppVersion.razor b/SteUp.Shared/Components/SingleElements/AppVersion.razor
new file mode 100644
index 0000000..b2f1d72
--- /dev/null
+++ b/SteUp.Shared/Components/SingleElements/AppVersion.razor
@@ -0,0 +1,22 @@
+@using SteUp.Shared.Core.Interface.System
+@inject IGenericSystemService GenericSystemService
+
+