Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a login and sign up #1031

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<li><a class="nav-link" href="./contact.html">Contacts</a></li>
<li><a class="nav-link" href="./syllabus.html">Syllabus</a></li>
<li><a class="nav-link" href="./event.html">Events</a></li>
<li><a class="nav-link" href="login.html">Register</a></li>

<li>
<form id="search-form" action="#" method="GET">
Expand Down Expand Up @@ -273,6 +274,7 @@ <h3>Links</h3>
<li><a href="about.html">About us</a></li>
<li><a href="">Features</a></li>
<li><a href="contact.html">Contact</a></li>

</ul>
</div>
<div class="col col4">
Expand Down
16 changes: 16 additions & 0 deletions login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
body {
background: #fafafa;
}
#myForm {
min-height: 100vh;
padding-top: 8%;
padding-bottom: 8%;
}
.my-tab-content {
background: #fff;
}
.my-nav-item {
font-weight: 500;
text-align: center;
width: 50%;
}
101 changes: 101 additions & 0 deletions login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="login.css">
<title>Hello, world!</title>
</head>
<body>
<div id="myForm">
<div class="container">
<div class="row">
<div class="col">
<h1 class="h2 font-weight-normal text-center mb-3"></h1>
</div>
</div>

<div class="row justify-content-center">
<div class="col-md-6 col-sm-8">
<!-- nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="my-nav-item nav-item">
<a class="nav-link active" data-toggle="tab" href="#loginForm">Log in</a>
</li>
<li class="my-nav-item nav-item">
<a class="nav-link" data-toggle="tab" href="#registerForm">Register</a>
</li>
</ul>

<!-- tab panes -->
<div class="my-tab-content tab-content border border-top-0 p-4">
<div id="loginForm" class="tab-pane active">
<form name="fLogin">
<div class="form-group">
<label for="username">Username or Email Address</label>
<input type="text" class="form-control" id="username" name="username">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="form-row">
<div class="col">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="remember">
<label class="form-check-label" for="remember">Remember Me</label>
</div>
</div>
<div class="col text-right">
<button type="submit" class="btn btn-primary">Log in</button>
</div>
</div>
<div class="form-row mt-4">
<div class="col text-center">
<a href="#" title="Forgot password">Lost your password?</a>
</div>
</div>
</form>
</div>
<div id="registerForm" class="container tab-pane fade">
<form name="fRegister">
<div class="form-group">
<label for="fullname">Full Name</label>
<input type="text" class="form-control" id="fullname" name="fullname">
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" class="form-control" id="email" name="email">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="form-group">
<label for="repassword">Confirm Password</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="form-row">
<div class="col text-right">
<button type="submit" class="btn btn-primary">Register</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>