diff --git a/phronCare.UIBlazor/App.razor b/phronCare.UIBlazor/App.razor index 47ed1bf..e22faa0 100644 --- a/phronCare.UIBlazor/App.razor +++ b/phronCare.UIBlazor/App.razor @@ -4,17 +4,23 @@ - Disculpe, usted no esta autorizado a ver esta seccion. + - Not found + Página no encontrada | PhronCare -

Disculpe, no hay nada en esta dirección'.

+
- \ No newline at end of file + diff --git a/phronCare.UIBlazor/Layout/MainLayout.razor b/phronCare.UIBlazor/Layout/MainLayout.razor index 9a75bc1..225e79d 100644 --- a/phronCare.UIBlazor/Layout/MainLayout.razor +++ b/phronCare.UIBlazor/Layout/MainLayout.razor @@ -5,26 +5,24 @@
- +
-
-
-
-
- - - -
-
- -
-
+
+
+ PhronCare + Backoffice +
+
+ + + +
@@ -43,7 +41,7 @@ ErrorIcon="fa fa-ban" /> @code { private bool state=false; - private string MinimizeMenuCss => navMenuService.Minimized ? "width:82px" : string.Empty; + private string MinimizeMenuClass => navMenuService.Minimized ? "sidebar-minimized" : string.Empty; protected void ToggleMinNavMenu(bool status) { navMenuService.Minimized = status; @@ -63,4 +61,4 @@ return string.Empty; } } -} \ No newline at end of file +} diff --git a/phronCare.UIBlazor/Layout/MainLayout.razor.css b/phronCare.UIBlazor/Layout/MainLayout.razor.css index 876e877..77094b9 100644 --- a/phronCare.UIBlazor/Layout/MainLayout.razor.css +++ b/phronCare.UIBlazor/Layout/MainLayout.razor.css @@ -1,84 +1,16 @@ - -.page { - position: relative; - display: flex; - flex-direction: column; -} - -main { - flex: 1; -} - -.sidebar { - background-color: rgb(39, 54, 97); - /*background-image: linear-gradient(180deg, rgb(39, 54, 97) 70%, rgb(39, 54, 97) 99%);*/ -} - -.top-row { - /* background-color: rgb(221, 226, 234);*/ - background-color: var(--fondo-resaltado); - border-bottom: 1px solid #d6d5d5; - justify-content: flex-end; - height: 3.5rem; - display: flex; - align-items: center; -} - - .top-row ::deep a, .top-row ::deep .btn-link { - white-space: nowrap; - margin-left: 1.5rem; - text-decoration: none; - } - - .top-row ::deep a:hover, .top-row ::deep .btn-link:hover { - text-decoration: underline; - } - - .top-row ::deep a:first-child { - overflow: hidden; - text-overflow: ellipsis; - } - -@media (max-width: 640.98px) { - .top-row:not(.auth) { - display: none; - } - - .top-row.auth { - justify-content: space-between; - } - - .top-row ::deep a, .top-row ::deep .btn-link { - margin-left: 0; - } -} - -@media (min-width: 641px) { - .page { - flex-direction: row; - } - - .sidebar { - width: 225px; - height: 100vh; - position: sticky; - top: 0; - } - - .top-row { - position: sticky; - top: 0; - z-index: 1; - } - - .top-row.auth ::deep a:first-child { - flex: 1; - text-align: right; - width: 0; - } - - .top-row, article { - padding-left: 2rem !important; - padding-right: 1.5rem !important; - } +.page { position: relative; display: flex; min-height: 100vh; background: var(--ph-canvas); } +main { flex: 1; min-width: 0; } +.sidebar { position: sticky; top: 0; z-index: 20; width: 200px; height: 100vh; flex: 0 0 200px; overflow: hidden; background: var(--ph-sidebar); box-shadow: 4px 0 18px rgba(9, 18, 38, .08); transition: width .2s ease, flex-basis .2s ease; } +.sidebar-minimized { width: 57px; flex-basis: 57px; } +.topbar { position: sticky; top: 0; z-index: 15; display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1.5rem; background: color-mix(in srgb, var(--ph-surface) 92%, transparent); border-bottom: 1px solid var(--ph-border); box-shadow: var(--ph-shadow-sm); backdrop-filter: blur(12px); } +.topbar-context { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; } +.topbar-context strong { color: var(--ph-text); font-size: .98rem; } +.topbar-kicker { color: var(--ph-text-muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } +.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-width: 0; } +@media (max-width: 767.98px) { + .page { display: block; } + .sidebar, .sidebar-minimized { position: relative; width: 100%; height: auto; min-height: 4rem; } + .topbar { position: relative; min-height: 3.75rem; padding: .5rem .85rem; } + .topbar-context { display: none; } + .topbar-actions { width: 100%; justify-content: space-between; gap: .5rem; } } diff --git a/phronCare.UIBlazor/Layout/NavMenu.razor b/phronCare.UIBlazor/Layout/NavMenu.razor index 9d80c2e..3efe0fa 100644 --- a/phronCare.UIBlazor/Layout/NavMenu.razor +++ b/phronCare.UIBlazor/Layout/NavMenu.razor @@ -1,27 +1,31 @@ @inject NavMenuService navMenuService -