From de0ef9dd692bf4c6fa65842cd87852b1de689e3f Mon Sep 17 00:00:00 2001 From: AINDUSTRIES Date: Sat, 28 Sep 2024 23:27:21 +0200 Subject: [PATCH] logout page --- static/css/logout.css | 23 +++++++++++++++++++++++ static/html/logout.html | 20 ++++++++++++++++++++ static/js/logout.js | 4 ++++ 3 files changed, 47 insertions(+) create mode 100644 static/css/logout.css create mode 100644 static/html/logout.html create mode 100644 static/js/logout.js diff --git a/static/css/logout.css b/static/css/logout.css new file mode 100644 index 0000000..399e827 --- /dev/null +++ b/static/css/logout.css @@ -0,0 +1,23 @@ +body { + background-color: #11111b; + padding:0; + margin:0; +} + +h2 { + color: yellow; +} + +p { + color: white; +} + +a { + color: white; +} + +.app { + width: fit-content; + margin: auto; + text-align: center; +} \ No newline at end of file diff --git a/static/html/logout.html b/static/html/logout.html new file mode 100644 index 0000000..bc0ccf0 --- /dev/null +++ b/static/html/logout.html @@ -0,0 +1,20 @@ + + + + + + + + + + Déconnection + + +
+

Tu es désormais déconnecté.
Tu seras redirigé dans pas longtemps.

+

Pas encore redirigé?

+ Click ici pour être redirigé. +
+ + \ No newline at end of file diff --git a/static/js/logout.js b/static/js/logout.js new file mode 100644 index 0000000..58d0c8a --- /dev/null +++ b/static/js/logout.js @@ -0,0 +1,4 @@ +setTimeout(async () => { + await fetch("/logout", {method: "POST"}); + window.location.href = "/"; +}, 3000); \ No newline at end of file