Created
February 21, 2015 13:11
-
-
Save kn9ts/affffeb15df0dd48adb9 to your computer and use it in GitHub Desktop.
A Login form powered by AngularJS directives [Form Validation]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- SPLASH: LOGIN PAGE --> | |
<section id="signup-login" data-transition="slide"> | |
<article class="active splash"> | |
<img src="./images/html5logos/white.png" class="logo"> | |
<div class="form"> | |
<form name="signup" novalidate ng-submit="signIn(signup)"> | |
<fieldset class="radius-top" data-icon="user"> | |
<input type="text" name="fullNames" ng-model="fullNames" ng-pattern="/^[\w]+(\s)[\w]+$/" ng-class="{'error': !signup.fullNames.$valid}" placeholder="Your username" id="txt-signup-name" value="" required> | |
</fieldset> | |
<fieldset class="radius-bottom shadow" data-icon="phone"> | |
<input type="text" name="phoneNumber" ng-model="phoneNumber" ng-pattern="/^(\+)?[\d]{6,}$/" ng-class="{'error': !signup.phoneNumber.$valid}" placeholder="Your phone number" value="" required> | |
</fieldset> | |
<br> | |
<button class="anchor" id="sign-up" dataviewsection="homepage"> | |
<span class="icon lock"></span> | |
<abbr>Sign In: {{signup.$valid}}</abbr> | |
</button> | |
</form> | |
</div> | |
<span class="copyright text thin">Handcrafted by | |
<span class="text bold">Jhene Knights</span>©2013 | |
</span> | |
</article> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment