-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
129 lines (122 loc) · 2.87 KB
/
index.php
File metadata and controls
129 lines (122 loc) · 2.87 KB
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
125
126
127
128
129
<?php
session_start();
$_SESSION['password']='rhkgkr6';
?>
<!DOCTYPE html>
<html>
<head>
<title>Shopping</title>
<link href="https://fonts.googleapis.com/css?family=Righteous" rel="stylesheet">
<style>
html, body {
height: 100%;
}
body {
background-color: #C1D9C2;
margin: 0;
padding: 0;
width: 100%;
display: table;
font-family: 'Righteous';
}
.topmenu{
text-align: left;
background-color: #878885;
height: 50px;
box-shadow: 0 2px 10px 0px grey;
}
.topborder{
height: 10px;
}
.container {
height: 91%;
text-align: center;
display: table-cell;
}
.content {
text-align: center;
display: inline-block;
}
.title {
border: 10px solid;
border-color: #DFEBF9;
background-color: #DFEBF9;
box-shadow: 0 2px 12px 2px grey;
padding-top: 15px;
padding-bottom: 20px;
padding-left: 50px;
padding-right: 50px;
border-radius: 25px;
color: #878885;
font-size: 150px;
margin-bottom: 90px;
margin-top: 100px;
font-weight: bold;
text-shadow: 0px 0px 4px black;
}
.button a{
color: #DFEBF9;
font: bold 15px 'Righteous';
font-weight: 800;
text-decoration: none;
text-shadow: 0 0 4px #878885;
border: 5px solid;
border-color: #DFEBF9;
border-radius:10px;
padding: 12px 30px 12px 30px;
margin: 30px;
margin-top:90px;
font-size: 200%;
transition: color 0.3s, border-color 0.3s, background-color 0.8s;
box-shadow: 0 2px 12px 2px grey;
}
.button a:visited{
color: #DFEBF9;
}
.button a:hover{
border: 5px solid;
color: #401D1B;
border-color: #401D1B;
background-color: lightgrey;
}
.image{
padding-top: 4px;
padding-left: 20px;
float: left;
}
.menu{
color: black;
font-size: 30px;
font-weight: bold;
text-shadow: 0 0 1px black;
float: left;
padding-left: 10px;
padding-top: 5px;
}
</style>
</head>
<body>
<div class="container">
<div class="topborder"></div>
<div class="topmenu">
<div class="image"><a href="/"><img src="cart.png" width=40 height=40></img></a></div>
<a href="/"><div class="menu">Shopping</div></a>
</div>
<div class="content">
<?php
if (isset($_SESSION['username'])){
echo '<script>location.href="/user"</script>';
}
else{
echo '
<div class="title">Shopping</div>
<div class="button">
<a class="button"href="/signin">Sign In</a>
<a href="/signup">Sign Up</a>
</div>';
}
?>
</div>
</div>
</body>
</html>