Merge of dev-auth #1
23
static/css/logout.css
Normal file
23
static/css/logout.css
Normal file
@@ -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;
|
||||||
|
}
|
||||||
20
static/html/logout.html
Normal file
20
static/html/logout.html
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport"
|
||||||
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<base href="/" target="_top">
|
||||||
|
<script src="static/js/logout.js" defer="defer"></script>
|
||||||
|
<link rel="stylesheet" href="static/css/logout.css">
|
||||||
|
<title>Déconnection</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="app">
|
||||||
|
<h2>Tu es désormais déconnecté.<br>Tu seras redirigé dans pas longtemps.</h2>
|
||||||
|
<p>Pas encore redirigé?</p>
|
||||||
|
<a href="/">Click ici pour être redirigé.</a>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
4
static/js/logout.js
Normal file
4
static/js/logout.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
setTimeout(async () => {
|
||||||
|
await fetch("/logout", {method: "POST"});
|
||||||
|
window.location.href = "/";
|
||||||
|
}, 3000);
|
||||||
Reference in New Issue
Block a user