-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.php
94 lines (84 loc) · 2.98 KB
/
account.php
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
require __DIR__ . "/config.php";
$action = $_GET["action"] ?? "account-created";
$views = (object) [
"login" => (object) [
"title" => "Acessar conta"
],
"register" => (object) [
"title" => "Criar conta"
],
"account-created" => (object) [
"title" => "Conta criada"
],
"forget" => (object) [
"title" => "Esquecia a senha"
],
"forget-link-sent" => (object) [
"title" => "Link enviado"
],
"password-update" => (object) [
"title" => "Atualizar senha"
],
];
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Corts - <?= $views->$action->title ?>
</title>
<link rel="shortcut icon" href="./assets/img/favicon.svg" type="image/x-icon">
<link rel="stylesheet" href="./assets/css/styles.min.css">
</head>
<body class="account-body">
<div class="container">
<div
class="inner-box">
<div class="py-4 d-flex flex-column flex-md-row justify-content-center justify-content-md-between align-items-center inner-box-header">
<div class="d-flex align-items-center mb-3 mb-md-0">
<a class="logo" href="<?= URL_BASE ?>">
<img src="./assets/img/logo.svg" alt="Logo">
</a>
<h1 class="ms-4 h4 mb-0 fw-medium">
<?= $views->$action->title ?>
</h1>
</div>
<nav class="d-flex align-items-center ms-md-auto">
<a class="btn <?= $action == "login" ? "btn-primary" : "text-primary" ?> px-4 mx-1"
href="account.php?action=login">
Login
</a>
<a class="btn <?= $action == "register" ? "btn-primary" : "text-primary" ?> px-4 mx-1"
href="account.php?action=register">
Registrar
</a>
</nav>
</div>
<div class="p-4 d-flex justify-content-center align-items-center inner-box-content">
<?php include __DIR__ . "/src/views/account/" . $action . ".php" ?>
</div>
</div>
</div>
<footer class="py-4">
<div class="container">
<div class="text-center mt-auto">
<small>
<p class="mb-0">
Todos os direitos reservados - By <a
href="https://github.com/ernandesrs" title="Github"
target="_blank">Ernandes</a>
</p>
<p class="mb-0">
<a href="">
Termos de privacidade
</a>
</p>
</small>
</div>
</div>
</footer>
</body>
</html>