Commit 6e0de496 authored by Krishna Teja Attipatla's avatar Krishna Teja Attipatla
Browse files

Update create.ejs

parent 10a06c00
Pipeline #33051 passed with stage
in 25 seconds
<!DOCTYPE html>
<html>
</html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>ONLINE-BLOOD-BANK</title>
<style>
body {background-image: url("https://cpb-us-e1.wpmucdn.com/news-network.rice.edu/dist/c/2/files/2012/09/0914_BLOOD_lg.jpg"); ; font-family: Arial, Helvetica, sans-serif;}
body {
font-family: "Lato", sans-serif;
}
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: white;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;
}
.sidenav a:hover {
color: #f1f1f1;
}
.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
#main {
transition: margin-left .5s;
padding: 16px;
}
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
.button {
background-color: orange;
color: white;
text-align: center;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.button2:hover {
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
background-color: orange;
border: none;
color: white;
margin: 3px 1px;
cursor: pointer;
}
/* Full-width input fields */
input[type=text], input[type=password] {
width: 100%;
......@@ -20,12 +94,13 @@ input[type=text], input[type=password] {
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
padding: 14px 200px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 40%;
}
}
button:hover {
opacity: 0.8;
......@@ -35,7 +110,7 @@ button:hover {
.cancelbtn {
width: auto;
padding: 10px 18px;
background-color: #f44336;
}
/* Center the image and position the close button */
......@@ -70,7 +145,7 @@ span.psw {
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgb(1,1,1); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
padding-top: 60px;
}
......@@ -129,7 +204,7 @@ a:link, a:visited {
}
a:hover, a:active {
background-color: red ;
background-color: black;
}
@-webkit-keyframes animatezoom {
......@@ -153,51 +228,131 @@ a:hover, a:active {
}
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: -webkit-sticky; /* Safari */
position: sticky;
top: 0;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
.active {<body>
background-color: #4CAF50;
}
</style>
</head>
<body>
<center><h1 class="pading" style="color: pink"> WELCOME TO ONLINE-BLOOD-BANK </h1></center>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
<br>
<center><a onclick="document.getElementById('id01').style.display='block'">Login</a></center>
<a href="/registration" target="_blank">Sign up</a>
<a href="#">About</a>
</div>
<div id="main">
<span style="font-size:30px; cursor:pointer" onclick="openNav()">&#9776;</span>
</div>
<h2 style="padding-right: 130px">ONLINE BLOOD BANK </h2>
<a href="/reciever" target="_blank" class="ml-auto"> Need Blood?</a>
</nav>
<h2 class="pading1" ><center><button onclick="document.getElementById('id01').style.display='block'" style="width:auto;">Login</button></center>
<center> <h5> <a href="/registration" target="_blank"> SIGN UP </a></h5> </center> </h2>
<meta name="viewport" content="width=device-width, initial-scale=1">
<center><h1 class="pading" style="color: pink"> WELCOME TO ONLINE-BLOOD-BANK </h1></center>
<center><button style="background-color: red;" > GET STARTED </button></center>
<div id="id01" class="modal">
<form class="modal-content animate" action="/action_page.php">
<form class="modal-content animate" action="/action_page.php">
<div class="imgcontainer">
<span onclick="document.getElementById('id01').style.display='none'" class="close" title="Close Modal">&times;</span>
<img src="https://images.fineartamerica.com/images-medium-large-5/plus-icon-glassy-red-round-button-faysal-ahamed.jpg" alt="Avatar" class="avatar">
<img src="https://images.fineartamerica.com/images-medium-large-5/plus-icon-glassy-red-round-button-faysal-ahamed.jpg" alt="Avatar" class="avatar">
</div>
</div>
<div class="container">
<div class="container">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname" required>
<br><br>
<input type="text" placeholder="Enter Username" title="must contain at least 8 or more characters" minlength = "8" maxlength = "20" name="uname" required>
<br><br>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<input type="password" placeholder="Enter Password" name="psw" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="Must contain at least one number,one uppercase, one lowercase letter,one special character and at least 8 or more characters" maxlength = "15" required>
<br>
<br>
<button type="submit">Login</button>
<br>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me
<input type="checkbox" name="remember"> Remember me</input>
</label>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
<span class="psw">Forgot password?</a></span>
</div>
</form>
</div>
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft= "0";
}
</script>
<script>
// Get the modal
var modal = document.getElementById('id01');
// When the user clicks anywhere outside of the modal, close it
// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment