Visual improvements

This commit is contained in:
William Miceli
2019-12-03 23:53:43 -05:00
parent e93827e46f
commit 2b11c3339a
6 changed files with 34 additions and 19 deletions

View File

@@ -1,5 +1,6 @@
<?php
require 'common.php';
require 'loginRequired.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

View File

@@ -1,5 +1,5 @@
<svg height="45" width="100%">
<a xlink:href="#">
<text x="45%" y="40" font-size="40" fill="white">friendbook</text>
<text x="45%" y="40" font-size="40" font-family="Arial, sans-serif" fill="white">friendbook</text>
</a>
</svg>

Before

Width:  |  Height:  |  Size: 144 B

After

Width:  |  Height:  |  Size: 176 B

View File

@@ -14,7 +14,7 @@
$_SESSION['loggedInUser'] = $_POST['login_username'];
unset($_SESSION['loginError']);
// Move onto landing page
// header('Location: /landingPage.html');
header('Location: /messages.php');
}else{
// No matching users found, send user an error message
$_SESSION['loginError'] = 'Invalid Username or Password';
@@ -46,11 +46,10 @@
</div>
<h2><font color="white">Please Login</h2>
<form action="" method="post">
User&colon;
<input type="text" name="login_username" placeholder="Username"><br />
Password&colon;
<input type="password" name="login_password" placeholder="Password"><br />
<input type="submit">
User&colon; <input type="text" name="login_username" placeholder="Username"><br />
Password&colon; <input type="password" name="login_password" placeholder="Password"><br />
<br />
<input type="submit" class="button">
</form>
</body>
</html>

View File

@@ -0,0 +1,6 @@
<?php
// If session has expired, or the user has not logged in
if(!isset($_SESSION['loggedInUser'])){
header('Location: /login.php');
}
?>

View File

@@ -1,5 +1,6 @@
<?php
require 'common.php';
require 'loginRequired.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

View File

@@ -1,31 +1,39 @@
body {
background-color: #3B5998;
color: white;
font-family: Arial, sans-serif;
}
.button a {
/* font: bold 11px Arial;*/
input {
padding: 3px;
margin: 2px;
}
.button {
font-weight: bold;
font-size: 16px;
text-align: center;
text-decoration: none;
background-color: #EEEEEE;
background-color: #FAFAFA;
color: #333333;
padding: 2px 6px 2px 6px;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: 1px solid #CCCCCC;
padding: 4px 12px 4px 12px;
border-radius: 5px;
border-top: 2px solid #CCCCCC;
border-right: 3px solid #333333;
border-bottom: 2px solid #333333;
border-left: 3px solid #CCCCCC;
}
.topNavBar {
background-color: rgb(236, 236, 236);
background-color:#FAFAFA;
overflow: hidden;
}
.topNavBar a {
float: left;
color: #363636;
color: #333333;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topNavBar a:hover {
background-color: rgb(44, 48, 255);
color: rgb(255, 255, 255);
background-color: #88BBFF;
color: #FFF;
}