Skip to content
Snippets Groups Projects
Commit 6b293961 authored by Josh Borrow's avatar Josh Borrow
Browse files

Added homepage

parent 530ee7ef
No related branches found
No related tags found
No related merge requests found
......@@ -20,5 +20,12 @@ def compile_pubs(template_name="pubs.jinja", template_dir=".", data_dir="../data
return template.render(cards=cards)
def compile_home(template_name="index.jinja", template_dir=".", data_dir="../data"):
""" Render the homepage """
template = get_from_filesystem(template_name, template_dir)
return template.render()
if __name__ == "__main__":
print(compile_pubs())
print(compile_home())
{% extends "base.jinja" %}
{% import "helpers.jinja" as helper %}
{% block stylesheets %}<link href='home.css' rel='stylesheet' type='text/css'>{% endblock %}
{% block content %}
<div class='wrapper'>
{{ helper.navbar_homepage([['x', 'a.com', ''], ['y', 'b.com', ''], ['z', 'c.com', ""]]) }}
<div class='central'>
<div class='central-content'>
<img src='logo.svg'>
<h1 class='subhead'><b>S</b>PH <b>W</b>ith <b>I</b>nter-dependent <b>F</b>ine-grained <b>T</b>asking</h1>
<div class='buttons'>
{# TODO: Fix these static links #}
<a href='https://gitlab.cosma.dur.ac.uk/'>
<div class='btn btn-orange'>
<h2><i class="fa fa-gitlab" aria-hidden="true"></i> Get The Code</h2>
</div>
</a>
<a href='about.html'>
<div class='btn btn-blue'>
<h2>About SWIFT <i class="fa fa-chevron-right" aria-hidden="true"></i></h2>
</div>
</a>
</div>
</div>
</div>
<div class='footer'>
<a href='http://www.durham.ac.uk/'>
<img src='dulogo.png'>
</a>
<a href='http://icc.dur.ac.uk/'>
<img src='icclogo.png'>
</a>
</div>
</div>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment