-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
70 lines (63 loc) · 1.94 KB
/
login.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Connexion - PHP Functions</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css"
/>
<script
type="text/javascript"
src="https://identity.netlify.com/v1/netlify-identity-widget.js"
></script>
<!-- Font Awesome Icons -->
<script
defer
src="https://use.fontawesome.com/releases/v5.14.0/js/all.js"
></script>
</head>
<body class="is-hidden">
<section class="section pt-0">
<div class="container is-fullhd">
<div
class="notification is-light is-flex is-justify-content-space-between has-background-dark"
>
<h1 class="is-unselectable has-text-white">PHP Functions</h1>
</div>
<div class="columns mt-6">
<div class="column is-8 is-offset-2">
<article class="message mt-6">
<div class="message-body">
<h2 class="title">Bienvenue à vous</h2>
<p>Pour continuer prière de vous authentifier.</p>
<button class="button mt-6 is-info">
<span class="icon is-medium">
<i class="fa fa-lock"></i>
</span>
<span onclick="netlifyIdentity.open()">Authentification</span>
</button>
</div>
</article>
</div>
</div>
</div>
</section>
<script>
netlifyIdentity.setLocale("fr");
netlifyIdentity.on("init", (user) => {
if (user) {
location.href = "/";
} else {
document.querySelector("body").classList.remove("is-hidden");
}
});
netlifyIdentity.on("login", (user) => {
if (user) {
location.href = "/";
}
});
</script>
</body>
</html>