Skip to content

Commit 8ce628f

Browse files
committed
Add links to Gittip
1 parent a41f02e commit 8ce628f

6 files changed

Lines changed: 40 additions & 7 deletions

File tree

assets/images/gittip-bw.png

900 Bytes
Loading

assets/images/[email protected]

1.55 KB
Loading

assets/javascripts/templates/pages/root_tmpl.coffee.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
app.templates.splash = """
22
<div class="_splash-title">DevDocs</div>
33
<a href="http://www.maxcdn.com" class="_splash-maxcdn">Sponsored by<span class="_maxcdn-logo-bw"> MaxCDN</span></a>
4+
<a href="https://www.gittip.com/Thibaut/" class="_splash-gittip">Donate on<span class="_gittip-logo-bw"> Gittip</span></a>
45
"""
56

67
<% if App.development? %>
@@ -21,6 +22,7 @@ app.templates.intro = """
2122
<li>DevDocs is licensed under the terms of the Mozilla Public License v2.0. For more information,
2223
see the <a href="https://github.com/Thibaut/devdocs/blob/master/COPYRIGHT">COPYRIGHT</a> and
2324
<a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files.
25+
<li>If you like the app, please consider funding the project on <a href="https://www.gittip.com/Thibaut/">Gittip</a>. Thanks!
2426
</ol>
2527
<a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>
2628
<p>That's all. Happy coding!
@@ -43,6 +45,7 @@ app.templates.intro = """
4345
<li>For the latest news, subscribe to the <a href="http://eepurl.com/HnLUz">newsletter</a> or follow <a href="https://twitter.com/DevDocs">@DevDocs</a>
4446
<li>DevDocs is free and <a href="https://github.com/Thibaut/devdocs">open source</a>
4547
<iframe class="_github-btn" src="http://ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
48+
<li>If you like the app, please consider funding the project on <a href="https://www.gittip.com/Thibaut/">Gittip</a>. Thanks!
4649
</ol>
4750
<a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>
4851
<p>That's all. Happy coding!

assets/stylesheets/components/_content.scss

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,31 @@
5353
@extend ._booting:before, %user-select-none;
5454
}
5555

56-
._splash-maxcdn {
56+
%splash-promo {
5757
position: absolute;
5858
bottom: 1.25rem;
59-
left: 50%;
60-
width: 16rem;
61-
margin-left: -8rem;
6259
line-height: 1rem;
6360
color: #bbb;
64-
text-align: center;
6561

6662
&:hover { color: $linkColor; }
63+
}
64+
65+
._splash-maxcdn {
66+
left: .75rem;
67+
@extend %splash-promo;
68+
6769
> ._maxcdn-logo-bw { opacity: .2; }
6870
&:hover > ._maxcdn-logo-bw { opacity: .5; }
6971
}
7072

73+
._splash-gittip {
74+
right: 1.25rem;
75+
@extend %splash-promo;
76+
77+
> ._gittip-logo-bw { opacity: .35; }
78+
&:hover > ._gittip-logo-bw { opacity: .65; }
79+
}
80+
7181
//
7282
// Intro
7383
//
@@ -298,7 +308,7 @@
298308
display: inline-block;
299309
vertical-align: top;
300310
width: 6.25rem;
301-
margin-left: .375rem;
311+
margin-left: .5rem;
302312
overflow: hidden;
303313
text-indent: -20rem;
304314
background-position: center center;
@@ -323,3 +333,15 @@
323333
background-image: image-url('[email protected]');
324334
}
325335
}
336+
337+
._gittip-logo-bw {
338+
width: 4.375rem;
339+
margin-left: .375rem;
340+
background-size: 4.375rem 1rem;
341+
background-image: image-url('gittip-bw.png');
342+
@extend %maxcdn-logo;
343+
344+
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
345+
background-image: image-url('[email protected]');
346+
}
347+
}

assets/stylesheets/components/_mobile.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@
131131

132132
// Splash
133133

134-
._splash-title { margin-top: -.5em; }
134+
._splash-maxcdn, ._splash-gittip {
135+
left: 0;
136+
right: 0;
137+
text-align: center;
138+
}
139+
140+
._splash-gittip { margin-bottom: 2.25rem; }
135141
}
136142

137143
//

views/manifest.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ CACHE:
1010
<%= image_path '[email protected]' %>
1111
<%= image_path 'maxcdn-bw.png' %>
1212
<%= image_path '[email protected]' %>
13+
<%= image_path 'gittip-bw.png' %>
14+
<%= image_path '[email protected]' %>
1315
<%= asset_path 'docs.js' %>
1416
<%= doc_index_urls.join "\n" %>
1517

0 commit comments

Comments
 (0)