-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
164 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<div class="col-sm-4"> | ||
{{ember-initials class="img-rounded" | ||
size=size | ||
name=name | ||
seedText=seedText | ||
defaultName=defaultName | ||
textColor=textColor | ||
fontSize=fontSize | ||
fontWeight=fontWeight | ||
fontFamily=fontFamily | ||
}} | ||
</div> | ||
|
||
<div class="col-sm-4"> | ||
{{ember-initials class="img-circle" | ||
size=size | ||
name=name | ||
seedText=seedText | ||
defaultName=defaultName | ||
textColor=textColor | ||
fontSize=fontSize | ||
fontWeight=fontWeight | ||
fontFamily=fontFamily | ||
}} | ||
</div> | ||
|
||
<div class="col-sm-4"> | ||
{{ember-initials class="img-thumbnail" | ||
size=size | ||
name=name | ||
seedText=seedText | ||
defaultName=defaultName | ||
textColor=textColor | ||
fontSize=fontSize | ||
fontWeight=fontWeight | ||
fontFamily=fontFamily | ||
}} | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Component.extend({ | ||
size: 150, | ||
name: 'Ember Initials', | ||
seedText: Ember.computed.reads('name'), | ||
defaultName: '?', | ||
textColor: 'white', | ||
fontSize: 100, | ||
fontWeight: 100, | ||
fontFamily: 'Helvetica Neue Light, Arial, sans-serif', | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<div class="col-sm-12 text-center"> | ||
{{initials-blocks | ||
size=size | ||
name=name | ||
seedText=seedText | ||
defaultName=defaultName | ||
textColor=textColor | ||
fontSize=fontSize | ||
fontWeight=fontWeight | ||
fontFamily=fontFamily | ||
}} | ||
</div> | ||
|
||
<div class="col-sm-12 row form"> | ||
<div class="col-sm-6"> | ||
<div class="form-group"> | ||
<label>Size:</label> | ||
{{input placeholder="Size" value=size type="number" class="form-control" }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Name:</label> | ||
{{input placeholder="Name" value=name class="form-control" }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Seed Text:</label> | ||
{{input placeholder="Seed text" value=seedText class="form-control" }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Default Name:</label> | ||
{{input placeholder="Default Name" value=defaultName class="form-control" }} | ||
</div> | ||
</div> | ||
|
||
<div class="col-sm-6"> | ||
<div class="form-group"> | ||
<label>Text color:</label> | ||
{{input placeholder="Text color" value=textColor class="form-control" }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Font size:</label> | ||
{{input placeholder="Font size" type="number" value=fontSize class="form-control" }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Font weight:</label> | ||
{{input placeholder="Font weight" type="number" value=fontWeight class="form-control" }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>Font family:</label> | ||
{{input placeholder="Font family" value=fontFamily class="form-control" }} | ||
</div> | ||
</div> | ||
</div> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.container, .form { | ||
margin-top: 50px; | ||
} | ||
|
||
.description, .footer { | ||
margin-bottom: 50px; | ||
} | ||
|
||
.travis { | ||
margin-bottom: 20px; | ||
padding-left: 20px; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
{{ember-initials height=50 width=50 name="Super cool"}} | ||
<div class='container'> | ||
<a class="github-button" href="https://github.com/exelord/ember-initials" | ||
data-style="mega" data-count-href="/exelord/ember-initials/stargazers" | ||
data-count-api="/repos/exelord/ember-initials#stargazers_count" | ||
data-count-aria-label="# stargazers on GitHub" | ||
aria-label="Star exelord/ember-initials on GitHub"> | ||
Github | ||
</a> | ||
|
||
<a href="https://travis-ci.org/Exelord/ember-initials"> | ||
<img src="https://travis-ci.org/Exelord/ember-initials.svg?branch=master" class="travis" /> | ||
</a> | ||
<img src="ember-initials.png" width="100%" class="img-responsive" /> | ||
<hr> | ||
|
||
<div class="col-sm-12 row description"> | ||
Ember Initials is a package for generating simple avatars with users initials. | ||
It support Ember 2 apps. Thanks to highly customizable interface you can define your own colors, | ||
defaults and styles. I promise you, it will do the job! | ||
</div> | ||
|
||
{{initials-form}} | ||
|
||
<div class="col-sm-12 row footer text-muted"> | ||
<hr> | ||
For more options and details check the documentaion: | ||
<a href="https://github.com/Exelord/ember-initials/" target="_blank"> | ||
https://github.com/Exelord/ember-initials | ||
</a> | ||
</div> | ||
</div> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.