From b032edcf4401bcb1e52876656bb61e082aed6dca Mon Sep 17 00:00:00 2001 From: olima957 <olima957@student.liu.se> Date: Wed, 9 Oct 2024 14:50:44 +0200 Subject: [PATCH] =?UTF-8?q?Laddade=20upp=20Flask=20fil=20och=20template=20?= =?UTF-8?q?f=C3=B6r=20sidorna.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyPortfolio/myFlaskProject.py | 7 ++++ MyPortfolio/templates/template.html | 50 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 MyPortfolio/templates/template.html diff --git a/MyPortfolio/myFlaskProject.py b/MyPortfolio/myFlaskProject.py index e69de29..63e5c9a 100644 --- a/MyPortfolio/myFlaskProject.py +++ b/MyPortfolio/myFlaskProject.py @@ -0,0 +1,7 @@ +from flask import Flask, render_template + +app = Flask(__name__,template_folder='./templates') + +@app.route("/") +def index(): + return render_template('index.html') \ No newline at end of file diff --git a/MyPortfolio/templates/template.html b/MyPortfolio/templates/template.html new file mode 100644 index 0000000..4d3bd53 --- /dev/null +++ b/MyPortfolio/templates/template.html @@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html> +<head> + <link rel="stylesheet" href="../static/style/main.css"> + <link rel="preconnect" href="https://fonts.googleapis.com"> + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> + <link href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap" rel="stylesheet"> +</head> +<body> + <header> + <pre class="logo"> + + +██████╗ ██╗ ██████╗ +██╔â•â•â–ˆâ–ˆâ•—██║██╔â•â•â•â–ˆâ–ˆâ•— +██████╔â•â–ˆâ–ˆâ•‘██║ ██║ +██╔â•â•â•â• ██║██║ ██║ +██║██╗ ██║╚██████╔╠+â•šâ•â•â•šâ•â• â•šâ•â• â•šâ•â•â•â•â•â• + + + </pre> + <ul> + <li><a href="index.html">Home</a></li> + <li><a href="techniques.html">Techniques</a></li> + <li><a href="list.html">Projects</a></li> + <li><a href="https://github.com/olma957">GitHub</a></li> + </ul> + </header> + + <div class="content-container"></div> + + + <footer> + <p>Authors:<br> + <a href="mailto:olima957@student.liu.se">Oliwer Mattsson: olima957@student.liu.se</a><br> + <a href="mailto:taiku983@student.liu.se">Taif Kurji: taiku983@student.liu.se</a> + </p> + <p>License:<br> + <a href="https://www.gnu.org/licenses/gpl-3.0.html">GPLv3 License</a> + </p> + <p>Links:<br> + <a href="index.html">Home</a><br> + <a href="techniques.html">Techniques</a><br> + <a href="list.html">Projects</a><br> + <a href="https://github.com/olma957">GitHub</a> + </p> + </footer> +</body> +</html> \ No newline at end of file -- GitLab