@using Microsoft.AspNetCore.WebUtilities;
@inherits LayoutComponentBase
@inject NavigationManager navMan
Open Digimon Masters Online
Profile
Settings
Logout
Admin Panel
@innerContext.User.Identity.Name
Open Digimon Masters Online
Join Discord
@Body
@code
{
bool _drawerOpen = true;
protected override async Task OnAfterRenderAsync(bool firstRender)
{
await base.OnAfterRenderAsync(firstRender);
}
void DrawerToggle()
{
_drawerOpen = !_drawerOpen;
}
private bool _isDarkMode = true;
private MudTheme _currentTheme = new MudTheme()
{
Palette = new Palette()
{
Primary = "#1976d2", // Azul moderno
Secondary = "#dc004e", // Vermelho accent
AppbarBackground = "#1565c0", // Azul escuro
Background = "#f5f5f5", // Cinza claro
Surface = "#ffffff", // Branco
DrawerBackground = "#ffffff",
DrawerText = "rgba(0,0,0,0.87)",
AppbarText = "#ffffff",
DrawerIcon = "#1976d2",
Success = "#4caf50",
Warning = "#ff9800",
Error = "#f44336",
Info = "#2196f3"
},
PaletteDark = new PaletteDark()
{
Primary = "#90caf9", // Azul claro para dark
Secondary = "#f48fb1", // Rosa claro
AppbarBackground = "#1e1e1e", // Preto suave
Background = "#121212", // Preto material
Surface = "#1e1e1e", // Cinza escuro
DrawerBackground = "#1e1e1e",
DrawerText = "#ffffff",
AppbarText = "#ffffff",
DrawerIcon = "#90caf9",
Success = "#66bb6a",
Warning = "#ffb74d",
Error = "#ef5350",
Info = "#42a5f5"
},
Typography = new Typography()
{
Default = new Default()
{
FontFamily = new[] { "Nunito", "Roboto", "Helvetica", "Arial", "sans-serif" },
FontSize = "0.875rem",
FontWeight = 400,
LineHeight = 1.43,
LetterSpacing = "0.01071em"
},
H1 = new H1()
{
FontFamily = new[] { "Nunito", "Roboto", "Helvetica", "Arial", "sans-serif" },
FontSize = "6rem",
FontWeight = 300,
LineHeight = 1.167,
LetterSpacing = "-0.01562em"
},
H2 = new H2()
{
FontFamily = new[] { "Nunito", "Roboto", "Helvetica", "Arial", "sans-serif" },
FontSize = "3.75rem",
FontWeight = 300,
LineHeight = 1.2,
LetterSpacing = "-0.00833em"
}
}
};
void ToggleDarkMode()
{
_isDarkMode = !_isDarkMode;
StateHasChanged();
}
}