neue ansicht wurde implementiert. Testen kommt noch. Cookie anischt geht auch neue version 1.0.5 ist aber noch ohne neue ansicht
This commit is contained in:
@ -10,7 +10,7 @@ namespace SZUAbsolventenverein.Theme.Website
|
|||||||
public Oqtane.Models.Theme Theme => new Oqtane.Models.Theme
|
public Oqtane.Models.Theme Theme => new Oqtane.Models.Theme
|
||||||
{
|
{
|
||||||
Name = "SZUAbsolventenverein Website",
|
Name = "SZUAbsolventenverein Website",
|
||||||
Version = "1.0.4",
|
Version = "1.0.5",
|
||||||
PackageName = "SZUAbsolventenverein.Theme.Website",
|
PackageName = "SZUAbsolventenverein.Theme.Website",
|
||||||
ThemeSettingsType = "SZUAbsolventenverein.Theme.Website.ThemeSettings, SZUAbsolventenverein.Theme.Website.Client.Oqtane",
|
ThemeSettingsType = "SZUAbsolventenverein.Theme.Website.ThemeSettings, SZUAbsolventenverein.Theme.Website.Client.Oqtane",
|
||||||
ContainerSettingsType = "SZUAbsolventenverein.Theme.Website.ContainerSettings, SZUAbsolventenverein.Theme.Website.Client.Oqtane",
|
ContainerSettingsType = "SZUAbsolventenverein.Theme.Website.ContainerSettings, SZUAbsolventenverein.Theme.Website.Client.Oqtane",
|
||||||
|
|||||||
@ -1,27 +1,86 @@
|
|||||||
@namespace SZUAbsolventenverein.Theme.Website
|
@namespace SZUAbsolventenverein.Theme.Website
|
||||||
@inherits ThemeBase
|
@inherits ThemeBase
|
||||||
@inject ISettingService SettingService
|
@inject ISettingService SettingService
|
||||||
|
|
||||||
<main role="main">
|
<main role="main">
|
||||||
<nav class="navbar navbar-dark bg-primary fixed-top">
|
<nav class="navbar navbar-dark bg-primary fixed-top app-navbar">
|
||||||
<div class="d-flex align-items-center gap-2 order-1 order-md-1">
|
<!-- Logo links -->
|
||||||
|
<div class="d-flex align-items-center gap-2 app-navbar-left">
|
||||||
<Logo />
|
<Logo />
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
<!-- Versteckte Checkbox zum Steuern des Menüs (nur HTML, kein Blazor) -->
|
||||||
<div class="d-flex align-items-right gap-2 order-1 order-md-1">
|
<input type="checkbox" id="nav-toggle" class="nav-toggle" />
|
||||||
<Menu Orientation="Horizontal"></Menu>
|
|
||||||
|
|
||||||
|
<!-- Burger-Icon, das die Checkbox toggelt -->
|
||||||
|
<label for="nav-toggle" class="nav-toggle-label">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<!-- Menü-Container, der per :checked ein-/ausgeblendet wird -->
|
||||||
|
<div class="app-menu">
|
||||||
|
<div class="app-menu-items">
|
||||||
|
@if (PageState?.Pages != null)
|
||||||
|
{
|
||||||
|
// Diese Seitennamen sollen NICHT im Menü erscheinen
|
||||||
|
var hiddenNames = new[]
|
||||||
|
{
|
||||||
|
"Login", "Register", "Reset", "Profile",
|
||||||
|
"Search", "Privacy", "Terms", "Not Found", "NotFound"
|
||||||
|
};
|
||||||
|
|
||||||
|
@foreach (var page in PageState.Pages
|
||||||
|
.Where(p => p.ParentId == null
|
||||||
|
&& p.IsNavigation
|
||||||
|
&& !p.IsDeleted
|
||||||
|
&& !hiddenNames.Contains(p.Name)))
|
||||||
|
{
|
||||||
|
<div class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="@(@page.Path)">
|
||||||
|
@(@page.Name)
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex align-items-center gap-2 order-1 order-md-1">
|
|
||||||
<div class="d-flex align-items-center gap-2 order-1 order-md-1">
|
var children = PageState.Pages
|
||||||
<ControlPanel/>
|
.Where(c => c.ParentId == page.PageId
|
||||||
|
&& c.IsNavigation
|
||||||
|
&& !c.IsDeleted
|
||||||
|
&& !hiddenNames.Contains(c.Name));
|
||||||
|
|
||||||
|
if (children.Any())
|
||||||
|
{
|
||||||
|
<div class="app-submenu">
|
||||||
|
@foreach (var child in children)
|
||||||
|
{
|
||||||
|
<div class="nav-item">
|
||||||
|
<a class="nav-link text-white" href="@child.Path">
|
||||||
|
@child.Name
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex align-items-center gap-2 order-1 order-md-1">
|
}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- WICHTIG: Footer jetzt AUßERHALB von app-menu-items -->
|
||||||
|
<div class="app-menu-footer">
|
||||||
<UserProfile ShowRegister="@_register" />
|
<UserProfile ShowRegister="@_register" />
|
||||||
<Login ShowLogin="@_login" />
|
<Login ShowLogin="@_login" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Rechts: ControlPanel + User + Login -->
|
||||||
|
<div class="d-flex align-items-center gap-2 app-navbar-right">
|
||||||
|
<div class="d-flex align-items-center gap-2">
|
||||||
|
<ControlPanel/>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -105,6 +164,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<Pane Name="Bottom Full Width" />
|
<Pane Name="Bottom Full Width" />
|
||||||
</div>
|
</div>
|
||||||
|
<CookieConsent />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
|
/* ===========================
|
||||||
|
Standard Layout
|
||||||
|
=========================== */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-top: 7rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* App Logo */
|
/* App Logo */
|
||||||
@ -25,10 +29,11 @@ body {
|
|||||||
border-bottom-color: #ccc !important;
|
border-bottom-color: #ccc !important;
|
||||||
color: #000 !important;
|
color: #000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-primary {
|
.bg-primary {
|
||||||
background-color: gray !important;
|
background-color: gray !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.table .btn-primary {
|
.table .btn-primary {
|
||||||
background-color: var(--bs-primary);
|
background-color: var(--bs-primary);
|
||||||
}
|
}
|
||||||
@ -40,8 +45,8 @@ body {
|
|||||||
.alert-dismissible .btn-close {
|
.alert-dismissible .btn-close {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.dropdown-menu {
|
|
||||||
|
|
||||||
|
.dropdown-menu {
|
||||||
background-color: grey;
|
background-color: grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,51 +57,6 @@ body {
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-menu .nav-item {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-menu .nav-item a {
|
|
||||||
border-radius: 4px;
|
|
||||||
height: 3rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
line-height: 3rem;
|
|
||||||
padding-left: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-menu .nav-item a.active {
|
|
||||||
background-color: dimgrey;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-menu .nav-item a:hover {
|
|
||||||
background-color: dimgray;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-menu .nav-link .oi {
|
|
||||||
width: 1.5rem;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
vertical-align: text-top;
|
|
||||||
top: -2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-search input {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-toggler {
|
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
|
||||||
margin: .5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.app-moduleactions a.dropdown-toggle, div.app-moduleactions div.dropdown-menu {
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
min-height: 40px;
|
min-height: 40px;
|
||||||
@ -105,111 +65,233 @@ div.app-moduleactions a.dropdown-toggle, div.app-moduleactions div.dropdown-menu
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 991.98px) {
|
|
||||||
.app-search {
|
/* ===================================================
|
||||||
|
NAVBAR / BURGER / SIDEBAR
|
||||||
|
=================================================== */
|
||||||
|
|
||||||
|
/* Navbar als durchgehende Flex-Zeile */
|
||||||
|
.app-navbar {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap; /* NICHT umbrechen auf Desktop */
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-navbar-left,
|
||||||
|
.app-navbar-right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* etwas Luft zwischen Logo und Menü */
|
||||||
|
.app-navbar-left {
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Versteckte Checkbox steuert die Sidebar */
|
||||||
|
.nav-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Burger-Icon (wird nur auf Mobil eingeblendet) */
|
||||||
|
.nav-toggle-label {
|
||||||
|
display: none; /* nur auf Mobil sichtbar */
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0.25rem 0.5rem;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-toggle-label span {
|
||||||
|
display: block;
|
||||||
|
width: 22px;
|
||||||
|
height: 2px;
|
||||||
|
margin: 4px 0;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Menü-Container */
|
||||||
|
.app-menu {
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bereich für die Seitenlinks – Basis: horizontales Flex */
|
||||||
|
.app-menu-items {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.75rem;
|
||||||
|
align-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bereich für Login/Register */
|
||||||
|
.app-menu-footer {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Untermenü (Kinder-Seiten) etwas eingerückt */
|
||||||
|
.app-submenu {
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Nav-Items */
|
||||||
|
.app-menu .nav-item {
|
||||||
|
padding-bottom: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hover-/Active-Style für Links */
|
||||||
|
.app-menu .nav-link {
|
||||||
|
padding: 6px 12px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
transition: background-color 0.2s ease, color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-menu .nav-link:hover {
|
||||||
|
background-color: #4a4a4a;
|
||||||
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-search input {
|
.app-menu .nav-link.active {
|
||||||
display: none !important;
|
background-color: #3b3b3b;
|
||||||
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-search input + button {
|
|
||||||
position: initial;
|
/* ===========================
|
||||||
padding-top: 7px;
|
DESKTOP (ab 768px)
|
||||||
padding-bottom: 7px;
|
=========================== */
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
|
||||||
|
/* Navbar: eine Zeile, Positionierungs-Referenz für Absolut-Elemente */
|
||||||
|
.app-navbar {
|
||||||
|
display: flex !important;
|
||||||
|
flex-wrap: nowrap !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: flex-start !important;
|
||||||
|
position: relative !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-search:active, .app-search:hover {
|
/* Menübereich in der Mitte */
|
||||||
display: block;
|
.app-menu {
|
||||||
position: fixed;
|
display: flex !important;
|
||||||
top: 0;
|
flex-direction: row !important;
|
||||||
min-height: 96px;
|
align-items: center !important;
|
||||||
width: 100%;
|
justify-content: center !important; /* Menüpunkte in der Mitte */
|
||||||
left: 0;
|
flex: 1 1 auto !important; /* füllt Platz zwischen Logo und rechts */
|
||||||
z-index: 999;
|
gap: 0.75rem !important;
|
||||||
border-radius: 0;
|
position: static !important;
|
||||||
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-search:active .app-form-inline, .app-search:hover .app-form-inline {
|
/* Menüpunkte horizontal zentriert */
|
||||||
margin: 10px auto;
|
.app-menu-items {
|
||||||
position: relative;
|
display: flex !important;
|
||||||
display: block;
|
flex-direction: row !important;
|
||||||
max-width: 80%;
|
flex-wrap: wrap !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 0.75rem !important;
|
||||||
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-search:active .app-form-inline input, .app-search:hover .app-form-inline input {
|
/* Login/Register GANZ RECHTS in der Navbar */
|
||||||
width: 100%;
|
.app-menu-footer {
|
||||||
display: block !important;
|
display: flex !important;
|
||||||
|
position: absolute !important;
|
||||||
|
right: 1rem !important; /* Abstand vom rechten Rand */
|
||||||
|
top: 50% !important;
|
||||||
|
transform: translateY(-50%); /* vertikal mittig ausrichten */
|
||||||
|
gap: 0.75rem !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
border: none !important;
|
||||||
|
background: none !important;
|
||||||
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-search:active .app-form-inline input + button, .app-search:hover .app-form-inline input + button {
|
.app-menu .nav-item {
|
||||||
position: absolute;
|
display: inline-block !important;
|
||||||
color: rgb(42, 159, 214);
|
|
||||||
padding-top: 6px;
|
|
||||||
padding-bottom: 6px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===========================
|
||||||
|
MOBILE (unter 768px)
|
||||||
|
=========================== */
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
|
||||||
/* Dynamische Schriftgr<67><72>e im Dropdown-Men<65> */
|
|
||||||
.app-menu .nav-item a {
|
|
||||||
font-size: clamp(3px, 3vw, 13px); /* Dynamische, begrenzte Schriftgr<67><72>e */
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-menu-toggler {
|
|
||||||
position: fixed;
|
|
||||||
top: 1.5rem; /* Abstand von oben */
|
|
||||||
right: 2.75rem; /* Abstand von rechts */
|
|
||||||
left: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-menu {
|
|
||||||
position: fixed;
|
|
||||||
right: 1rem;
|
|
||||||
margin-top: 5.25rem;
|
|
||||||
width: 25%;
|
|
||||||
background-color: grey;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls {
|
/* Platz unter der Navbar */
|
||||||
height: 60px;
|
|
||||||
top: 15px;
|
|
||||||
position: fixed;
|
|
||||||
top: 0px;
|
|
||||||
width: 100%;
|
|
||||||
background-color: grey;
|
|
||||||
}
|
|
||||||
|
|
||||||
.controls-group {
|
|
||||||
float: right;
|
|
||||||
margin-right: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 60px;
|
top: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-search:active, .app-search:hover {
|
/* Burger sichtbar machen */
|
||||||
min-height: 60px;
|
.nav-toggle-label {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar > .d-flex:nth-of-type(3) {
|
/* Sidebar-Wrapper rechts */
|
||||||
order: 2;
|
.app-menu {
|
||||||
flex-basis: 100%;
|
position: fixed;
|
||||||
|
top: 80px; /* Abstand von oben (über der Navbar + Burger) */
|
||||||
|
right: 0;
|
||||||
|
width: 70%;
|
||||||
|
max-width: 280px;
|
||||||
|
height: calc(100vh - 80px); /* Höhe an das neue top anpassen */
|
||||||
|
background-color: grey;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
padding: 1rem;
|
||||||
|
gap: 0.5rem;
|
||||||
|
transform: translateX(100%);
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
z-index: 1500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar > .d-flex:nth-of-type(2) {
|
/* Seitenlinks vertikal + scrollbar + zentriert */
|
||||||
order: 3;
|
.app-menu-items {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
gap: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Footer (Login/Register) fixiert unten */
|
||||||
|
.app-menu-footer {
|
||||||
|
width: 100%;
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.25);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sidebar öffnen/schließen über Checkbox */
|
||||||
|
.nav-toggle:checked ~ .app-menu {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-menu .nav-link {
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
font-size: clamp(12px, 3.5vw, 15px);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>$projectname$</id>
|
<id>$projectname$</id>
|
||||||
<version>1.0.4</version>
|
<version>1.0.5</version>
|
||||||
<authors>SZUAbsolventenverein</authors>
|
<authors>SZUAbsolventenverein</authors>
|
||||||
<owners>SZUAbsolventenverein</owners>
|
<owners>SZUAbsolventenverein</owners>
|
||||||
<title>Website</title>
|
<title>Website</title>
|
||||||
|
|||||||
Reference in New Issue
Block a user