Upload all new files

This commit is contained in:
Stefano Assenzo 2022-12-05 15:13:40 +00:00
parent 9ff56a5acb
commit d1908c3fa7
9 changed files with 99 additions and 0 deletions

25
app.py Normal file
View File

@ -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()

16
static/css/homepage.css Normal file
View File

@ -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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>Calendario</h1>
</body>
</html>

13
templates/html/go.html Normal file
View File

@ -0,0 +1,13 @@
<!-- Hello world in HTML -->
<!DOCTYPE html>
<html>
<head>
<title>My first HTML page</title>
</head>
<body>
<h1>Hello world!</h1>
{% for imageList in imageList %}
<img src = "{{ url_for('static', filename=imageList)}}">
{% endfor %}
</body>
</html>

25
templates/html/index.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>2 Elci - Homepage</title>
<meta name="viewport" content="width=device-width" >
<link rel="icon" type="image/png" href="static/images/assets/logo.png">
<link rel="stylesheet" href="static/css/homepage.css" type="text/css"/>
</head>
<body>
<canvas class="background"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/particlesjs/2.2.2/particles.min.js"></script>
<!-- Logo center -->
<center>
<img src="static/images/assets/logo.png">
</center>
<!-- Orario - Calendario -->
<div class="orario">
<a href="/orario"><img src="static/images/assets/orario_logo.png", width = "150"></a>
<a href="/calendario"><img src="static/images/assets/calendario_logo.png", width = "150"></a>
</div>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>Orario</h1>
</body>
</html>