diff --git a/.gitignore b/.gitignore index 1a1a081..f0b1c08 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,5 @@ venv.bak/ # mypy .mypy_cache/ + + diff --git a/info.py b/info.py new file mode 100644 index 0000000..577805d --- /dev/null +++ b/info.py @@ -0,0 +1,41 @@ +Titulo_Random = { + "titulo" : "", + "Descripcion" : "", + "Categorias" : ["Ejemplo 1","Ejemplo 2","Ejemplo 3"] +} + +Zaid={ + "Nombre" :"Zaid de Anda", + "Descripcion" :"El spiderman", + "GitHub":"https://github.com/ZaidTheJedi", + "imagen":"https://scontent.fmex10-2.fna.fbcdn.net/v/t1.0-9/76655347_2578826362165596_5823929259139268608_o.jpg?_nc_cat=103&_nc_eui2=AeHO2xSspBZA3J8E39knOAAxI2qsCHEiLlrxFKdHgjA1XNvYwojy4crvYLdEE5im49tQGHWXBNKgNU67fQ0CPwac-tez8qcvAsMJQzxrIhSF9Q&_nc_ohc=jZBpue6HxcQAQlLYhSBDc_SkbjnjOH07XWyniZuSVLO9ACv80aVaen3GQ&_nc_ht=scontent.fmex10-2.fna&oh=96249b030edefc09f1937a60868c5d21&oe=5E76B21D" +} + +Cristopher={ + "Nombre" :"Cristopher Guapo", + "Descripcion" :"El hacker guapo", + "GitHub":"https://github.com/CristopherA96", + "imagen":"https://scontent-lax3-2.xx.fbcdn.net/v/t1.0-9/48389588_2021190154595694_3757159149121568768_o.jpg?_nc_cat=107&_nc_eui2=AeH4wDe3f4l0dP6X1AuTzSwGMZ6VyIrQjGUIgv_jSROFmDNt3wJJznw7UqQrGvss-oJnBRTYMPUTVaJ9b2c0DuOfvV4XZQPU8-pz0kqu6aKAXA&_nc_ohc=MC572hhhZbsAQkyofedrzcUnmLdk1tKTEwHvniyLbF3XyP-aw4h3hxBqg&_nc_ht=scontent-lax3-2.xx&oh=0d0ee3e8f1f6e61dfcbb797545338782&oe=5E7C08A9" +} + +Ramiro={ + "Nombre" :"Jose Ramiro Fuentes", + "Descripcion" :"El grandote", + "GitHub":"https://github.com/RamiroFuentes", + "imagen":"https://scontent-lax3-2.xx.fbcdn.net/v/t1.0-9/28958775_2098097743758607_295344947464073307_n.jpg?_nc_cat=111&_nc_eui2=AeHltZ8kCcT5DA9XjaOWeRLFCw5f02eeRQCbqDLShS_xVPwifkkcYRZsn8xcvLJi9wVPMn4cYpQy4qXaM_1nQ4qEnZmSLSQYWXckRT9c-M8uuA&_nc_ohc=BpoY8OCbbwkAQmOnmbF2DfeLfzNKciYe9cAkPszE1KqRE86Aa7ZEwDJWw&_nc_ht=scontent-lax3-2.xx&oh=72dd17f4957c24e9c140be55820d21a8&oe=5E73E424" +} + +Rodolfo={ + "Nombre" :"Rodolfo Ferro", + "Descripcion" :"El führer", + "GitHub":"https://github.com/RodolfoFerro", + "imagen":"https://avatars3.githubusercontent.com/u/8453749?s=460&v=4" +} + +Pedro = { + "Nombre" :"Pedro A. Guardado", + "Descripcion" :"El Ausente", + "GitHub":"https://github.com/PAGuardado", + "imagen":"https://avatars1.githubusercontent.com/u/51490532?s=460&v=4" +} +miembros = [Rodolfo,Zaid,Cristopher,Ramiro,Pedro] \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..f273830 --- /dev/null +++ b/start.sh @@ -0,0 +1 @@ +python app.py \ No newline at end of file diff --git a/static/images/landscape_white.png b/static/images/landscape_white.png new file mode 100644 index 0000000..1765292 Binary files /dev/null and b/static/images/landscape_white.png differ diff --git a/templates/base.html b/templates/base.html index 730efe2..0cc5d02 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,62 +1,146 @@ - - - - - - - - - Hello, world! - - - - - - {% block content %} - {% endblock %} + + + + + + + + + DS Zoo - Future Lab + + + + + + + + {% block content %} + {% endblock %} + + + + + + + + - - - - - - - + \ No newline at end of file diff --git a/templates/categorias.html b/templates/categorias.html new file mode 100644 index 0000000..5748815 --- /dev/null +++ b/templates/categorias.html @@ -0,0 +1,8 @@ +{%extends "base.html"%} +{%block content%} +
+

Estructura

+
+ + +{%endblock%} \ No newline at end of file diff --git a/templates/estructura.html b/templates/estructura.html new file mode 100644 index 0000000..5748815 --- /dev/null +++ b/templates/estructura.html @@ -0,0 +1,8 @@ +{%extends "base.html"%} +{%block content%} +
+

Estructura

+
+ + +{%endblock%} \ No newline at end of file diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..cd3bebe --- /dev/null +++ b/templates/home.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} +{% block content %} + +
+
+
+

Future Zoo

+

¡Estructuras de datos open source por la comunidad de la Universidad de Guanajuato!

+
+ + +
+ +
+ + +
+ +
+ + + {% for i in range(1,10)%} +
+
+
+ +
+
Estructura {{i}}
+

With supporting text below as a natural lead-in to additional content.

+ Framework +
+
+ Categoría +
+
+
+ {% endfor %} + +
+
+
+ +{% endblock %} \ No newline at end of file diff --git a/templates/members.html b/templates/members.html new file mode 100644 index 0000000..7940e0a --- /dev/null +++ b/templates/members.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% block content %} +
+
+

Miembros del equipo

+
+
+ + +
+ + {% for member in miembros%} +
+
+
+ +
+
{{member["Nombre"]}}
+

{{member["Descripcion"]}}

+ Github +
+
+
+ {% endfor %} +
+{% endblock %} \ No newline at end of file diff --git a/views.py b/views.py index db6b11d..affc13a 100644 --- a/views.py +++ b/views.py @@ -1,5 +1,5 @@ from app import app - +from info import miembros from flask import render_template @@ -7,7 +7,7 @@ def index(): """Base URL for website.""" - return render_template('base.html') + return render_template('home.html') @app.route('/about') @@ -15,3 +15,14 @@ def about(): """URL for about section.""" return render_template('about.html') + +@app.route('/estructura') +def estructura(): + """Descripcion de cada estructura""" + +@app.route('/members') +def members(): + """Apartado de miembroos""" + members = miembros + + return render_template('members.html',miembros=members) \ No newline at end of file