/** @jsx m */

"use strict";
require("./LoginPage.scss");

var _ = require("underscore");
var m = require("mithril");

var OnUnload = require("../utils/OnUnload.js");
var Layout = require("../layouts/FullLayout.js");

var LoginPage = {};

LoginPage.controller = function(options) {
  OnUnload(this);
  this.controllers.layout = new Layout.controller(_.extend({id: "LoginPage"}, options));
};

LoginPage.view = function(ctrl) {
  var content = (
    <div>
      <div>
        <h3>Please use one of your social networking accounts to log into Curate Science:</h3>
        <a href="/auth/google_oauth2">
          <div className="Y3d isa Ndb" title="Login with Google+" role="button" tabindex="0">
            <div className="Ega"></div>
            <div className="tLb">Login with Google+</div>
          </div>
        </a>
      </div>
      <div>
        <h3>Beta by invitation only</h3>
      </div>
    </div>
  );

  return new Layout.view(ctrl.controllers.layout, content);
};

module.exports = LoginPage;

@@ -825,24 +825,50 @@
      %3C/div%3E%0A
+      %3Cbr /%3E%0A      %3Cbr /%3E%0A
       %3Cdiv%3E%0A
@@ -883,13 +883,30 @@
 %3Ch3%3E
+Our 
 Beta 
+is currently 
 by i
@@ -919,20 +919,624 @@
 ion only
-%3C/h3
+. Please sign up to be notified when our public Beta is ready.%3C/h3%3E%0A        %3Cform action=%22http://christianbattista.us7.list-manage.com/subscribe/post?u=d140eca9cfe4a96473dac6ea5&amp;id=fba08af7dd%22 method=%22post%22 target=%22_blank%22%3E%0A          %3Cinput type=%22email%22 value=%22%22 ref=%22email%22 name=%22EMAIL%22 placeholder=%22Enter email address%22 size=%2230%22 required /%3E%0A          %3Cdiv style=%7B%7B%22position%22: %22absolute%22, %22left%22: %22-5000px%22%7D%7D%3E%0A            %3Cinput type=%22text%22 name=%22b_d140eca9cfe4a96473dac6ea5_fba08af7dd%22 value=%22%22 /%3E%0A          %3C/div%3E%0A          %3Cbutton type=%22submit%22 className=%22btn%22%3ERequest invite%3C/button%3E%0A        %3C/form
 %3E%0A      

add register form pack to LoginPage