Version2
This commit is contained in:
10
Version1/GirlsDayPython/templates/about.html
Normal file
10
Version1/GirlsDayPython/templates/about.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>{{ title }}.</h2>
|
||||
<h3>{{ message }}</h3>
|
||||
|
||||
<p>Use this area to provide additional information.</p>
|
||||
|
||||
{% endblock %}
|
||||
16
Version1/GirlsDayPython/templates/admin.html
Normal file
16
Version1/GirlsDayPython/templates/admin.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="jumbotron" style="background-color: #020617; color: #00ffcc; text-align: center; padding: 30px; border-radius: 15px;">
|
||||
<h1>Admin-Seite</h1>
|
||||
<p class="lead">Hier kannst du den aktuellen Quiz-Code setzen oder ändern.</p>
|
||||
|
||||
<form method="POST" style="margin-top: 20px;">
|
||||
<input type="text" name="code" value="{{ code }}" required
|
||||
style="padding: 10px; width: 200px; border-radius: 5px; border: none; background-color: #020617; color: #00ffcc;">
|
||||
<button type="submit" style="padding: 10px 20px; border: none; border-radius: 5px; background-color: #00ffcc; color: #020617; cursor: pointer;">Speichern</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
20
Version1/GirlsDayPython/templates/contact.html
Normal file
20
Version1/GirlsDayPython/templates/contact.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>{{ title }}.</h2>
|
||||
<h3>{{ message }}</h3>
|
||||
|
||||
<address>
|
||||
One Microsoft Way<br />
|
||||
Redmond, WA 98052-6399<br />
|
||||
<abbr title="Phone">P:</abbr>
|
||||
425.555.0100
|
||||
</address>
|
||||
|
||||
<address>
|
||||
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
|
||||
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
|
||||
</address>
|
||||
|
||||
{% endblock %}
|
||||
22
Version1/GirlsDayPython/templates/index.html
Normal file
22
Version1/GirlsDayPython/templates/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="jumbotron" style="background-color: #020617; color: #00ffcc; text-align: center; padding: 30px; border-radius: 15px;">
|
||||
<h1>Girls Day Quiz</h1>
|
||||
<p class="lead">Gib den Quiz-Code ein, um deinen Preis zu gewinnen!</p>
|
||||
|
||||
{% if message %}
|
||||
<p style="margin-top: 20px; font-weight: bold; color: {{ color }}">{{ message }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if not success %}
|
||||
<form method="POST" style="margin-top: 20px;">
|
||||
<input type="text" name="code" placeholder="Code eingeben..." required
|
||||
style="padding: 10px; width: 200px; border-radius: 5px; border: none; background-color: #020617; color: #00ffcc;">
|
||||
<button type="submit" style="padding: 10px 20px; border: none; border-radius: 5px; background-color: #00ffcc; color: #020617; cursor: pointer;">Absenden</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
47
Version1/GirlsDayPython/templates/layout.html
Normal file
47
Version1/GirlsDayPython/templates/layout.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ title }} - My Flask Application</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/content/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/static/content/site.css" />
|
||||
<script src="/static/scripts/modernizr-2.6.2.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="/" class="navbar-brand">Application name</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="{{ url_for('home') }}">Home</a></li>
|
||||
<li><a href="{{ url_for('about') }}">About</a></li>
|
||||
<li><a href="{{ url_for('contact') }}">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container body-content">
|
||||
{% block content %}{% endblock %}
|
||||
<hr />
|
||||
<footer>
|
||||
<p>© {{ year }} - My Flask Application</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="/static/scripts/jquery-1.10.2.js"></script>
|
||||
<script src="/static/scripts/bootstrap.js"></script>
|
||||
<script src="/static/scripts/respond.js"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user