diff --git a/app.py b/app.py new file mode 100644 index 0000000..e57e8d6 --- /dev/null +++ b/app.py @@ -0,0 +1,25 @@ +from flask import Flask, render_template, request, redirect, session +import requests +import os + +app = Flask(__name__) +IMAGE_FOLDER = os.path.join('static', 'images') +app.config['UPLOAD_FOLDER'] = IMAGE_FOLDER + +@app.route('/') +def homepage(): + return render_template('html/index.html') + #imageList = os.listdir('static/images') + #imageList = ['images/' + image for image in imageList] + #return render_template('go.html', imageList=imageList) + +@app.route('/orario') +def orario(): + return render_template('html/orario.html') + +@app.route('/calendario') +def calendario(): + return render_template('html/calendario.html') + +if __name__ == '__main__': + app.run() \ No newline at end of file diff --git a/static/css/homepage.css b/static/css/homepage.css new file mode 100644 index 0000000..07b184a --- /dev/null +++ b/static/css/homepage.css @@ -0,0 +1,16 @@ +.orario { + padding-top: 300px; + text-align: center; +} +html, body { + margin:0; + padding:0; +} +.background { + position: absolute; + display: block; + top: 0; + left: 0; + z-index:0; + color: black; +} \ No newline at end of file diff --git a/static/images/assets/calendario_logo.png b/static/images/assets/calendario_logo.png new file mode 100644 index 0000000..7bcb2f0 Binary files /dev/null and b/static/images/assets/calendario_logo.png differ diff --git a/static/images/assets/logo.png b/static/images/assets/logo.png new file mode 100644 index 0000000..5fd234c Binary files /dev/null and b/static/images/assets/logo.png differ diff --git a/static/images/assets/orario_logo.png b/static/images/assets/orario_logo.png new file mode 100644 index 0000000..af681ad Binary files /dev/null and b/static/images/assets/orario_logo.png differ diff --git a/templates/html/calendario.html b/templates/html/calendario.html new file mode 100644 index 0000000..5ec6300 --- /dev/null +++ b/templates/html/calendario.html @@ -0,0 +1,10 @@ + + + + + Title + + +

Calendario

+ + \ No newline at end of file diff --git a/templates/html/go.html b/templates/html/go.html new file mode 100644 index 0000000..73d4e31 --- /dev/null +++ b/templates/html/go.html @@ -0,0 +1,13 @@ + + + + +My first HTML page + + +

Hello world!

+{% for imageList in imageList %} + +{% endfor %} + + \ No newline at end of file diff --git a/templates/html/index.html b/templates/html/index.html new file mode 100644 index 0000000..ce74128 --- /dev/null +++ b/templates/html/index.html @@ -0,0 +1,25 @@ + + + + + 2 Elci - Homepage + + + + + + + + +
+ +
+ +
+ + + +
+ + + \ No newline at end of file diff --git a/templates/html/orario.html b/templates/html/orario.html new file mode 100644 index 0000000..b2fa037 --- /dev/null +++ b/templates/html/orario.html @@ -0,0 +1,10 @@ + + + + + Title + + +

Orario

+ + \ No newline at end of file