Files
Website/src/data/app.py
Namonay d4d077073c
All checks were successful
Deploy via SSH on push / deploy-via-ssh (push) Successful in 22s
fix: oops
2025-12-01 11:06:50 +00:00

19 lines
469 B
Python

import os,random
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def home():
bg_files = os.listdir("static/img/backgrounds")
bg = random.choice(bg_files)
return render_template("index.html", title="Accueil", background=bg)
@app.route("/projects")
def projects():
return render_template("projects.html", title="Projets")
@app.route("/contact")
def contact():
return render_template("contact.html", title="Contact")