create templates

This commit is contained in:
2025-10-16 17:17:46 +02:00
parent 3a580ea6ce
commit f7156592a8
2 changed files with 69 additions and 0 deletions

38
templates/main.html Normal file
View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href={{ url_for ("static", filename="style.css") }}>
<link rel="icon" type="image/x-icon" href={{ url_for ("static", filename="stern.ico") }}>
<script async src="https://analytics.paulmartin.cloud/script.js" data-website-id="e47bae7d-366c-41b8-8ac6-296e4fe30c10"></script>
<title>DHmTM {{year}}</title>
<script>
const wordLists = {{ questions|tojson }};
</script>
</head>
<body>
<a class="title" href={{url_for("editQuestions")}}>DH meets Top Management {{year}}</a>
<div class = "perm-questions">
<h1 class = "erst">Für welchen Bereich sind Sie zuständig?</h1>
<h1 class = "lower erst">Was wären Perspektiven für DH-Studierende in Ihrem Bereich?</h1>
</div>
<div class="scrolling-words-container">
{% for i in questions %}
<div class="scrolling-words-box">
<ul>
<li> </li>
{% for e in i %}
<li> {{e}} </li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
<button id="randomize-button">Zufällige Frage auswählen</button>
<h3>Paul Martin, {{year}}</h3>
<script src = {{ url_for ("static", filename="random.js") }}></script>
</body>
</html>

31
templates/questions.html Normal file
View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href={{ url_for ("static", filename="style.css") }}>
<link rel="icon" type="image/x-icon" href={{ url_for ("static", filename="stern.ico") }}>
<script async src="https://analytics.paulmartin.cloud/script.js" data-website-id="e47bae7d-366c-41b8-8ac6-296e4fe30c10"></script>
<title>DHmTM {{year}}</title>
</head>
<body>
<a class="title" href={{url_for("index")}}>Fragen bearbeiten</a>
<div class="questionListContainer">
<ul class="questionList">
{% for i in range(questions|length-1, -1, -1) %}
<li class="wholeQuestion">
{{questions[i] }}
<a href={{url_for("delete", index=i)}}>(löschen)</a>
</li>
{% endfor %}
</ul>
</div>
<form method="post" action={{ url_for ("questionPost") }}>
<input class="input" type="text" name="question" placeholder="Neue Frage eingeben" autofocus="">
<button class="button">Bestätigen</button>
</form>
<form method="get" action={{ url_for("exportQuestions") }}>
<button class="button corner">Fragen exportieren</button>
</form>
</body>
</html>