Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 637a7635cd | |||
| 7e5475322b | |||
| 481544069a | |||
| b5e8a436b4 | |||
| 7faf857ea1 | |||
| 13692b8af0 | |||
| 5b52989230 |
@@ -1,8 +1,8 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<Version>1.0.12</Version>
|
<Version>1.0.13</Version>
|
||||||
<Authors>SZUAbsolventenverein</Authors>
|
<Authors>SZUAbsolventenverein</Authors>
|
||||||
<Company>SZUAbsolventenverein</Company>
|
<Company>SZUAbsolventenverein</Company>
|
||||||
<Description>[Description]</Description>
|
<Description>[Description]</Description>
|
||||||
@@ -17,8 +17,14 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Oqtane.Client"><HintPath>..\..\oqtane.framework\Oqtane.Server\bin\Debug\net9.0\Oqtane.Client.dll</HintPath></Reference>
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.1" />
|
||||||
<Reference Include="Oqtane.Shared"><HintPath>..\..\oqtane.framework\Oqtane.Server\bin\Debug\net9.0\Oqtane.Shared.dll</HintPath></Reference>
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="10.0.1" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.Localization" Version="10.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Oqtane.Client"><HintPath>..\..\oqtane.framework\Oqtane.Server\bin\Debug\net10.0\Oqtane.Client.dll</HintPath></Reference>
|
||||||
|
<Reference Include="Oqtane.Shared"><HintPath>..\..\oqtane.framework\Oqtane.Server\bin\Debug\net10.0\Oqtane.Shared.dll</HintPath></Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -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.13",
|
Version = "1.0.14",
|
||||||
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",
|
||||||
|
|||||||
@@ -2,17 +2,80 @@
|
|||||||
@inherits ThemeBase
|
@inherits ThemeBase
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
@inject ISettingService SettingService
|
@inject ISettingService SettingService
|
||||||
@implements IDisposable
|
@implements IDisposable
|
||||||
|
|
||||||
<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">
|
||||||
|
<!-- Logo links -->
|
||||||
|
<div class="d-flex align-items-center gap-2 app-navbar-left">
|
||||||
<Logo />
|
<Logo />
|
||||||
<Menu Orientation="Horizontal" />
|
</div>
|
||||||
|
|
||||||
<div class="controls ms-auto">
|
<!-- Burger-Icon, das die Checkbox toggelt -->
|
||||||
<div class="controls-group"><UserProfile ShowRegister="@_register" /> <Login ShowLogin="@_login" /> <ControlPanel ButtonClass="btn-outline-light" /></div>
|
<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>
|
||||||
|
var children = PageState.Pages
|
||||||
|
.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>
|
</div>
|
||||||
</nav>
|
<!-- WICHTIG: Footer jetzt AUßERHALB von app-menu-items -->
|
||||||
|
<div class="app-menu-footer ">
|
||||||
|
<UserProfile ShowRegister="@_register" />
|
||||||
|
<Login ShowLogin="@_login" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Rechts: ControlPanel + User + Login -->
|
||||||
|
<div class="d-flex align-items-center gap-2 app-navbar-left">
|
||||||
|
<div class="d-flex align-items-center gap-2">
|
||||||
|
<ControlPanel/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -96,12 +159,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<Pane Name="Bottom Full Width" />
|
<Pane Name="Bottom Full Width" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="footer">
|
|
||||||
<div class="text text-center">
|
|
||||||
<p>Impressum | Datenschutz | AGB</p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
Standard Layout
|
Standard Layout
|
||||||
=========================== */
|
=========================== */
|
||||||
|
|
||||||
body {}
|
|
||||||
|
|
||||||
/* Login-Button (Mobile + Desktop) */
|
/* Login-Button (Mobile + Desktop) */
|
||||||
.app-menu-footer .btn-login,
|
.app-menu-footer .btn-login,
|
||||||
.app-menu-footer .login-btn,
|
.app-menu-footer .login-btn,
|
||||||
@@ -17,73 +15,14 @@ body {}
|
|||||||
font-weight: 500 !important;
|
font-weight: 500 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
/* Hover-Effekt */
|
||||||
max-width: 80vw; /* oder max-width: 100%;*/
|
.app-menu-footer .btn-login:hover,
|
||||||
margin: 0 auto;
|
.app-menu-footer .login-btn:hover,
|
||||||
position: fixed;
|
.app-menu-footer button:hover,
|
||||||
top: 0;
|
.app-menu-footer a:hover {
|
||||||
z-index: 1000;
|
background-color: #f2f2f2 !important;
|
||||||
background-color: #bbb;
|
border-color: #bbb !important;
|
||||||
padding: 1rem 0;
|
color: #333 !important;
|
||||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
||||||
width: 80vw; /* Wichtig!*/
|
|
||||||
/*left: 50%; /* horizontale Zentrierung mit transform*/
|
|
||||||
/*transform: translateX(-50%);*/
|
|
||||||
border: 3px solid #75767B;
|
|
||||||
border-top: none;
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
body {
|
|
||||||
padding-top: 100px; /* H<>he der fixierten Navigation kompensieren */
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-logo .img-fluid {
|
|
||||||
max-height: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-menu {
|
|
||||||
display: flex;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item a {
|
|
||||||
color: black;
|
|
||||||
font-weight: normal;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item a.active {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Footer */
|
|
||||||
.footer {
|
|
||||||
background-color: #bbb;
|
|
||||||
padding: 1rem 0;
|
|
||||||
text-align: center;
|
|
||||||
border: 3px solid #75767B;
|
|
||||||
border-top: none;
|
|
||||||
border-bottom: none;
|
|
||||||
margin-top: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.wrapper {
|
|
||||||
max-width: 80vw; /* max. 80% der Viewport-Breite */
|
|
||||||
margin: 0 auto; /* horizontal zentrieren */
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
main.flex-fill {
|
|
||||||
flex: 1 0 auto; /* Flex-grow 1, flex-shrink 0, flex-basis auto */
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-height: 0; /* Wichtig f<>r flexbox overflow*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
@@ -150,7 +89,6 @@ main.flex-fill {
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ===================================================
|
/* ===================================================
|
||||||
NAVBAR / BURGER / SIDEBAR
|
NAVBAR / BURGER / SIDEBAR
|
||||||
=================================================== */
|
=================================================== */
|
||||||
@@ -261,7 +199,7 @@ main.flex-fill {
|
|||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
/* optional: fixe Höhe */
|
/* optional: fixe Höhe */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menü nur als Container für den Footer */
|
/* Menü nur als Container für den Footer */
|
||||||
.app-menu {
|
.app-menu {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
@@ -375,50 +313,11 @@ main.flex-fill {
|
|||||||
justify-content: right;
|
justify-content: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hamburger {
|
/* Sidebar öffnen/schließen über Checkbox */
|
||||||
width: 40px;
|
.nav-toggle:checked~.app-menu {
|
||||||
height: 28px;
|
transform: translateX(0);
|
||||||
position: relative;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger span {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 4px;
|
|
||||||
background: #e5e7eb;
|
|
||||||
border-radius: 2px;
|
|
||||||
transition: transform 0.25s ease, opacity 0.25s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hamburger span:nth-child(1) {
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger span:nth-child(2) {
|
|
||||||
top: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger span:nth-child(3) {
|
|
||||||
bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Animation beim Klick (wird aktiv, wenn .active hinzugef<65>gt wird) */
|
|
||||||
.hamburger.active span:nth-child(1) {
|
|
||||||
transform: translateY(12px) rotate(45deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger.active span:nth-child(2) {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hamburger.active span:nth-child(3) {
|
|
||||||
transform: translateY(-12px) rotate(-45deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.app-menu .nav-link {
|
.app-menu .nav-link {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||||
<AccelerateBuildsInVisualStudio>false</AccelerateBuildsInVisualStudio>
|
<AccelerateBuildsInVisualStudio>false</AccelerateBuildsInVisualStudio>
|
||||||
<PackageId>SZUAbsolventenverein.Theme.Website</PackageId>
|
<PackageId>SZUAbsolventenverein.Theme.Website</PackageId>
|
||||||
|
|||||||
@@ -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>SZUAbsolventenverein.Theme.Website</id>
|
<id>SZUAbsolventenverein.Theme.Website</id>
|
||||||
<version>1.0.13</version>
|
<version>1.0.14</version>
|
||||||
<authors>SZUAbsolventenverein</authors>
|
<authors>SZUAbsolventenverein</authors>
|
||||||
<owners>SZUAbsolventenverein</owners>
|
<owners>SZUAbsolventenverein</owners>
|
||||||
<title>Website</title>
|
<title>Website</title>
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
set TargetFramework=%1
|
set TargetFramework=%1
|
||||||
set ProjectName=%2
|
set ProjectName=%2
|
||||||
|
|
||||||
if exist *.nupkg del *.nupkg
|
del "*.nupkg"
|
||||||
dotnet build "..\Client\SZUAbsolventenverein.Theme.Website.Client.csproj" -c Release
|
"..\..\oqtane.framework\oqtane.package\nuget.exe" pack %ProjectName%.nuspec -Properties targetframework=%TargetFramework%;projectname=%ProjectName%
|
||||||
dotnet pack "%ProjectName%.Package.csproj" -p:NuspecFile="%ProjectName%.nuspec" -p:NuspecProperties="targetframework=%TargetFramework%;projectname=%ProjectName%" --no-build -o .
|
XCOPY "*.nupkg" "..\..\oqtane.framework\Oqtane.Server\wwwroot\Packages\" /Y
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ TargetFramework=$1
|
|||||||
ProjectName=$2
|
ProjectName=$2
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
rm -f *.nupkg
|
|
||||||
dotnet build "../Client/SZUAbsolventenverein.Theme.Website.Client.csproj" -c Release
|
find . -name *.nupkg -delete
|
||||||
dotnet pack "${ProjectName}.Package.csproj" -p:NuspecFile="${ProjectName}.nuspec" -p:NuspecProperties="targetframework=${TargetFramework};projectname=${ProjectName}" --no-build -o .
|
dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName}"
|
||||||
|
cp -f *.nupkg ../../oqtane.framework/Oqtane.Server/Packages/
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.13.35825.156 d17.13
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Oqtane.Server", "..\oqtane.framework\Oqtane.Server\Oqtane.Server.csproj", "{3AB6FCC9-EFEB-4C0E-A2CF-8103914C5196}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SZUAbsolventenverein.Theme.Website.Client", "Client\SZUAbsolventenverein.Theme.Website.Client.csproj", "{AA8E58A1-CD09-4208-BF66-A8BB341FD669}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SZUAbsolventenverein.Theme.Website.Package", "Package\SZUAbsolventenverein.Theme.Website.Package.csproj", "{C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{3AB6FCC9-EFEB-4C0E-A2CF-8103914C5196}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{3AB6FCC9-EFEB-4C0E-A2CF-8103914C5196}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{AA8E58A1-CD09-4208-BF66-A8BB341FD669}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{C5CE512D-CBB7-4545-AF0F-9B6591A0C3A7}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {1D016F15-46FE-4726-8DFD-2E4FD4DC7668}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
7
SZUAbsolventenverein.Theme.Website.slnx
Normal file
7
SZUAbsolventenverein.Theme.Website.slnx
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<Solution>
|
||||||
|
<Project Path="../oqtane.framework/Oqtane.Server/Oqtane.Server.csproj">
|
||||||
|
<Build Project="false" />
|
||||||
|
</Project>
|
||||||
|
<Project Path="Client/SZUAbsolventenverein.Theme.Website.Client.csproj" />
|
||||||
|
<Project Path="Package/SZUAbsolventenverein.Theme.Website.Package.csproj" />
|
||||||
|
</Solution>
|
||||||
Reference in New Issue
Block a user