added search page

This commit is contained in:
bytewerk
2015-02-06 22:03:42 +01:00
parent 72daa11c33
commit 71858c6020
8 changed files with 168 additions and 6 deletions

View File

@ -40,7 +40,7 @@ vim: ts=2 noexpandtab
</nav>
</div>
</div>
<div class="inner cover">
<div class="inner cover">
{% block content %}{% endblock %}
</div>
</div>

9
templates/result.html Normal file
View File

@ -0,0 +1,9 @@
<!--
vim: ts=2 noexpandtab
-->
{% extends "index.html" %}
{% block title %}{{ super() }} - Results{% endblock%}
{% set active_page = "search" %}
{% block content %}
<p>{{results}}</p>
{% endblock content%}

View File

@ -5,5 +5,22 @@ vim: ts=2 noexpandtab
{% block title %}{{ super() }} - Search{% endblock%}
{% set active_page = "search" %}
{% block content %}
<p>SEARCH</p>
<link href="{{ url_for("static", filename="css/search.css") }}" rel="stylesheet">
<div class="search_container">
<img class="logo" src="{{ url_for("static", filename="images/Pirates.svg") }}" />
<form action="search" >
<div class="form-group">
<div class="input-group search-box">
<input type="text" name="q" class="form-control" placeholder="Seach for…" aria-describedby="basic-addon2">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
Search!
</button>
</span>
</div>
</div>
</form>
</div>
{% endblock content%}