ciclos

commit 3cad980554fd8f2d17c64c5a64b4f109a2d507b2

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

Add most basic blueprints and a not found handler

 core/blueprints/basic.py | 14 ++++++++++++++
 core/templates/index.html | 17 +++++++++++++++++
 core/templates/not_found.html | 7 +++++++


diff --git a/core/blueprints/__init__.py b/core/blueprints/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
Binary files /dev/null and b/core/blueprints/__init__.py differ




diff --git a/core/blueprints/basic.py b/core/blueprints/basic.py
new file mode 100644
index 0000000000000000000000000000000000000000..cf708fc7fd07792e4feb6a73b5e367e4936cf23f
--- /dev/null
+++ b/core/blueprints/basic.py
@@ -0,0 +1,14 @@
+from flask import Blueprint, render_template
+#from flask_login import current_user, login_required
+
+from core.types.user import User
+basic = Blueprint('basic', __name__)
+
+@basic.route('/')
+def index():
+    return render_template('index.html', title = "Feira Virtual Bem da Terra")
+
+@basic.route('/about')
+def about():
+    return render_template('about.html', title = "Sobre a Feira Virtual Bem da Terra")
+




diff --git a/core/templates/index.html b/core/templates/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..0a77cbc6d2790e67b071754055442c5deb1c01f7
--- /dev/null
+++ b/core/templates/index.html
@@ -0,0 +1,17 @@
+{% extends "layout.html" %}
+
+{% block body %}
+<h1> Bem vindo a Feira Virtual Bem da Terra! </h1>
+
+<section>
+  <p>
+    Comércio <strong> justo e solidário </strong>
+  </p>
+
+  <ul>
+    <li> Trabalho Coletivo </li>
+    <li> Auto Gestão </li>
+    <li> Consumo Responsável </li>
+  </ul>
+</section>
+{% endblock %}




diff --git a/core/templates/not_found.html b/core/templates/not_found.html
new file mode 100644
index 0000000000000000000000000000000000000000..4e01d878f4a4bd76994b4760a1b10f2cbad7fb83
--- /dev/null
+++ b/core/templates/not_found.html
@@ -0,0 +1,7 @@
+{% extends "layout.html" %}
+{% block body %}
+<div class="text-center">
+    <h1>Não Encontrado</h1>
+	<p>Seja o que você estava procurando, não está aqui</p>
+</div>
+{% endblock %}