Add firsts templates
This commit is contained in:
parent
e1725ab8fb
commit
a3f3b49b2c
10
app.py
Normal file
10
app.py
Normal 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
0
requirements.txt
Normal file
13
templates/items/buscador.html
Normal file
13
templates/items/buscador.html
Normal 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 %}
|
14
templates/layouts/master.html
Normal file
14
templates/layouts/master.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user