add: templates

This commit is contained in:
ahoemann 2024-11-12 16:44:04 +01:00
commit 9f64e5d9a0
3 changed files with 47 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.venv

13
app.py Executable file
View file

@ -0,0 +1,13 @@
from flask import Flask, render_template, redirect, url_for
app = Flask(__name__)
@app.route("/" or "/index.html")
def root():
return render_template("template.html",page = "Page")
@app.route("/imprint.html")
def imprint():
return render_template("template.html",page = "Imprint")

33
templates/template.html Normal file
View file

@ -0,0 +1,33 @@
<html lang="en" id="project-main" data-lt-installed="true"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Adrianux.net</title>
<meta name="description" content="the main Adrianux page">
<link rel="canonical" href="https://adrianux.net/">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
</head>
<body>
<main>
<header>{{ page }}</header>
<nav>
<ul>
<li><a href="index.html">Homepage</a></li>
<li><a href="https://github.com/BonzaiBrains">GitHub</a></li>
<li><a href="about.html">About</a></li>
<li><a href="monit">Monitoring</a></li>
<li><a href="imprint.html">Imprint</a></li>
<li><a href="manuals.html">Manuals</a></li>
</ul>
</nav>
<header>Homepage</header>
<article>
Welcome to the Adrianux.net homepage, Adrian's website, feel free to check out what this VPS is currently serving. <a href="monit">here</a> or under Monitoring.
</article>
</main>
<footer>
<p>Author: Adrian Erik Hoemann</p>
<p><a href="mailto:ahoemann@proton.me">ahoemann@proton.me</a></p>
</footer>
</body></html>