-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
59 lines (55 loc) · 1.89 KB
/
index.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
<?php
include('layouts/header.php');
include('functions/db_config.php');
session_start();
?>
<style>
html,
body {
position: relative;
min-height: 100vh;
background-color: #E1E8EE;
display: flex;
align-items: center;
justify-content: center;
font-family: "Fira Sans", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
<div class="form-structor">
<div class="login">
<div class="center">
<h2 class="form-title" id="login"><span>or</span>Log in</h2>
<form action="functions/function.php" method="post">
<div class="form-holder">
<input type="email" name="email" class="input" placeholder="Email" />
<input type="password" name="pass" class="input" placeholder="Password" />
</div>
<button name="login" class="submit-btn">Log in</button>
</form>
</div>
</div>
<div class="signup slide-up">
<?php
if(isset($_SESSION['msg'])){?>
<span class="badge badge-danger"><?php
echo $_SESSION['msg'];
}
unset($_SESSION['msg']);
?>
</span>
<h2 class="form-title" id="signup"><span>or</span>Sign up</h2>
<form action="functions/function.php" method="post">
<div class="form-holder">
<input type="text" class="input" name="name" placeholder="Name" />
<input type="email" class="input" name="email" placeholder="Email" />
<input type="password" class="input" name="pass" placeholder="Password" />
</div>
<button name="signup" class="submit-btn">Sign up</button>
</form>
</div>
</div>
<?php
include('layouts/footer.php');
?>