mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-kolloquium.git
synced 2025-10-30 09:45:32 +00:00
Initial commit
This commit is contained in:
163
src/css/site.css
Normal file
163
src/css/site.css
Normal file
@@ -0,0 +1,163 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@font-face {
|
||||
font-family: "Biolinum";
|
||||
src: url("../fonts/LinBiolinum_R.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Biolinum";
|
||||
src: url("../fonts/LinBiolinum_RI.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Biolinum";
|
||||
src: url("../fonts/LinBiolinum_RB.woff") format("woff");
|
||||
font-weight: bold;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Libertine";
|
||||
src: url("../fonts/LinLibertine_R.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Libertine";
|
||||
src: url("../fonts/LinLibertine_RI.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Libertine";
|
||||
src: url("../fonts/LinLibertine_RB.woff") format("woff");
|
||||
font-weight: bold;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
body {
|
||||
background-image: url("../img/subtlenet2.png");
|
||||
background-repeat: repeat;
|
||||
}
|
||||
|
||||
@layer components {
|
||||
body {
|
||||
@apply text-base lg:text-lg;
|
||||
}
|
||||
|
||||
p {
|
||||
@apply my-3;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@apply font-bold text-xl 2xl:font-normal 2xl:text-4xl;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply text-lg 2xl:text-2xl;
|
||||
}
|
||||
|
||||
a {
|
||||
@apply text-gray-600 hover:text-gray-900;
|
||||
}
|
||||
|
||||
.topnav {
|
||||
@apply flex lg:grow-0 lg:shrink-0 md:text-lg 2xl:text-xl lg:place-self-end;
|
||||
}
|
||||
|
||||
.topnav a {
|
||||
@apply hidden lg:inline pr-5 2xl:pr-6;
|
||||
}
|
||||
|
||||
.active {
|
||||
@apply text-red-700 hover:text-red-700;
|
||||
}
|
||||
|
||||
.ha-maincolumn {
|
||||
@apply bg-slate-50 mx-auto p-2 md:p-4 lg:px-16 lg:py-12 xl:pr-80 text-lg font-serif;
|
||||
}
|
||||
|
||||
.topnav.responsive {
|
||||
@apply mt-4 text-base;
|
||||
}
|
||||
|
||||
table tr td {
|
||||
@apply pr-4 pt-1 pb-1 pl-2
|
||||
}
|
||||
|
||||
table tr {
|
||||
@apply pt-2
|
||||
}
|
||||
|
||||
table tr:nth-child(2n+1) {
|
||||
@apply bg-slate-100
|
||||
}
|
||||
|
||||
table tr td:nth-of-type(2) {
|
||||
@apply border-l-2
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
empty-cells: show;
|
||||
}
|
||||
|
||||
td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: circle;
|
||||
}
|
||||
|
||||
.ha-maincolumn {
|
||||
max-width: 1280px;
|
||||
}
|
||||
|
||||
.ha-maincolumn p {
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
.main__item {
|
||||
background: var(--white);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.main__item svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
stroke: #000000;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: miter;
|
||||
fill: none;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1344px) {
|
||||
.topnav.responsive {
|
||||
display: block !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.topnav.responsive a {
|
||||
display: block;
|
||||
text-align: left;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
15
src/favicon.svg
Normal file
15
src/favicon.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
|
||||
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#41D1FF"/>
|
||||
<stop offset="1" stop-color="#BD34FE"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FFEA83"/>
|
||||
<stop offset="0.0833333" stop-color="#FFDD35"/>
|
||||
<stop offset="1" stop-color="#FFA800"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/fonts/LinBiolinum_R.woff
Normal file
BIN
src/fonts/LinBiolinum_R.woff
Normal file
Binary file not shown.
BIN
src/fonts/LinBiolinum_RB.woff
Normal file
BIN
src/fonts/LinBiolinum_RB.woff
Normal file
Binary file not shown.
BIN
src/fonts/LinBiolinum_RBah.ttf
Normal file
BIN
src/fonts/LinBiolinum_RBah.ttf
Normal file
Binary file not shown.
BIN
src/fonts/LinBiolinum_RI.woff
Normal file
BIN
src/fonts/LinBiolinum_RI.woff
Normal file
Binary file not shown.
BIN
src/fonts/LinBiolinum_RIah.ttf
Normal file
BIN
src/fonts/LinBiolinum_RIah.ttf
Normal file
Binary file not shown.
BIN
src/fonts/LinBiolinum_Rah.ttf
Normal file
BIN
src/fonts/LinBiolinum_Rah.ttf
Normal file
Binary file not shown.
BIN
src/fonts/LinLibertine_DRah.ttf
Normal file
BIN
src/fonts/LinLibertine_DRah.ttf
Normal file
Binary file not shown.
BIN
src/fonts/LinLibertine_R.woff
Normal file
BIN
src/fonts/LinLibertine_R.woff
Normal file
Binary file not shown.
BIN
src/fonts/LinLibertine_RB.woff
Normal file
BIN
src/fonts/LinLibertine_RB.woff
Normal file
Binary file not shown.
BIN
src/fonts/LinLibertine_RBah.ttf
Normal file
BIN
src/fonts/LinLibertine_RBah.ttf
Normal file
Binary file not shown.
BIN
src/fonts/LinLibertine_RI.woff
Normal file
BIN
src/fonts/LinLibertine_RI.woff
Normal file
Binary file not shown.
BIN
src/fonts/LinLibertine_RIah.ttf
Normal file
BIN
src/fonts/LinLibertine_RIah.ttf
Normal file
Binary file not shown.
BIN
src/fonts/OldStandardTT-Regular.ttf
Normal file
BIN
src/fonts/OldStandardTT-Regular.ttf
Normal file
Binary file not shown.
BIN
src/fonts/PlayfairDisplay-VariableFont_wght.ttf
Normal file
BIN
src/fonts/PlayfairDisplay-VariableFont_wght.ttf
Normal file
Binary file not shown.
BIN
src/fonts/Prata-Regular.ttf
Normal file
BIN
src/fonts/Prata-Regular.ttf
Normal file
Binary file not shown.
BIN
src/fonts/Suranna-Regular.ttf
Normal file
BIN
src/fonts/Suranna-Regular.ttf
Normal file
Binary file not shown.
BIN
src/fonts/bodoni.woff2
Normal file
BIN
src/fonts/bodoni.woff2
Normal file
Binary file not shown.
BIN
src/fonts/cmunrm.ttf
Normal file
BIN
src/fonts/cmunrm.ttf
Normal file
Binary file not shown.
BIN
src/fonts/playfair.woff2
Normal file
BIN
src/fonts/playfair.woff2
Normal file
Binary file not shown.
BIN
src/img/subtlenet2.png
Normal file
BIN
src/img/subtlenet2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 247 B |
11
src/ts/declareelements.ts
Normal file
11
src/ts/declareelements.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { HaFooter } from "./hafooter"
|
||||
import { HaMenu } from "./hamenu"
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'ha-menu': HaMenu,
|
||||
'ha-footer': HaFooter,
|
||||
}
|
||||
}
|
||||
|
||||
export { }
|
||||
30
src/ts/hafooter.ts
Normal file
30
src/ts/hafooter.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { html, LitElement } from 'lit'
|
||||
import { customElement } from 'lit/decorators.js'
|
||||
|
||||
@customElement('ha-footer')
|
||||
export class HaFooter extends LitElement {
|
||||
render() {
|
||||
return html`
|
||||
<div class="bg-slate-50 max-w-[1280px] mt-4 mx-auto p-2 md:p-4 lg:p-8 text-lg font-serif right text-right">
|
||||
<a href="/kontakt.html">Kontakt</a> · <a href="/datenschutzerklaerung.html">Datenschutzerklärung</a>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
|
||||
protected firstUpdated() {
|
||||
// Marks links as active
|
||||
var all_links = this.getElementsByTagName("a"),
|
||||
i=0, len=all_links.length,
|
||||
full_path = location.href.split('#')[0]; //Ignore hashes
|
||||
|
||||
for(; i<len; i++) {
|
||||
if(all_links[i].href.split("#")[0] == full_path) {
|
||||
all_links[i].className += "active";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected createRenderRoot(): Element | ShadowRoot {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
101
src/ts/hamenu.ts
Normal file
101
src/ts/hamenu.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
import { html, LitElement } from 'lit'
|
||||
import { customElement, property } from 'lit/decorators.js'
|
||||
|
||||
@customElement('ha-menu')
|
||||
export class HaMenu extends LitElement {
|
||||
|
||||
@property()
|
||||
title = 'Internationales Hamann Kolloquium'
|
||||
|
||||
render() {
|
||||
return html`
|
||||
<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 py-4 px-3 lg:px-8 flex-wrap">
|
||||
<a href="/" class="text-xl 2xl:text-4xl grow-0 shrink-0 text-black hover:text-black">
|
||||
${this.title}
|
||||
</a>
|
||||
<div class="flex grow shrink">
|
||||
|
||||
</div>
|
||||
<div class="main__item inline-block lg:hidden pr-3 align-bottom">
|
||||
<a href="javascript:void(0);" @click=${this._burgerclick}>
|
||||
<svg role="img" id="openmenubutton" 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>
|
||||
<svg class="hidden" role="img" id="closemenubutton" 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>
|
||||
</a>
|
||||
</div>
|
||||
<div class="topnav" id="topnav">
|
||||
<a class="" href="/">
|
||||
Aktuelles
|
||||
</a>
|
||||
<a class="" href="/kolloquien.html">
|
||||
Hamann-Kolloquien
|
||||
</a>
|
||||
<a class="" href="/acta-baende.html">
|
||||
Acta-Bände
|
||||
</a>
|
||||
<a class="" href="/studien.html">
|
||||
Hamann-Studien
|
||||
</a>
|
||||
<a class="" href="https://hamann-ausgabe.de/Supplementa/Forschung">
|
||||
Forschungsbibliographie
|
||||
</a>
|
||||
<a class="pr-2 2xl:pr-4" href="https://www.hamann-ausgabe.de">
|
||||
Hamann-Ausgabe
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
`
|
||||
}
|
||||
|
||||
private _burgerclick() {
|
||||
var x = document.getElementById("topnav");
|
||||
if (x !== null)
|
||||
if (x.className === "topnav") {
|
||||
x.className += " responsive";
|
||||
let oldbutton = document.getElementById("openmenubutton");
|
||||
if (oldbutton !== null) {
|
||||
oldbutton.setAttribute('class', 'hidden');
|
||||
}
|
||||
let newbutton = document.getElementById("closemenubutton");
|
||||
if (newbutton !== null) {
|
||||
newbutton.setAttribute('class', '');
|
||||
}
|
||||
} else {
|
||||
x.className = "topnav";
|
||||
let oldbutton = document.getElementById("closemenubutton");
|
||||
if (oldbutton !== null) {
|
||||
oldbutton.setAttribute('class', 'hidden');
|
||||
}
|
||||
let newbutton = document.getElementById("openmenubutton");
|
||||
if (newbutton !== null) {
|
||||
newbutton.setAttribute('class', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected firstUpdated() {
|
||||
// Marks links as active
|
||||
var all_links = this.getElementsByTagName("a"),
|
||||
i = 0, len = all_links.length,
|
||||
full_path = location.href.split('#')[0]; //Ignore hashes
|
||||
|
||||
for (; i < len; i++) {
|
||||
if (all_links[i].href.split("#")[0] == full_path) {
|
||||
all_links[i].className += " active";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected createRenderRoot(): Element | ShadowRoot {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
1
src/vite-env.d.ts
vendored
Normal file
1
src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user