-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
124 lines (107 loc) · 2.4 KB
/
menu.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
session_start();
include("connect.php");
if(!isset($_SESSION["username"])){
header('Location: welcome.html');
exit();
}
$_SESSION['message']="";
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Home | Clippy</title>
<link href='https://fonts.googleapis.com/css?family=Sofia' rel='stylesheet'>
<link rel="icon" type="image/png" href="assets/webnote.png">
<style type="text/css">
html,body{
margin: 0;
padding: 0;
background: #1A1A1D;
font-family: 'Sofia';
}
.title{
text-align: center;
background: #111111;
color: yellow;
font-family: 'Sofia';
letter-spacing: 0.4em;
font-size: 4em;
padding: 5px;
}
.tagline{
text-align: center;
color: yellow;
font-family: 'Sofia';
letter-spacing: 0.2em;
font-size: 2em;
padding: 5px;
margin-bottom: 10%;
}
#noteButtonContainer{
display: inline-block;
background: #111111;
color: orange;
font-size: 2.5em;
padding: 1.1%;
margin: 2%;
margin-left: 22%;
width: 7%;
}
#noteButtonContainer:hover{
transform: scale(1.2);
}
#taskButtonContainer{
display: inline-block;
background: #111111;
color: orange;
font-size: 2.5em;
padding: 1.3%;
padding-right: 0.8%;
margin: 2%;
margin-left: 10%;
width: 11%;
}
#taskButtonContainer:hover{
transform: scale(1.2);
}
#logoutButtonContainer{
display: inline-block;
background: #111111;
color: orange;
font-size: 2.5em;
padding: 1.2%;
margin: 2%;
margin-left: 10%;
width: 7%;
}
#logoutButtonContainer:hover{
transform: scale(1.2);
}
.sessionDisplay{
color: orange;
font-family: 'Comic Sans MS';
letter-spacing: 0.2em;
font-size: 1.2em;
margin-left: 80%;
margin-top: 8%;
}
.userDisplay{
margin-bottom: 3%;
}
</style>
</head>
<body>
<a onclick="home()"><h1 class="title">Clippy</h1></a>
<div class="tagline"> A web app to store notes and to-do's</div>
<span id="noteButtonContainer"><a onclick="notes()">Notes</a></span>
<span id="taskButtonContainer"><a onclick="tasks()">to-do lists</a></span>
<span id="logoutButtonContainer"><a onclick="logout()">Logout</a></span>
<div class="sessionDisplay">
<div class="userDisplay"><?php echo "User : ".$_SESSION["username"]; ?></div>
<div><?php echo "E-Mail : ".$_SESSION["email"]; ?></div>
</div>
<script src="functions.js"></script>
</body>
</html>