JSFiddle - React, Tailwind, and code Playground

HTML

<!doctype html>
<body ng-app="orionApp">
<div ng-view></div>
</body>

CSS

/* GENERAL */
* {
	font-family:"Source Code Pro Semibold", sans-serif;
	color: #DEDEDE;
}

body {
	background: #121212;
}

/* main.html */

.container {
	width: 940px;
	margin: auto;
}

.center {
	text-align: center;
}

.title {
	margin: 0; padding: 0;
	margin-top: 150px;
	font-weight: bold;
	font-size: 80px;
}

.field {
	padding: 5px;
}

.field:hover {
	background: grey;
}

input {
	color: white;
	border: grey;
	background: inherit;
	cursor: pointer;
}
input:focus {
	outline: none;
}

input.ng-valid.ng-dirty {
	border: 1px green solid;
}

input.ng-invalid.ng-dirty {
	border: 1px red solid;
}

JavaScript

'use strict';

angular.module('orionApp', ['ngRoute'])
	.config(['$routeProvider',function($routeProvider) {
		$routeProvider
		.when('/main', {
			templateUrl: 'views/main.html',
			controller: 'LoginCtrl',
			controllerAs: 'login'
		})
		.when('/contact', {
			templateUrl: 'views/contact.html',
			controller: 'RegisterCtrl',
			controllerAs: 'register'
		});
		//.otherwise({
		//	redirectTo: '/main'
		//});
	
	}])
	.controller('LoginCtrl', function(){
		this.loginInfo = {
			username: undefined,
			password: undefined
		};
	})
	.controller('RegisterCtrl', ['$http', function($http){

		this.registerInfo = {
			name: undefined,
			number: undefined
		};

		this.register = function() {
			var data = {
				name: this.registerInfo.name,
				number: this.registerInfo.number
			};

			$http.post('register.php', data).then(function(data) {
				console.log(data);
			}, function(error) {
				console.error(error);
			});
		};
	}]);