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