mirror of
https://github.com/assenzostefano/class-website.git
synced 2025-02-03 10:17:32 +01:00
Upload all new files
This commit is contained in:
parent
9ff56a5acb
commit
d1908c3fa7
25
app.py
Normal file
25
app.py
Normal 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
16
static/css/homepage.css
Normal 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;
|
||||
}
|
BIN
static/images/assets/calendario_logo.png
Normal file
BIN
static/images/assets/calendario_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 MiB |
BIN
static/images/assets/logo.png
Normal file
BIN
static/images/assets/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
static/images/assets/orario_logo.png
Normal file
BIN
static/images/assets/orario_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
10
templates/html/calendario.html
Normal file
10
templates/html/calendario.html
Normal 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
13
templates/html/go.html
Normal 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
25
templates/html/index.html
Normal 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>
|
10
templates/html/orario.html
Normal file
10
templates/html/orario.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user