This commit is contained in:
Tim Gröger 2019-01-14 15:23:00 +01:00
parent 073676799f
commit 9f796caa8e
4 changed files with 24 additions and 3 deletions

View File

@ -70,6 +70,10 @@ def home():
return redirect(url_for('home')) return redirect(url_for('home'))
return render_template('home.html', users=User.query.all(), form=form) return render_template('home.html', users=User.query.all(), form=form)
@flask_sijax.route(app, "/return")
def to_home():
return home()
@flask_sijax.route(app, "/about") @flask_sijax.route(app, "/about")
def about(): def about():
return render_template('about.html', title='about') return render_template('about.html', title='about')

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

@ -52,6 +52,10 @@ body {
.logo-nav { .logo-nav {
height: 61px; height: 61px;
width: auto; width: auto;
transition-duration: 0.4s;
}
.logo-nav:active {
transform: translateY(4px)
} }
.geruecht { .geruecht {
@ -83,6 +87,7 @@ body {
border-radius: 10px; border-radius: 10px;
background: green; background: green;
color: white; color: white;
transition-duration: 0.4s;
} }
.button:active { .button:active {

View File

@ -19,12 +19,24 @@
<script type="text/javascript"> <script type="text/javascript">
{{ g.sijax.get_js()|safe }} {{ g.sijax.get_js()|safe }}
</script> </script>
<script type="text/JavaScript">
function hover(element) {
element.setAttribute('src', "{{ url_for('static', filename='img/logo_selected.png') }}");
}
function unhover(element) {
element.setAttribute('src', "{{ url_for('static', filename='img/logo.png') }}");
}
</script>
</head> </head>
<body> <body>
<div class="topnav"> <div class="topnav">
<img class="logo-nav first" src="{{ url_for('static', filename='img/logo.png') }}"> <a href="{{ url_for('to_home') }}">
<a class="last blue-button" href="#">Finanzer</a> <img class="logo-nav first" src="{{ url_for('static', filename='img/logo.png') }}" onmouseover="hover(this);" onmouseout="unhover(this);">
</a>
<!--<div class="logo-nav first"></div>-->
<a class="last blue-button" href="{{ url_for('to_home') }}">Finanzer</a>
</div> </div>
<div class="container"> <div class="container">
{% block content %} {% block content %}