adapt website for hugo

This commit is contained in:
Vri 🌈 2022-11-24 11:00:36 +01:00
parent 3968d5d379
commit ecf49a5e11
Signed by: vrifox
GPG key ID: D40098E5B60B2197
22 changed files with 356 additions and 1184 deletions

View file

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
{{ partial "head.html" . }}
</head>
<body>
{{- block "header" . }}{{- end }}
{{ partial "nav.html" . }}
{{- block "main" . }}{{- end }}
{{ partial "footer.html" . }}
</body>
</html>

View file

@ -0,0 +1,36 @@
{{ define "header"}}
<header>
<h1>Cozy Town</h1>
<p>Dienste für flauschige Menschen</p>
<!--<img id="header-background" src="header.svg">-->
</header>
{{- end }}
{{ define "main" }}
<main class="width-1200">
<section id="dienste">
<article class="cozyChat">
<h2>Chat</h2>
<p>Schreibe sicher und vertraulich mit deinen Freunden, Bekannten und deiner Familie.</p>
<nav aria-label="Links zu Matrix">
<a href="https://chat.cozy.town">Starten</a>
<a href="https://doc.matrix.tu-dresden.de/">Dokumentation</a>
</nav>
</article>
<article class="cozyTalk">
<h2>Talk</h2>
<p>Sprich sicher, aber öffentlicher mit anderen Leuten.</p>
<nav aria-label="Links zu Mumble" class="service-nav">
<a href="mumble://mumble.natenom.com/PUBLIC/Eingang%20%7C%20Entrance?title=Natemologie-Zentrum&version=1.2.0">Verbinden</a>
<a href="https://wiki.natenom.de/mumble">Dokumentation</a>
</nav>
</article>
<article class="cozyCode">
<h2>Code</h2>
<p>Starte und pflege deine Projekte.</p>
<nav aria-label="Links zu Gitea">
<a href="https://code.cozy.town">Starten</a>
</nav>
</article>
</section>
</main>
{{- end }}

View file

@ -0,0 +1,4 @@
<footer class="width-1200">
<a href="//vrifox.cc">Vri</a>
<a href="//code.cozy.town/cozytown/website/">Quellcode</a>
</footer>

View file

@ -0,0 +1,8 @@
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "node_modules/myscss")) }}
{{ $css := resources.Get "css/main.scss" | resources.ToCSS $options }}
<title>{{ if not .Page.IsHome }}{{ with .Page.Title }}{{ . }} {{ end }}{{ end }}Cozy Town</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{ $css.Permalink | relURL }}" type="text/css" media="screen" />
<link rel="icon" type="image/png" href="favicon.png">

View file

@ -0,0 +1,3 @@
<nav class="width-1200">
<a href="#dienste">Dienste</a>
</nav>