Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
splendido committed Sep 20, 2014
0 parents commit a84f256
Show file tree
Hide file tree
Showing 37 changed files with 583 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.build*
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- "0.10.29"
before_install:
- "curl -L http://git.io/ejPSng | /bin/sh"
env:
- TEST_COMMAND=meteor
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 splendido

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[![Build Status](https://travis-ci.org/splendido/accounts-templates-bootstrap.svg?branch=master)](https://travis-ci.org/splendido/accounts-templates-bootstrap)
accounts-templates-bootstrap
============================

Meteor sign up and sign in templates (and much more!) styled for twitter Bootstrap

This package depends on [accounts-templates-core](https://atmospherejs.com/package/accounts-templates-core)

Learn more [here](http://accounts-templates.meteor.com) or have a look at a [live demo application](http://accounts-templates-bootstrap.meteor.com).


## Warning!

Adding this package with `mrt add accounts-templates-bootstrap` does not add any other packages providing Bootstrap. This is to let you choose the flavour you prefer, being it compiled, less, sass, or from CDN!

At the moment it is up to date with Bootstrap 3.2.0.


## Contributing

Anyone is welcome to contribute. Fork, make your changes, and then submit a pull request.

Thanks to all those who have contributed code changes to [this package](https://github.com/splendido/accounts-templates-bootstrap/graphs/contributors) as well as to the [core package](https://github.com/splendido/accounts-templates-core/graphs/contributors) and all who have helped by submitting bug reports and feature ideas.

[![Support via Gittip](https://rawgithub.com/twolfson/gittip-badge/0.2.0/dist/gittip.png)](https://www.gittip.com/splendido/)
7 changes: 7 additions & 0 deletions lib/at_error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template name="atError">
<div class="at-error">
{{#each error}}
<p>{{errorText}}</p>
{{/each}}
</div>
</template>
2 changes: 2 additions & 0 deletions lib/at_error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atError.helpers(AccountsTemplates.atErrorHelpers);
33 changes: 33 additions & 0 deletions lib/at_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<template name="atForm">
{{#unless hide}}
<div class="at-form">
{{#if showTitle}}
{{> atTitle}}
{{/if}}
{{#if showSignInLink}}
{{> atSigninLink}}
{{/if}}
{{#if showOauthServices}}
{{> atOauth}}
{{/if}}
{{#if showServicesSeparator}}
{{> atSep}}
{{/if}}
{{#if showError}}
{{> atError}}
{{/if}}
{{#if showResult}}
{{> atResult}}
{{/if}}
{{#if showPwdForm}}
{{> atPwdForm}}
{{/if}}
{{#if showSignUpLink}}
{{> atSignupLink}}
{{/if}}
{{#if showTermsLink}}
{{> atTermsLink}}
{{/if}}
</div>
{{/unless}}
</template>
2 changes: 2 additions & 0 deletions lib/at_form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atForm.helpers(AccountsTemplates.atFormHelpers);
23 changes: 23 additions & 0 deletions lib/at_input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<template name='atInput'>
<div class="{{#if hasError}}has-error{{/if}} {{#if hasSuccess}}has-success{{/if}} {{#if feedback}}has-feedback{{/if}}">
{{#if showLabels}}
<label for="AT_field_{{_id}}">
{{displayName}} {{#unless required}}{{optionalText}}{{/unless}}
</label>
{{/if}}
<input type="{{type}}" id="AT_field_{{_id}}" name="AT_field_{{_id}}" placeholder="{{placeholder}}" autocapitalize="none" autocorrect="off">
{{#if negativeFeedback}}
{{#if hasHerror}}
<span class="glyphicon glyphicon-remove"></span>
{{/if}}
{{/if}}
{{#if positiveFeedback}}
{{#if hasSuccess}}
<span class="glyphicon glyphicon-ok"></span>
{{/if}}
{{/if}}
{{#if hasHerror}}
<span>{{errorText}}</span>
{{/if}}
</div>
</template>
5 changes: 5 additions & 0 deletions lib/at_input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atInput.helpers(AccountsTemplates.atInputHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atInput.events(AccountsTemplates.atInputEvents);
7 changes: 7 additions & 0 deletions lib/at_oauth.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template name="atOauth">
<div class="at-oauth">
{{#each oauthService}}
{{> atSocial}}
{{/each}}
</div>
</template>
2 changes: 2 additions & 0 deletions lib/at_oauth.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atOauth.helpers(AccountsTemplates.atOauthHelpers);
13 changes: 13 additions & 0 deletions lib/at_pwd_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template name="atPwdForm">
<div class="at-pwd-form">
<form role="form" id="at-pwd-form" class="{{disabled}}" novalidate>
{{#each fields}}
{{> atInput}}
{{/each}}
{{#if showForgotPasswordLink}}
{{> atPwdLink}}
{{/if}}
{{> atPwdFormBtn}}
</form>
</div>
</template>
5 changes: 5 additions & 0 deletions lib/at_pwd_form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atPwdForm.helpers(AccountsTemplates.atPwdFormHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atPwdForm.events(AccountsTemplates.atPwdFormEvents);
5 changes: 5 additions & 0 deletions lib/at_pwd_form_btn.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template name="atPwdFormBtn">
<button type="submit" class="submit {{submitDisabled}}" id="at-btn">
{{buttonText}}
</button>
</template>
2 changes: 2 additions & 0 deletions lib/at_pwd_form_btn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atPwdFormBtn.helpers(AccountsTemplates.atPwdFormBtnHelpers);
7 changes: 7 additions & 0 deletions lib/at_pwd_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template name="atPwdLink">
<div class="at-pwd-link">
<p>
<a href="{{forgotPwdLink}}" id="at-forgotPwd" class="at-link {{disabled}}">{{linkText}}</a>
</p>
</div>
</template>
5 changes: 5 additions & 0 deletions lib/at_pwd_link.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atPwdLink.helpers(AccountsTemplates.atPwdLinkHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atPwdLink.events(AccountsTemplates.atPwdLinkEvents);
5 changes: 5 additions & 0 deletions lib/at_result.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template name="atResult">
<div class="at-result">
{{result}}
</div>
</template>
2 changes: 2 additions & 0 deletions lib/at_result.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atResult.helpers(AccountsTemplates.atResultHelpers);
5 changes: 5 additions & 0 deletions lib/at_sep.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template name="atSep">
<div class="at-sep">
<strong>{{sepText}}</strong>
</div>
</template>
2 changes: 2 additions & 0 deletions lib/at_sep.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atSep.helpers(AccountsTemplates.atSepHelpers);
8 changes: 8 additions & 0 deletions lib/at_signin_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template name="atSigninLink">
<div class="at-signin-link">
<p>
{{text}}
<a href="{{signInLink}}" id="at-signIn" class="at-link {{disabled}}">{{linkText}}</a>
</p>
</div>
</template>
5 changes: 5 additions & 0 deletions lib/at_signin_link.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atSigninLink.helpers(AccountsTemplates.atSigninLinkHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atSigninLink.events(AccountsTemplates.atSigninLinkEvents);
8 changes: 8 additions & 0 deletions lib/at_signup_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template name="atSignupLink">
<div class="at-signup-link">
<p>
{{text}}
<a href="{{signUpLink}}" id="at-signUp" class="at-link {{disabled}}">{{linkText}}</a>
</p>
</div>
</template>
5 changes: 5 additions & 0 deletions lib/at_signup_link.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atSignupLink.helpers(AccountsTemplates.atSignupLinkHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atSignupLink.events(AccountsTemplates.atSignupLinkEvents);
5 changes: 5 additions & 0 deletions lib/at_social.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template name='atSocial'>
<button class="at-social-btn {{disabled}}" id="at-{{name}}" name="{{name}}">
<i class="{{iconClass}}"></i> {{buttonText}}
</button>
</template>
5 changes: 5 additions & 0 deletions lib/at_social.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atSocial.helpers(AccountsTemplates.atSocialHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atSocial.events(AccountsTemplates.atSocialEvents);
16 changes: 16 additions & 0 deletions lib/at_terms_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template name="atTermsLink">
<div class="at-terms-link">
<p>
{{text}}
{{#if privacyUrl}}
<a href="{{privacyUrl}}" class="{{disabled}}">{{privacyLinkText}}</a>
{{/if}}
{{#if showTermsAnd}}
{{and}}
{{/if}}
{{#if termsUrl}}
<a href="{{termsUrl}}" class="{{disabled}}">{{termsLinkText}}</a>
{{/if}}
</p>
</div>
</template>
5 changes: 5 additions & 0 deletions lib/at_terms_link.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atTermsLink.helpers(AccountsTemplates.atTermsLinkHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atTermsLink.events(AccountsTemplates.atTermsLinkEvents);
5 changes: 5 additions & 0 deletions lib/at_title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template name="atTitle">
<div class="at-title">
<h3>{{title}}</h3>
</div>
</template>
2 changes: 2 additions & 0 deletions lib/at_title.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atTitle.helpers(AccountsTemplates.atTitleHelpers);
55 changes: 55 additions & 0 deletions lib/at_unstyled.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
button.at-social-btn#at-facebook {
background: #3B5998;
color: #fff;
}
button.at-social-btn#at-facebook.disabled {
color: #ddd;
background: #666666;
}
button.at-social-btn#at-facebook:hover {
background: #2C4780;
}
button.at-social-btn#at-linkedin {
background: #338AB0;
color: #fff;
}
button.at-social-btn#at-linkedin.disabled {
color: #ddd;
background: #666666;
}
button.at-social-btn#at-linkedin:hover {
background: #0571A6;
}
button.at-social-btn#at-twitter {
background: #4099FF;
color: #fff;
}
button.at-social-btn#at-twitter.disabled {
color: #ddd;
background: #666666;
}
button.at-social-btn#at-twitter:hover {
background: #3288EB;
}
button.at-social-btn#at-google {
background: #db5a3c;
color: #fff;
}
button.at-social-btn#at-google.disabled {
color: #ddd;
background: #666666;
}
button.at-social-btn#at-google:hover {
background: #CA4C2E;
}
button.at-social-btn#at-github {
background: #666;
color: #fff;
}
button.at-social-btn#at-github.disabled {
color: #ddd;
background: #666666;
}
button.at-social-btn#at-github:hover {
background: #555;
}
3 changes: 3 additions & 0 deletions lib/full_page_at_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template name="fullPageAtForm">
{{> atForm}}
</template>
Loading

0 comments on commit a84f256

Please sign in to comment.