Sign in Card

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

Sign in card build using react.

Thumbnail
This awesome code was written by jmanhart, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright jmanhart ©
  • HTML
  • CSS
  • JavaScript
    <div id="reactCard" />

/*Downloaded from https://www.codeseek.co/jmanhart/sign-in-card-mRJvLb */
    html, body
  height: 100%
  
body
  background: #333
  display: flex
  justify-content: center
  align-items: center
  font-family: Helvetica Neue
  
h1
  font-size: 1em
  padding-bottom: 0.5em
  color: black
  text-align: left
  letter-spacing: 0.1em
  font-weight: bold
  
h2
  font-size: 0.75em
  letter-spacing: 0.05em
  line-height: 1.5em
  color: #9a9a9a
  text-align: left
p
  font-size: 0.75em
  text-align: left
  color: #aaa
  
.fa
  font-size: 1.5em
  
input
  background-color: rgba(0,0,0,0.0)
  padding: 1em 0em 1em 1em 
  font-family: FontAwesome "Open Sans"
  box-sizing: border-box
  width: 100%
  border: 1px solid #cecece
  border-radius: 4px
  margin-bottom: 0.75em
  margin-top: 0.5em
  
form
  background-color: rgba(0, 0, 0, 0.0)
  margin: 1em 0em 1em 0em
  
  
.cardContainer
  background-color: rgba(255, 255, 255, 1)
  padding: 1em
  width: 20em
  height: 20em
  display: flex
  justidy-content: center
  align-items: center
  flex-direction: column
  
.tabContainer
  background-color: rgba(0,0,0,0.15)
  height: 3em
  width: 100%

.card
  background-color: rgba(255, 255, 255, 1)
  border-radius: 4px
  padding: 2em 2em 1em 2em 
  height: auto
  width: 20em
  
.btn--submit
  background-color: #33b6cb
  color: white
  font-weight: bold
  margin-top: 2em
  height: 4em
    

.signup-choices-title
  background-color: rgba(0, 0, 0, 0.0)
  display: flex
  justify-content: space-between
  align-items: center
  height: 2em
  margin: 1em 0em
  
  
.half-line
  height: 1px
  background: #cecece
  width: 25%
  
.signup-choices
  display: flex
  flex-direction: row
  align-items: center
  justify-content: space-between
  background-color: rgba(0, 0, 0, 0.0)
  .choice-container
    border: 1px solid #cecece
    border-radius: 4px
    height: 3em
    width: 30%
    display: flex
    justify-content: center
    align-items: center
    background-color: rgba(0, 0, 0, 0.0)



/*Downloaded from https://www.codeseek.co/jmanhart/sign-in-card-mRJvLb */
    class ReactCard extends React.Component {
  constructor(){
    super();
  }
  render() {
    return (
      <div className="card">
        <h1>TRY ALL THESE FEATURES FREE</h1>
        <h2>Get started today, no downloads or credit card required.</h2>
        <form>
          <input type="text" placeholder="First Name"/>
          <input type="text" placeholder="Last Name"/>
          <input type="text" placeholder="Email"/>
          <input type="text" placeholder="Password"/>
          <input type="submit" placeholder="Submit Button" className="btn--submit"/>
          <div className="signup-choices-title">
            <div className="half-line" />
            <p>Or SignUp with</p>
            <div className="half-line" />
          </div>
          <div className="signup-choices">
            <div className="choice-container" id="facebook">
              <i className="fa fa-facebook"></i>
            </div>
            <div className="choice-container" id="twitter">
              <i className="fa fa-twitter"></i>
            </div>
            <div className="choice-container" id="github">
              <i className="fa fa-github"></i>
            </div>
          </div>
          
        </form>
      </div>
    )
  }
}

React.render(<ReactCard />, document.getElementById('reactCard'));

Comments