-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
50 lines (48 loc) · 2.3 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
<!-- index.php -->
<?php
require_once 'config.php';
require_once 'functions.php';
if (is_logged_in()) {
redirect('dashboard.php');
}
?>
<!DOCTYPE html>
<html lang="en" class="h-full bg-gray-100">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online To-Do List</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
</head>
<body class="h-full">
<div class="min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-md w-full space-y-8">
<div>
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">
Welcome to Online ToDO List
</h2>
<p class="mt-2 text-center text-sm text-gray-600">
Organize your tasks efficiently
</p>
</div>
<div class="mt-8 space-y-6">
<div class="flex items-center justify-center space-x-4">
<a href="login.php" class="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
<span class="absolute left-0 inset-y-0 flex items-center pl-3">
<i class="fas fa-sign-in-alt text-indigo-500 group-hover:text-indigo-400"></i>
</span>
Login
</a>
<a href="register.php" class="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-indigo-700 bg-indigo-100 hover:bg-indigo-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
<span class="absolute left-0 inset-y-0 flex items-center pl-3">
<i class="fas fa-user-plus text-indigo-500 group-hover:text-indigo-400"></i>
</span>
Register
</a>
</div>
</div>
</div>
</div>
</body>
</html>