changed the look of the login page
This commit is contained in:
		
							
								
								
									
										64
									
								
								login.php
									
									
									
									
									
								
							
							
						
						
									
										64
									
								
								login.php
									
									
									
									
									
								
							@@ -1,3 +1,55 @@
 | 
			
		||||
<!doctype html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 | 
			
		||||
    <meta name="description" content="">
 | 
			
		||||
    <meta name="author" content="">
 | 
			
		||||
 | 
			
		||||
    <title>Login Page</title>
 | 
			
		||||
 | 
			
		||||
    <!-- Bootstrap core CSS -->
 | 
			
		||||
    <link href="ressources/css/bootstrap.min.css" rel="stylesheet">
 | 
			
		||||
 | 
			
		||||
    <!-- Custom styles for this template -->
 | 
			
		||||
    <link href="ressources/css/page.css" rel="stylesheet">
 | 
			
		||||
  </head>
 | 
			
		||||
 | 
			
		||||
  <body>
 | 
			
		||||
 | 
			
		||||
    <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
 | 
			
		||||
      <a class="navbar-brand" href="#">loginpagefoo</a>
 | 
			
		||||
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
 | 
			
		||||
        <span class="navbar-toggler-icon"></span>
 | 
			
		||||
      </button>
 | 
			
		||||
 | 
			
		||||
      <div class="collapse navbar-collapse" id="navbarsExampleDefault">
 | 
			
		||||
        <ul class="navbar-nav mr-auto">
 | 
			
		||||
          <li class="nav-item active">
 | 
			
		||||
            <a class="nav-link" href="login.php">Login <span class="sr-only">(current)</span></a>
 | 
			
		||||
          </li>
 | 
			
		||||
          <li class="nav-item">
 | 
			
		||||
            <a class="nav-link" href="register.php">Register</a>
 | 
			
		||||
          </li>
 | 
			
		||||
             <li class="nav-item dropdown">
 | 
			
		||||
            <a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Functions</a>
 | 
			
		||||
            <div class="dropdown-menu" aria-labelledby="dropdown01">
 | 
			
		||||
              <a class="dropdown-item" href="profile.php">Profile</a>
 | 
			
		||||
              <a class="dropdown-item" href="#">Another action</a>
 | 
			
		||||
              <a class="dropdown-item" href="#">Something else here</a>
 | 
			
		||||
            </div>
 | 
			
		||||
          </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
        <form class="form-inline my-2 my-lg-0">
 | 
			
		||||
          <a href="logout.php"><button class="btn btn-outline-warning my-2 my-sm-0" type="submit">Logout</button></a>
 | 
			
		||||
        </form>
 | 
			
		||||
      </div>
 | 
			
		||||
    </nav>
 | 
			
		||||
 | 
			
		||||
    <main role="main" class="container">
 | 
			
		||||
 | 
			
		||||
      <div class="starter-template">
 | 
			
		||||
 | 
			
		||||
<?php 
 | 
			
		||||
session_start();
 | 
			
		||||
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
 | 
			
		||||
@@ -54,5 +106,17 @@ if(isset($errorMessage)) {
 | 
			
		||||
<a href="forgotpass.php"><button class="btn btn-warning">I forgot my password</button></a>
 | 
			
		||||
<br /> <br />
 | 
			
		||||
<a href="register.php"><button class="btn btn-info">I need an account first. Please let me register</button></a>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
</main><!-- /.container -->
 | 
			
		||||
 | 
			
		||||
<!-- Bootstrap core JavaScript
 | 
			
		||||
================================================== -->
 | 
			
		||||
<!-- Placed at the end of the document so the pages load faster -->
 | 
			
		||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
 | 
			
		||||
<script>window.jQuery || document.write('<script src="../../../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
 | 
			
		||||
<script src="../../../../assets/js/vendor/popper.min.js"></script>
 | 
			
		||||
<script src="../../../../dist/js/bootstrap.min.js"></script>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								ressources/css/page.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								ressources/css/page.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
body {
 | 
			
		||||
  padding-top: 5rem;
 | 
			
		||||
}
 | 
			
		||||
.starter-template {
 | 
			
		||||
  padding: 3rem 1.5rem;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user