Landing page progress
This commit is contained in:
parent
e61ce2eaa5
commit
b23f5a8d1a
4 changed files with 56 additions and 11 deletions
|
@ -7,7 +7,7 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
min-height: 80vh;
|
min-height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,9 +48,11 @@ html, body {
|
||||||
background-color: #212121;
|
background-color: #212121;
|
||||||
box-shadow: 0 -2px 10px 0px rgba(33, 33, 33, 0.85);
|
box-shadow: 0 -2px 10px 0px rgba(33, 33, 33, 0.85);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
padding: 0;
|
||||||
|
margin-top: 50px;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-copyright {
|
.footer-copyright {
|
||||||
|
@ -76,3 +78,18 @@ html, body {
|
||||||
.rate-negative {
|
.rate-negative {
|
||||||
color: #f44336;
|
color: #f44336;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-separator{
|
||||||
|
background-color: #03A9F4;
|
||||||
|
padding: 0!important;
|
||||||
|
width: 3px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table > tbody > tr > td{
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container" style="height:50%">
|
||||||
<nav class="navbar navbar-default navbar-upper">
|
<nav class="navbar navbar-default navbar-upper">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<a class="navbar-brand navbar-brand-upper" href="">{{ appbrand }}</a>
|
<a class="navbar-brand navbar-brand-upper" href="">{{ appbrand }}</a>
|
||||||
|
@ -32,17 +32,19 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<footer class="footer container">
|
<footer class="footer">
|
||||||
<div class="footer-copyright">
|
<div class="footer-copyright">
|
||||||
Copyright © Lord Gumblert Productions 2016
|
Copyright © Lord Gumblert Productions 2016
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,20 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ msg }}
|
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{ welcometext|safe }}
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td class="table-separator">
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{{ newstext|safe }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{{ msg|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import datetime
|
||||||
from flask import render_template
|
from flask import render_template
|
||||||
|
|
||||||
from smash import app, conf, db
|
from smash import app, conf, db
|
||||||
|
@ -5,12 +6,21 @@ from smash import app, conf, db
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
|
|
||||||
|
welcome = "<p>Welcome to the quote archive.</p>"
|
||||||
|
news = ("<p><b>02/12/2016{}</b></p><h4>{} running on smash quote database"
|
||||||
|
" engine launched today</h4>").format(
|
||||||
|
datetime.datetime.now().strftime("%d/%m/%y"),
|
||||||
|
conf.config['APPNAME']
|
||||||
|
)
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"index.html",
|
"index.html",
|
||||||
appname=conf.config['APPNAME'],
|
appname=conf.config['APPNAME'],
|
||||||
appbrand=conf.config['APPBRAND'],
|
appbrand=conf.config['APPBRAND'],
|
||||||
title="Quotes",
|
title="Quotes",
|
||||||
msg="Landing page!"
|
welcometext=welcome,
|
||||||
|
newstext=news
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue