Skip to content

Commit

Permalink
Add favicons, cusotm apps, GH & AWS data
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavis committed Mar 15, 2014
1 parent 8b31ce5 commit 1ff66e7
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 6 deletions.
1 change: 1 addition & 0 deletions _data/01social.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ sites:
goog: No
sms: Yes
doc: https://nothing.com/tfa
app: No
18 changes: 16 additions & 2 deletions _data/06developer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,19 @@ title: Developer
icon: code

sites:
- name: Nothing
url: https://nothing.com
- name: Amazon Web Services
img: /img/aws.png
url: https://aws.amazon.com
tfa: Yes
goog: Yes
sms: Yes
doc: http://aws.amazon.com/iam/details/mfa/
apps:
- android
- name: GitHub
img: /img/github.png
url: https://github.com
tfa: Yes
goog: Yes
sms: Yes
doc: https://help.github.com/articles/about-two-factor-authentication
12 changes: 12 additions & 0 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,15 @@ td a {
display: block;
color: #505050;
}

td img.icon {
float: left;
border-radius: 500em!important;
padding: 4px 4px!important;
-webkit-box-shadow: 0 0 0 .1em rgba(0,0,0,.1) inset;
box-shadow: 0 0 0 .1em rgba(0,0,0,.1) inset;
line-height: 1!important;
margin-right: 8px;
background-color: white;
height: 16px;
}
Binary file added img/aws.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 18 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
{% endfor %}

<div class="right menu">
<div class="ui dropdown item">
<a href="https://github.com/jdavis/twofactorauth" class="item">
<i class="github icon"></i>
Contribute
</div>
</a>
</div>
</div>
</div>
Expand All @@ -36,17 +36,21 @@ <h2 class="ui header">
<table class="ui table celled segment">
<thead>
<tr>
<th class="thirteen wide">Site</th>
<th class="eleven wide">Site</th>
<th>Docs</th>
<th>SMS</th>
<th>Google Auth</th>
<th class="two wide">Custom App</th>
</tr>
</thead>
<tbody>
{% for site in section[1].sites %}
<tr>
{% if site.tfa %}
<td class="positive">
{% if site.img %}
<img src="{{ site.img }}" class="icon" alt="{{ site.name }}">
{% endif %}
<a href="{{ site.url }}">{{ site.name }}</a>
</td>

Expand All @@ -67,6 +71,16 @@ <h2 class="ui header">
{% else %}
<td class="negative icon"><i class="remove large icon"></i></td>
{% endif %}

{% if site.apps %}
<td class="positive icon">
{% for icon in site.apps %}
<i class="{{ icon }} large icon"></i>
{% endfor %}
</td>
{% else %}
<td class="negative icon"><i class="remove large icon"></i></td>
{% endif %}
</tr>
{% else %}
<td class="negative">
Expand All @@ -75,6 +89,7 @@ <h2 class="ui header">
<td class="negative"></td>
<td class="negative"></td>
<td class="negative"></td>
<td class="negative"></td>
{% endif %}
{% endfor %}
</tbody>
Expand Down
4 changes: 3 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(function (root, $) {
$('.menu .dropdown').dropdown();
$('th.app').popup({
content: 'Custom mobile application',
});
}(window, jQuery));

0 comments on commit 1ff66e7

Please sign in to comment.