Base css
This commit is contained in:
parent
acc8088aa3
commit
f3aa21f816
5
app.py
5
app.py
@ -1,5 +1,5 @@
|
|||||||
# Fichier principal
|
# Fichier principal
|
||||||
from flask import Flask, escape, request
|
from flask import Flask, escape, request, url_for
|
||||||
import pages
|
import pages
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
@ -7,3 +7,6 @@ app = Flask(__name__)
|
|||||||
@app.route('/')
|
@app.route('/')
|
||||||
def main():
|
def main():
|
||||||
return pages.main()
|
return pages.main()
|
||||||
|
|
||||||
|
if __name__=="__main__":
|
||||||
|
app.run(debug=True)
|
||||||
|
5
pages.py
5
pages.py
@ -1,4 +1,7 @@
|
|||||||
|
from flask import render_template
|
||||||
import definitions as lib
|
import definitions as lib
|
||||||
|
|
||||||
|
# Fonctions qui seront associées à des URLs
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
return lib.read("templates/main.html")
|
return render_template("main.html")
|
||||||
|
13
static/style.css
Normal file
13
static/style.css
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
body {
|
||||||
|
background-color: lightblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-family: verdana;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
@ -1,3 +1,11 @@
|
|||||||
<h1>Bienvenue !</h1>
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" src="static/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Bienvenue !</h1>
|
||||||
|
<p>Ceci est la page d'accueil !</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
<p>Ceci est la page d'accueil !</p>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user