Introduced HKW

This commit is contained in:
schnulller
2022-10-24 15:14:27 +02:00
parent 2a18ed1a46
commit aa7206b4fe
277 changed files with 288 additions and 87 deletions

View File

@@ -6,10 +6,6 @@ namespace HaWeb.Controllers;
[Route("Edition/[action]")]
public class EditionController : Controller {
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error() {
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
public IActionResult Kontakt() {
return View("~/Views/HKB/Static/Kontakt.cshtml");
}

View File

@@ -0,0 +1,32 @@
namespace HaWeb.Controllers;
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using HaWeb.Models;
[Route("HKW/")]
public class HKWController : Controller {
[Route("Start")]
public IActionResult Index() {
return View("~/Views/HKW/Static/Index.cshtml");
}
[Route("Erschienen/FliegenderBrief")]
public IActionResult FliegenderBrief() {
return View("~/Views/HKW/Static/FliegenderBrief.cshtml");
}
[Route("Geplant/Kreuzzuege")]
public IActionResult Kreuzzuege() {
return View("~/Views/HKW/Static/Kreuzzuege.cshtml");
}
[Route("Erschienen/SokratischeDenkwuerdigkeiten")]
public IActionResult SokratischeDenkwuerdigkeiten() {
return View("~/Views/HKW/Static/SokratischeDenkwuerdigkeiten.cshtml");
}
[Route("Uebersicht")]
public IActionResult Uebersicht() {
return View("~/Views/HKW/Static/Uebersicht.cshtml");
}
}

View File

@@ -8,7 +8,7 @@ public class HomeController : Controller {
[Route("")]
public IActionResult Index() {
return Redirect("/Suche");
return View("~/Views/Index.cshtml");
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]

View File

@@ -7,12 +7,12 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<!-- <ItemGroup>
<Content Remove="wwwroot\css\*.css" />
<Content Include="wwwroot\css\*.css" Watch="false" />
<Content Remove="wwwroot\css\output.css" />
<Content Include="wwwroot\css\output.css" Watch="true" />
</ItemGroup>
</ItemGroup> -->
<Target Name="Tailwind" >
<Exec Command="npm run css_build" />

View File

@@ -1,28 +1,28 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:7668",
"sslPort": 44319
}
},
"profiles": {
"HaWeb": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7092;http://localhost:5167",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:7668",
"sslPort": 44319
}
},
"profiles": {
"HaWeb": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7092;http://localhost:5167",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

View File

@@ -1,30 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk.Web" DefaultTargets="Tailwind">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Content Remove="wwwroot\css\output.css" />
<Content Include="wwwroot\css\output.css" Watch="false" />
<Content Remove="**\*.cs" />
<Content Include="**\*.cs" Watch="false" />
<Content Remove="Settings\CSSClassesSettings.cs" />
<Content Include="Settings\CSSClassesSettings.cs" Watch="true" />
</ItemGroup>
<Target Name="Tailwind" BeforeTargets="Build">
<Exec Command="npm run css_build" />
</Target>
<ItemGroup>
<ProjectReference Include="..\HaXMLReaderV6\HaXMLReaderV6.csproj" />
<ProjectReference Include="..\HaDocumentV6\HaDocumentV6.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.FeatureManagement.AspNetCore" Version="2.5.1" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk.Web" DefaultTargets="Tailwind">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Content Remove="wwwroot\css\output.css" />
<Content Include="wwwroot\css\output.css" Watch="false" />
<Content Remove="**\*.cs" />
<Content Include="**\*.cs" Watch="false" />
<Content Remove="Settings\CSSClassesSettings.cs" />
<Content Include="Settings\CSSClassesSettings.cs" Watch="true" />
</ItemGroup>
<Target Name="Tailwind" BeforeTargets="Build">
<Exec Command="npm run css_build" />
</Target>
<ItemGroup>
<ProjectReference Include="..\HaXMLReaderV6\HaXMLReaderV6.csproj" />
<ProjectReference Include="..\HaDocumentV6\HaDocumentV6.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.FeatureManagement.AspNetCore" Version="2.5.1" />
</ItemGroup>
</Project>

View File

@@ -1,3 +1,3 @@
@{
Layout = "_LettersLayout";
Layout = "_HKBLayout";
}

View File

@@ -1,3 +1,3 @@
@{
Layout = "_LettersLayout";
Layout = "_HKBLayout";
}

View File

@@ -0,0 +1 @@
Hello from FliegenderBrief!

View File

@@ -0,0 +1 @@
Hello from HKW Index!

View File

@@ -0,0 +1 @@
Hello from Kreuzzuege!

View File

@@ -0,0 +1 @@
Hello from SDW!

View File

@@ -0,0 +1 @@
Hello from Übersicht

53
HaWeb/Views/Index.cshtml Normal file
View File

@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="de" id="top">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@* TODO: Description für die Startseite *@
<meta name="description" content="">
<title>HKB: @ViewData["Title"]</title>
<!-- crossorigin is a workaround to prevent double downloading bugs in chrome -->
<!-- also, the graphite versions of the font are available for use:
<link rel="preload" href="/fonts/LinLibertine_R_G.ttf" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinBiolinum_R_G.ttf" as="font" crossorigin/>
-->
<link rel="preload" href="/css/output.css" as="style" asp-append-version="true"/>
<link rel="preload" href="/img/subtlenet2.png" as="image" />
<link rel="preload" href="/fonts/LinBiolinum_R.woff" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinLibertine_R.woff" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinLibertine_RI.woff" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinLibertine_RB.woff" as="font" crossorigin/>
<link rel="stylesheet" href="/css/output.css" asp-append-version="true" />
<environment include="Development">
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
</head>
<body class="w-full ">
<div class="relative min-h-screen">
<div class="pb-24">
Menu
@* Placeholder Menu *@
<main role="main" class="pb-3 w-full desktop:max-w-screen-desktop mx-auto h-full">
@* Placeholder Main *@
Hallo!
</main>
</div>
<div class="absolute bottom-0 w-full">
@await Html.PartialAsync("/Views/Shared/_Footer.cshtml")
</div>
</div>
</div>
<environment exclude="Development">
@await Html.PartialAsync("/Views/Shared/_Javascript.cshtml")
</environment>
</body>
</html>

View File

@@ -30,30 +30,27 @@
<body class="w-full ">
<div class="relative min-h-screen">
<div class="pb-24">
@await Html.PartialAsync("/Views/Shared/_Menu.cshtml")
<main role="main" class="pb-3 w-full desktop:max-w-screen-desktop mx-auto h-full">
@RenderBody()
</main>
</div>
<div class="absolute bottom-0 w-full">
@await Html.PartialAsync("/Views/Shared/_Footer.cshtml")
<div class="pb-24">
@await Html.PartialAsync("/Views/Shared/_HKBMenu.cshtml")
<main role="main" class="pb-3 w-full desktop:max-w-screen-desktop mx-auto h-full">
@RenderBody()
</main>
</div>
</div>
<environment exclude="Development">
@await Html.PartialAsync("/Views/Shared/_Javascript.cshtml")
</environment>
<a class="ha-scrollbutton" id="ha-scrollbutton">
<svg class="ha-scrollbuttonarrow" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path strokeLinecap="round" strokeLinejoin="round" stroke-width="2" d="M5 11l7-7 7 7M5 19l7-7 7 7" />
</svg>
<div class="absolute bottom-0 w-full">
@await Html.PartialAsync("/Views/Shared/_Footer.cshtml")
</div>
</div>
<a class="ha-scrollbutton" id="ha-scrollbutton">
<svg class="ha-scrollbuttonarrow" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path strokeLinecap="round" strokeLinejoin="round" stroke-width="2" d="M5 11l7-7 7 7M5 19l7-7 7 7" />
</svg>
</a>
</div>
@RenderSection("Scripts", required: false)
<environment exclude="Development">
@await Html.PartialAsync("/Views/Shared/_Javascript.cshtml")
</environment>
</body>
</html>

View File

@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="de" id="top">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="@ViewData["SEODescription"]">
<title>HKB: @ViewData["Title"]</title>
<!-- crossorigin is a workaround to prevent double downloading bugs in chrome -->
<!-- also, the graphite versions of the font are available for use:
<link rel="preload" href="/fonts/LinLibertine_R_G.ttf" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinBiolinum_R_G.ttf" as="font" crossorigin/>
-->
<link rel="preload" href="/css/output.css" as="style" asp-append-version="true"/>
<link rel="preload" href="/img/subtlenet2.png" as="image" />
<link rel="preload" href="/fonts/LinBiolinum_R.woff" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinLibertine_R.woff" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinLibertine_RI.woff" as="font" crossorigin/>
<link rel="preload" href="/fonts/LinLibertine_RB.woff" as="font" crossorigin/>
<link rel="stylesheet" href="/css/output.css" asp-append-version="true" />
<environment include="Development">
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
</head>
<body class="w-full ">
<div class="relative min-h-screen">
<div class="pb-24">
@await Html.PartialAsync("/Views/Shared/_HKWMenu.cshtml")
<main role="main" class="pb-3 w-full desktop:max-w-screen-desktop mx-auto h-full">
@RenderBody()
</main>
</div>
<div class="absolute bottom-0 w-full">
@await Html.PartialAsync("/Views/Shared/_Footer.cshtml")
</div>
</div>
<a class="ha-scrollbutton" id="ha-scrollbutton">
<svg class="ha-scrollbuttonarrow" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path strokeLinecap="round" strokeLinejoin="round" stroke-width="2" d="M5 11l7-7 7 7M5 19l7-7 7 7" />
</svg>
</a>
</div>
@RenderSection("Scripts", required: false)
<environment exclude="Development">
@await Html.PartialAsync("/Views/Shared/_Javascript.cshtml")
</environment>
</body>
</html>

View File

@@ -0,0 +1,62 @@
<header class="sticky w-100 font-serif mb-6">
<nav class="flex flex-row w-100 bg-slate-50 border-t-[5px] border-gray-300 dark:shadow-xl dark:border-gray-900 py-3 px-3 desktop:px-8 flex-wrap">
<a href="/" class="text-xl xl:text-3xl grow-0 shrink-0 text-black hover:text-black ">
<img src="/favicon.ico" class="inline-block w-8 h-8 xl:w-12 xl:h-12 mr-2 p-1 border border-gray-900 border-t-gray-200 border-l-gray-200 " alt="HKW-Logo" loading="lazy" />
<span class="sm:hidden">Hamann: Komm. Werkedition</span>
<span class="hidden sm:inline md:hidden">Johan Georg Hamann: Kommentierte Werkedition</span>
<span class="hidden md:inline align-baseline">Johann Georg Hamann: Historisch-kritische und kommentierte Edition ausgewählter Werke (&#x200A;H&#x200A;K&#x200A;W&#x200A;)</span>
</a>
<div class="flex grow shrink">
</div>
<div class="ha-menusymbol inline-block desktop:hidden pr-3 align-bottom">
<button id="openmenubutton">
<svg role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
aria-labelledby="hamburgerIconTitle">
<title id="hamburgerIconTitle">Menu</title>
<path d="M6 7L18 7M6 12L18 12M6 17L18 17"></path>
</svg>
</button>
<button class="hidden" id="closemenubutton">
<svg role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
aria-labelledby="closeIconTitle">
<title id="closeIconTitle">Close</title>
<path d="M6.34314575 6.34314575L17.6568542 17.6568542M6.34314575 17.6568542L17.6568542 6.34314575">
</path>
</svg>
</button>
</div>
<div class="ha-topnav " id="ha-topnav">
<a href="/HKW/Start">
Startseite
</a>
<div class="ha-topnav-dropdown">
<a href="/HKW/Erschienen/" class="cursor-default ha-menu-arrowsymbol pointer-events-none">
bisher erschienene Bände
</a>
<div class="ha-topnav-dropdown-content" >
<a href="/HKW/Erschienen/FliegenderBrief" class="">Fliegender Brief</a>
<a href="/HKW/Erschienen/SokratischeDenkwuerdigkeiten" class="">Sokratische Denkwürdigkeiten / Wolken</a>
</div>
</div>
<div class="ha-topnav-dropdown">
<a href="/HKW/Geplant/" class="cursor-default ha-menu-arrowsymbol pointer-events-none !mr-0" >
geplante Bände
</a>
<div class="ha-topnav-dropdown-content !mr-0">
<a href="/HKW/Geplant/Kreuzzuege" class="">Kreuzzüge des Philologen</a>
</div>
</div>
<a href="/HKW/Uebersicht">
Werkübersicht
</a>
<a href="/Register/Forschung/Editionen">
Bibliographie Hamann-Editionen
</a>
</div>
</nav>
</header>