Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CS2102-section-5-Team-2/login.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
57 lines (57 sloc)
1.46 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Login Page</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f4f4f4; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; | |
} | |
.login-container { | |
background-color: white; | |
padding: 20px; | |
border-radius: 5px; | |
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); | |
} | |
.login-container h2 { | |
text-align: center; | |
} | |
.login-container input[type="text"], | |
.login-container input[type="password"], | |
.login-container input[type="submit"] { | |
width: 100%; | |
padding: 10px; | |
margin-bottom: 10px; | |
border-radius: 5px; | |
border: 1px solid #ccc; | |
box-sizing: border-box; | |
} | |
.login-container input[type="submit"] { | |
background-color: #4caf50; | |
color: white; | |
cursor: pointer; | |
} | |
.login-container input[type="submit"]:hover { | |
background-color: #45a049; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="login-container"> | |
<h2>Login</h2> | |
<form action="your_server_script_to_handle_login.php" method="post"> | |
<input type="text" name="username" placeholder="Username" required> | |
<input type="password" name="password" placeholder="Password" required> | |
<input type="submit" value="Login"> | |
</form> | |
</div> | |
</body> | |
</html> |