diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..26d33521af10bcc7fd8cea344038eaaeb78d0ef5 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000000000000000000000000000000000000..105ce2da2d6447d11dfe32bfb846c3d5b199fc99 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ +<component name="InspectionProjectProfileManager"> + <settings> + <option name="USE_PROJECT_PROFILE" value="false" /> + <version value="1.0" /> + </settings> +</component> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..f051c8c25a33de637bba24c386e3e11026fde274 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (nlib)" project-jdk-type="Python SDK" /> + <component name="PyCharmProfessionalAdvertiser"> + <option name="shown" value="true" /> + </component> +</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..7ad75b840c8fc82015d559eb3f168922676dc472 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/nlib.iml" filepath="$PROJECT_DIR$/.idea/nlib.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/nlib.iml b/.idea/nlib.iml new file mode 100644 index 0000000000000000000000000000000000000000..74d515a027de98657e9d3d5f0f1831882fd81374 --- /dev/null +++ b/.idea/nlib.iml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="PYTHON_MODULE" version="4"> + <component name="NewModuleRootManager"> + <content url="file://$MODULE_DIR$"> + <excludeFolder url="file://$MODULE_DIR$/venv" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/ess.py b/ess.py new file mode 100644 index 0000000000000000000000000000000000000000..9c0139260d4eeeb569c673434f752b372a6f9d68 --- /dev/null +++ b/ess.py @@ -0,0 +1,16 @@ +from flask import Flask , render_template + +app = Flask(__name__) + +@app.route('/') +def hello(): + return render_template("index.html") +@app.route('/alek') +def aaaa(): + return render_template("alek.html") +@app.route('/tom') +def ahah(): + return render_template("tom.html") +@app.route('/participants') +def zzz(): + return render_template("participants.html") \ No newline at end of file diff --git a/static/money.jpg b/static/money.jpg new file mode 100644 index 0000000000000000000000000000000000000000..42e4fd325fbb372582b8dcdea2a7af647b8c7bf5 Binary files /dev/null and b/static/money.jpg differ diff --git a/static/pdp_Tom.jpg b/static/pdp_Tom.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8ae84303605a9590ec171110b97c2958b821f7a6 Binary files /dev/null and b/static/pdp_Tom.jpg differ diff --git a/templates/alek.html b/templates/alek.html new file mode 100644 index 0000000000000000000000000000000000000000..4ca467f228cc870cae537b5066e021a724dbe7a4 --- /dev/null +++ b/templates/alek.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang="fr"> +<head> + <meta charset="UTF-8"> + <title>alek</title> +</head> +<body> +<h1>Alek</h1> +<p>Salut! Je m'appelle Aleksander, j'ai 19 ans et j'ai vendu mon âme au diable pour pouvoir faire des études en sciences informatiques</p> +<a href="https://www.youtube.com/watch?v=tyPBDrIyngE&ab_channel=Mr.Frog">ma vidéo préférée</a> +<br> +<p>Sur l'image on peut me voir en train de penser à mon salaire après avoir fini ces études</p> +<img src="/static/money.jpg" height="300" width="300"> +<br> +<a href="http://127.0.0.1:5000/participants">retour en arrière</a> +</body> +</html> \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000000000000000000000000000000000000..671e0cc725719740cc6c057d7ff192eabd1d0c78 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="fr"> +<head> + <meta charset="UTF-8"> + <title>menu</title> +</head> +<body> +<h1>menu :)</h1> + +<a href="http://127.0.0.1:5000/participants">voir les participants</a> +</body> +</html> \ No newline at end of file diff --git a/templates/participants.html b/templates/participants.html new file mode 100644 index 0000000000000000000000000000000000000000..d31d39ec61706fd548297e93cd96746cde2d6963 --- /dev/null +++ b/templates/participants.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="fr"> +<head> + <meta charset="UTF-8"> + <title>participants</title> +</head> +<body> +<a href="http://127.0.0.1:5000/tom">tom</a> +<br> +<a href="http://127.0.0.1:5000/alek">alek</a> +</body> +</html> \ No newline at end of file diff --git a/templates/tom.html b/templates/tom.html new file mode 100644 index 0000000000000000000000000000000000000000..36cbbec5006c1599a579bc4c61fd09721f585b46 --- /dev/null +++ b/templates/tom.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="fr"> +<head> + <meta charset="UTF-8"> + <title>Tom</title> +</head> +<body> +<h1>Tom</h1> +<p>Hello ! Moi c'est Tom, j'ai 21 ans et je viens de Rochefort. Je fais de l'ultimate frisbee et je suis animateur aux scouts.</p> +<br> +<p>Ah oui j'aime bien l'escalade aussi</p> +<img src="/static/pdp_Tom.jpg" height="300" width="300"> +<br> +<a href="http://127.0.0.1:5000/participants">Retour en arrière</a> +</body> +</html>