LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code




CSS
body {
  background-color: #c1bdba;
  color: #8b989e;
  font-family: Hind;
}

[ng-cloak], .ng-cloak {
  display: none !important;
}

.messages {
  position: absolute;
  bottom: 50px;
  left: -20px;
  background-color: #C2185B;
  padding: 10px;
  overflow: visible;
  text-overflow: ellipsis;
  color: #dff1f5;
  border-radius: 1px;
  box-shadow: 5px 5px 10px #24323d;
  z-index: 2;
}
.messages:after {
  content: "";
  border-width: 19px 0px 0 15px;
  border-style: solid;
  display: block;
  position: absolute;
  border-color: #C2185B transparent transparent transparent;
  z-index: 1;
  bottom: -18px;
}
.messages .field-name {
  text-transform: capitalize;
}

.authentication {
  background-color: #24323d;
  width: 500px;
  margin: 40px auto 0 auto;
  padding: 25px 25px 0 25px;
  box-sizing: border-box;
  box-shadow: 2px 1px 10px #24323d;
}
.authentication .authentication_option-selector {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
}
.authentication .authentication_option-selector button {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 15px 0;
  border: 1px solid #3f4d53;
  background-color: #435259;
  color: #8b989e;
  cursor: pointer;
  text-transform: capitalize;
  font-size: 13px;
  outline: 0;
}
.authentication .authentication_option-selector button.active {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 15px 0;
  border: 1px solid #3f4d53;
  background-color: #435259;
  color: #8b989e;
  cursor: pointer;
  text-transform: capitalize;
  font-size: 13px;
  outline: 0;
  border: 1px solid #19a881;
  background-color: #1ab188;
  color: #dff1f5;
}
.authentication .authentication_heading {
  font-size: 25px;
  color: #dff1f5;
  padding: 30px 0;
  text-align: center;
  text-transform: capitalize;
  font-family: Hind;
}

.form .form_row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
}
.form .form_row.form_row-split .form_form-group:first-child {
  margin-right: 10px;
}
.form .form_row.form_row-split .form_form-group:last-child {
  margin-left: 10px;
}
.form .form-required {
  color: #1ab188;
}
.form .form_label {
  text-transform: capitalize;
  position: absolute;
  top: 7px;
  left: 10px;
  font-family: Hind;
  cursor: text;
  opacity: 1;
  -webkit-transition: 0.1s linear opacity;
  transition: 0.1s linear opacity;
}
.form .form_label.ng-hide {
  opacity: 0;
}
.form .form_form-group {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  margin-bottom: 25px;
}
.form .form_input {
  border: 1px solid #8b989e;
  background-color: #24323d;
  outline: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  color: #8b989e;
}
.form .form_input:focus {
  border-color: #1ab188;
}
.form .form_btn-submit {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 15px 0;
  border: 1px solid #3f4d53;
  background-color: #435259;
  color: #8b989e;
  cursor: pointer;
  text-transform: capitalize;
  font-size: 13px;
  outline: 0;
  border: 1px solid #19a881;
  background-color: #1ab188;
  color: #dff1f5;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: bold;
}

.signUp.ng-enter,
.logIn.ng-enter {
  -webkit-transition: 0.5s linear all;
  transition: 0.5s linear all;
  opacity: 0;
}
.signUp.ng-enter-active,
.logIn.ng-enter-active {
  opacity: 1;
}
JS
( function ( angular ) {
    
    "use strict";
    
    // Module definition
    angular
        .module( 'login', [ 'ngAnimate', 'ngMessages' ] );
    
    // SignUpController
    ( function ( angular ) {
        
        angular
            .module( 'login' )
            .controller( 'DummyAuthenticationController', DummyAuthenticationController );
        
        DummyAuthenticationController.$inject = [];
        
        function DummyAuthenticationController () {
            
            var vm = this;
            
            vm.onSubmit = onSubmit;
            
            function onSubmit ( data ) {
                console.dir( data );
            }
            
        }
        
    } ( angular ) );

    // RegisterController
    ( function ( angular ) {
        
        angular
            .module( 'login' )
            .controller( 'RegisterSelector', RegisterSelector );

        RegisterSelector.$inject = [];

        function RegisterSelector () {
            
            var vm = this;
            
            vm.isSignUp = true;
            vm.isLogIn = false;
            
            vm.openTab = openTab;
            
            function openTab ( name ) {
                vm.isSignUp = ( name === 'signUp' );
                vm.isLogIn = ( name === 'logIn' );
            }

        }
        
    } ( angular ) );
    
    // Capitalize.filter
    ( function ( angular ) {
        
        'use strict';
        
        angular
            .module( 'login' )
            .filter( 'capitalize', capitalize );
        
        function capitalize () {
            return function ( text ) {
                return text.replace( /[^\s]+/g, function( word ) {
                      return word.replace( /^./, function( first ) {
                        return first.toUpperCase();
                      } );
                    } );
            }
        }
        
    } ( angular ) );
    
    
} ( angular ) );
Host Instantly Drag and Drop Website Builder

 

Term
Wed, 11/29/2017 - 11:27

Related Codes

Pen ID
Pen ID
Pen ID