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 {
|
||||
min-height: 80vh;
|
||||
min-height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
@ -48,9 +48,11 @@ html, body {
|
|||
background-color: #212121;
|
||||
box-shadow: 0 -2px 10px 0px rgba(33, 33, 33, 0.85);
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
margin-top: 50px;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.footer-copyright {
|
||||
|
@ -76,3 +78,18 @@ html, body {
|
|||
.rate-negative {
|
||||
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>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="container" style="height:50%">
|
||||
<nav class="navbar navbar-default navbar-upper">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand navbar-brand-upper" href="">{{ appbrand }}</a>
|
||||
|
@ -32,17 +32,19 @@
|
|||
|
||||
|
||||
<div class="content">
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer container">
|
||||
<div class="footer-copyright">
|
||||
Copyright © Lord Gumblert Productions 2016
|
||||
<footer class="footer">
|
||||
<div class="footer-copyright">
|
||||
Copyright © Lord Gumblert Productions 2016
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
|
|
|
@ -1,4 +1,20 @@
|
|||
{% extends "base.html" %}
|
||||
{% 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 %}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import datetime
|
||||
from flask import render_template
|
||||
|
||||
from smash import app, conf, db
|
||||
|
@ -5,12 +6,21 @@ from smash import app, conf, db
|
|||
|
||||
@app.route('/')
|
||||
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(
|
||||
"index.html",
|
||||
appname=conf.config['APPNAME'],
|
||||
appbrand=conf.config['APPBRAND'],
|
||||
title="Quotes",
|
||||
msg="Landing page!"
|
||||
welcometext=welcome,
|
||||
newstext=news
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue