login

In this example below you will see how to do a login with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by isaychris, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright isaychris ©

Technologies

  • HTML
  • CSS
  • JavaScript
    <!DOCTYPE html>
<html lang="en">

<head>
  <title> Sinkd - Login </title>
  <meta charset="utf-8">
  <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  <link href="css/login.css" rel="stylesheet">
</head>

<body>
  <div class="nav"></div>
  <div class="container">
    <div class="wrapper">
      <h1 class="center-text">Sinkd</h1>
      <form action="main.html" method="post">
	<!-- will go to main on authenticated login --> 
        <input type="email" class="inputData" placeholder="Email" onfocus="placeholder=''" onblur="placeholder='Email'"><br><br>
        <input type="password" class="inputData" placeholder="Password" onfocus="placeholder=''" onblur="placeholder='Password'"><br><br>
        <button type="submit" class="loginButton">Login</button>
      </form>
      <p class="center-text" id="join">Not a member? <a href="signup.html">Join now!</a></p>
    </div>
  </div>
</body>
</html>


/*Downloaded from https://www.codeseek.co/isaychris/login-BwrNLz */
    img.logo {
  padding: 15px;
  height: 30px;
}

a {
  color: #757575;
}

#join {
  font-size: 13px;
  color: #757575;
}

body {
  margin: 0;
  font-family: Roboto !important;
  background: url(https://github.com//images/modules/site/heroes/simple-codelines.svg) #2b3137;
  background-size: cover;
}
.nav {
  height: 60px;
  background-color: #24292e;
}
.inputData {
  width: 190px;
  height: 30px;
  border-radius: 5px;
  border-color: #ddd;
  border-style: solid;
  border-width: 1px;
  text-indent: 10px;
}
.wrapper {
  margin: auto;
  width: 190px;
  padding: 10px 40px 20px 40px;
}
.container {
  margin-top: 100px;
  margin-right: auto;
  margin-left: auto;
  width: 300px;
  border-radius: 15px;
  background-color: #f5f5f5;
  border-color: #ddd;
  border-style: solid;
  border-width: 1px;
}
.center-text {
  text-align: center;
}
.loginButton {
  width: 190px;
  border-style: solid;
  border-radius: 5px;
  border-width: 1px;
  height: 40px;
  background-color: #59b2e0;
  border-color: #59b2e6;
  color: white;
}


/*Downloaded from https://www.codeseek.co/isaychris/login-BwrNLz */
    

Comments