Permalink
Browse files

init

  • Loading branch information...
1 parent 7a1921f commit 34d049d63f239e3dd6a5ba5e734f8cf2467313b3 @kevohagan committed Jan 23, 2014
View
@@ -0,0 +1,4 @@
+.meteor/local
+.meteor/meteorite
+*.sublime-project
+*.sublime-workspace
View
@@ -13,5 +13,5 @@ ogno-admin
accounts-password
accounts-ui
simple-schema
-event-hooks
collection2
+less
@@ -0,0 +1,80 @@
+/*!
+ * classie - class helper functions
+ * from bonzo https://github.com/ded/bonzo
+ *
+ * classie.has( elem, 'my-class' ) -> true/false
+ * classie.add( elem, 'my-new-class' )
+ * classie.remove( elem, 'my-unwanted-class' )
+ * classie.toggle( elem, 'my-class' )
+ */
+
+/*jshint browser: true, strict: true, undef: true */
+/*global define: false */
+
+( function( window ) {
+
+'use strict';
+
+// class helper functions from bonzo https://github.com/ded/bonzo
+
+function classReg( className ) {
+ return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
+}
+
+// classList support for class management
+// altho to be fair, the api sucks because it won't accept multiple classes at once
+var hasClass, addClass, removeClass;
+
+if ( 'classList' in document.documentElement ) {
+ hasClass = function( elem, c ) {
+ return elem.classList.contains( c );
+ };
+ addClass = function( elem, c ) {
+ elem.classList.add( c );
+ };
+ removeClass = function( elem, c ) {
+ elem.classList.remove( c );
+ };
+}
+else {
+ hasClass = function( elem, c ) {
+ return classReg( c ).test( elem.className );
+ };
+ addClass = function( elem, c ) {
+ if ( !hasClass( elem, c ) ) {
+ elem.className = elem.className + ' ' + c;
+ }
+ };
+ removeClass = function( elem, c ) {
+ elem.className = elem.className.replace( classReg( c ), ' ' );
+ };
+}
+
+function toggleClass( elem, c ) {
+ var fn = hasClass( elem, c ) ? removeClass : addClass;
+ fn( elem, c );
+}
+
+var classie = {
+ // full names
+ hasClass: hasClass,
+ addClass: addClass,
+ removeClass: removeClass,
+ toggleClass: toggleClass,
+ // short names
+ has: hasClass,
+ add: addClass,
+ remove: removeClass,
+ toggle: toggleClass
+};
+
+// transport
+if ( typeof define === 'function' && define.amd ) {
+ // AMD
+ define( classie );
+} else {
+ // browser global
+ window.classie = classie;
+}
+
+})( window );
View
@@ -12,4 +12,5 @@ Meteor.startup(function () {
});
-Meteor.subscribe('fotos');
+Meteor.subscribe('fotos');
+Meteor.subscribe('cars');
View
@@ -36,9 +36,12 @@ Router.map(function () {
});
+
+
this.route('adminRoute', {
path: '/admin',
- template:'ognoAdminMenu',
+ layoutTemplate:'ognoAdminLayout',
+ template:'ognoAdminOverview',
before: function(){
if(!Meteor.userId()){
this.render("entrySignIn");
@@ -49,4 +52,10 @@ Router.map(function () {
}
});
-});
+});
+
+
+BasicController = RouteController.extend({
+
+
+})
@@ -1,42 +1,41 @@
<template name='entrySignIn'>
- <div id="entrySignInPage" class="ui page one column">
- <div class="ui grid">
- <div class="column wide ten center">
+ <div id="entrySignInPage" class="ui page ">
+ <div class="ui grid one column center aligned ">
+ <div class="column wide six ">
{{#if logo}}
- <img src="{{logo}}" alt="Logo" class="ui large image">
+ <a href="/" class="center aligned">
+ <img src="{{logo}}" alt="Logo" class="ui small rounded image entry-logo">
+ </a>
+ {{else}}
+ <a href="/" class="center aligned">
+ <i class="huge green circular user icon entry-icon"></i>
+ </a>
{{/if}}
- <div class="ui icon message">
- <i class="inbox icon"></i>
- <div class="content">
- <div class="header">
- Have you heard about our mailing list?
- </div>
- <p>Get all the best inventions in your e-mail every day. Sign up now!</p>
- </div>
- </div>
+ <form class="ui form segment" id="signIn">
- <form class="ui form segment dark stripe" id="signIn">
- <div class="field">
- <label>Email</label>
- <input name="email" placeholder="{{emailPlaceholder}}" value='{{email}}' type="{{emailInputType}}">
- </div>
- <div class="field">
- <label>Password</label>
- <input name="password" type="password" class="form-control" value='{{password}}' placeholder="Password">
- </div>
- <div class="inline field">
- <div class="ui checkbox">
- <input type="checkbox">
- <label>I agree to the terms and conditions</label>
- </div>
- </div>
- <button type="submit" class="ui blue submit button">Sign in</button>
- </form>
+ <h3 class="ui header">Log In</h3>
- </div>
+ <div class="field">
+ <label>Email</label>
+ <input name="email" placeholder="{{emailPlaceholder}}" value='{{email}}' type="{{emailInputType}}">
+ </div>
+
+ <div class="field">
+ <label>Password</label>
+ <input name="password" type="password" class="form-control" value='{{password}}' placeholder="Password">
+ </div>
+
+ <div class="inline field">
+ <a href="/forgot-password"><h5>Forgot password?</h5></a>
+ </div>
+
+ <button type="submit" class="ui blue submit button">Sign in</button>
+ </form>
+
+ </div>
</div>
</div>
@@ -0,0 +1,7 @@
+.entry-logo {
+ margin: 0 auto;
+}
+
+.entry-icon {
+ margin: 0!important;
+}
@@ -77,53 +77,79 @@
</div>
-<div class="dark stripe">
- <div class="ui page grid">
- <div class="column">
- <h2 class="ui huge inverted center aligned icon header">
- <i class="circular emphasized inverted teal chat outline icon"></i>
- {{#if logo}}
- <img src="{{logo}}" alt="Home" class="ui medium image icon">
- {{/if}}
- <div class="content">Have a conversation with your components<div class="sub header">Semantic gives you a variety of UI components with real-time debug output, letting your code tell you what its doing.</div>
- </div>
- </h2>
- <div class="ui inverted horizontal section divider">
- <i class="circular heart icon"></i>
- </div>
+ <div id="entrySignInPage" class="ui page ">
+ <div class="ui grid one column center aligned ">
+ <div class="column wide six ">
+ {{#if logo}}
+ <a href="/" class="center aligned">
+ <img src="{{logo}}" alt="Logo" class="ui small rounded image entry-logo">
+ </a>
+ {{else}}
+ <a href="/" class="center aligned">
+ <i class="huge green circular user icon entry-icon"></i>
+ </a>
+ {{/if}}
- <div class="ui form segment">
- <div class="two fields">
- <div class="field">
- <label>First Name</label>
- <input placeholder="First Name" type="text">
- </div>
- <div class="field">
- <label>Last Name</label>
- <input placeholder="Last Name" type="text">
- </div>
- </div>
- <div class="field">
- <label>Username</label>
- <input placeholder="Username" type="text">
- </div>
- <div class="field">
- <label>Password</label>
- <input type="password">
- </div>
- <div class="inline field">
- <div class="ui checkbox">
- <input type="checkbox">
- <label>I agree to the terms and conditions</label>
- </div>
- </div>
- <div class="ui blue submit button">Submit</div>
- </div>
+ <form class="ui form segment {{signupClass}}" id="signUp">
+ <h3 class="ui header">Create an Account</h3>
- </div>
+ {{#if showUsername}}
+ <div class="field">
+ <!--<label>Username</label>-->
+ <input name="username" type="string" placeholder="Username" value=''>
+ </div>
+ {{/if}}
+ {{#if showEmail}}
+ <div class="field">
+ <!-- <label>Email Address</label> -->
+ <input name="email" placeholder="Email Address" type="email" value=''>
+ </div>
+ {{/if}}
+
+ <div class="field">
+ <!-- <label>Password</label> -->
+ <input name="password" type="password" placeholder="Password" value=''>
+ </div>
+
+
+ {{#if showSignupCode}}
+ <div class="field">
+ <!--<label>Signup Code</label>-->
+ <input name="signupCode" type="string" placeholder="Signup Code" value=''>
+ </div>
+ {{/if}}
+
+ <div class="inline field">
+ <a href="/forgot-password"><h5>Forgot password?</h5></a>
+ </div>
+
+ <button type="submit" class="ui green submit button">Sign Up</button>
+ </form>
+
+ {{#if both}}
+ <p class="entry-agreement">By clicking Sign up, you agree to our
+ <a href="{{privacyUrl}}">Privacy Policy</a> and
+ <a href="{{termsUrl}}">Terms of Use</a>.
+ </p>
+ {{else}}
+ {{#unless neither}}
+ <p class="entry-agreement">By clicking Sign up, you agree to our
+ {{#if privacyUrl}}<a href="{{privacyUrl}}">Privacy Policy</a>.{{/if}}
+ {{#if termsUrl}}<a href="{{termsUrl}}">Terms of Use</a>.{{/if}}
+ </p>
+ {{/unless}}
+ {{/if}}
+
+ <h2 class="ui header">
+ <i class="settings icon"></i>
+ Account Settings
+ </h2>
+
+
+ </div>
+ </div>
</div>
-</div>
</template>
Oops, something went wrong.

0 comments on commit 34d049d

Please sign in to comment.