Add firsts templates

This commit is contained in:
Andros Fenollosa 2017-08-01 09:22:15 +02:00
parent e1725ab8fb
commit a3f3b49b2c
4 changed files with 37 additions and 0 deletions

10
app.py Normal file
View File

@ -0,0 +1,10 @@
from flask import Flask, render_template
app = Flask(__name__)
app.config['DEBUG'] = True
@app.route('/')
def index():
return render_template('items/buscador.html')
if __name__ == '__main__':
app.run()

0
requirements.txt Normal file
View File

View File

@ -0,0 +1,13 @@
{% extends 'layouts/master.html' %}
{% block title %}Buscador{% endblock %}
{% block body %}
<h1>Buscador</h1>
<div class="row">
<div class="col-xs-12">
<form >
<input type="text" id="nombre" class="form-control" name="nombre" placeholder="Buscar...">
<input type="submit" class="form-control" value="Buscar">
</form>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="es">
<head>
<title>{% block title %}{% endblock %} | Vigilador de Wallapop</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://bootswatch.com/cerulean/bootstrap.css">
</head>
<body>
<div class="container">
{% block body %}{% endblock %}
</div>
</body>
</html>