simplify header
This commit is contained in:
parent
f33422fb44
commit
0ae1fe260b
7
app.py
7
app.py
|
@ -35,3 +35,10 @@ if 'SENTRY_DSN' in app.config:
|
||||||
from raven.contrib.flask import Sentry
|
from raven.contrib.flask import Sentry
|
||||||
app.config['SENTRY_CONFIG']['release'] = version.version
|
app.config['SENTRY_CONFIG']['release'] = version.version
|
||||||
sentry = Sentry(app, dsn=app.config['SENTRY_DSN'])
|
sentry = Sentry(app, dsn=app.config['SENTRY_DSN'])
|
||||||
|
|
||||||
|
@app.context_processor
|
||||||
|
def inject_static():
|
||||||
|
from flask import url_for
|
||||||
|
def static(filename, **kwargs):
|
||||||
|
return url_for('static', filename=filename, **kwargs)
|
||||||
|
return {'st': static}
|
||||||
|
|
|
@ -18,12 +18,15 @@ body > section, body > header {
|
||||||
|
|
||||||
header > h1 {
|
header > h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-indent:-1000vw;
|
padding: 0;
|
||||||
background: url('/static/logotype.png') no-repeat 2rem bottom, white;
|
|
||||||
background-size: contain;
|
|
||||||
padding: 2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 img {
|
||||||
|
margin-left: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
body > section {
|
body > section {
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
|
@ -50,10 +53,6 @@ h3 {
|
||||||
padding-left: 5rem;
|
padding-left: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type=number]{
|
input[type=number]{
|
||||||
max-width: 8ch;
|
max-width: 8ch;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<html lang=en prefix='og: http://ogp.me/ns#'>
|
<html lang=en prefix='og: http://ogp.me/ns#'>
|
||||||
<head>
|
<head>
|
||||||
<title>Forget</title>
|
<title>Forget</title>
|
||||||
<link rel='stylesheet' href='{{ url_for("static", filename="style.css") }}' />
|
<link rel='stylesheet' href='{{ st("style.css") }}' />
|
||||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||||
<link rel='icon' href='{{ url_for("static", filename="icon.png") }}' />
|
<link rel='icon' href='{{ st("icon.png") }}' />
|
||||||
<meta name='og:title' content='Forget'/>
|
<meta name='og:title' content='Forget'/>
|
||||||
<meta name='og:description' content='Let your old bad posts be forgotten'/>
|
<meta name='og:description' content='Let your old bad posts be forgotten'/>
|
||||||
<meta name='og:image' content='{{ url_for("static", filename="logotype.png", _external=True) }}'/>
|
<meta name='og:image' content='{{ st("logotype.png", _external=True) }}'/>
|
||||||
<meta name='og:image:alt' content='Forget'/>
|
<meta name='og:image:alt' content='Forget'/>
|
||||||
<meta name='og:type' content='website' />
|
<meta name='og:type' content='website' />
|
||||||
<meta name='twitter:card' content='summary' />
|
<meta name='twitter:card' content='summary' />
|
||||||
|
@ -15,7 +15,11 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<h1>Forget</h1>
|
<h1>
|
||||||
|
<a href="{{url_for('index')}}">
|
||||||
|
<img src="{{ st('logotype.png') }}" alt="Forget" width=200 />
|
||||||
|
</a>
|
||||||
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue