History

Add links to Gittip

Thibaut committed 12 years ago

Commit 8ce628f1 parent a41f02e6 files · +38 −5Browse files

Unified · Split

6 files
  1. assets/images/gittip-bw.png +0 −0
  2. assets/images/gittip-bw@2x.png +0 −0
  3. assets/javascripts/templates/pages/root_tmpl.coffee.erb +3 −0
  4. assets/stylesheets/components/_content.scss +28 −6
  5. assets/stylesheets/components/_mobile.scss +7 −1
  6. views/manifest.erb +2 −0
assets/images/gittip-bw.png+0−0

Binary file not shown.

assets/images/gittip-bw@2x.png+0−0

Binary file not shown.

assets/javascripts/templates/pages/root_tmpl.coffee.erb+3−0
@@ -1,6 +1,7 @@
1app.templates.splash = """1app.templates.splash = """
2 <div class="_splash-title">DevDocs</div>2 <div class="_splash-title">DevDocs</div>
3 <a href="http://www.maxcdn.com" class="_splash-maxcdn">Sponsored by<span class="_maxcdn-logo-bw"> MaxCDN</span></a>3 <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>
4"""5"""
5 6
6<% if App.development? %>7<% if App.development? %>
@@ -21,6 +22,7 @@ app.templates.intro = """ · 14 unmodified lines
21 <li>DevDocs is licensed under the terms of the Mozilla Public License v2.0. For more information,22 <li>DevDocs is licensed under the terms of the Mozilla Public License v2.0. For more information,
22 see the <a href="https://github.com/Thibaut/devdocs/blob/master/COPYRIGHT">COPYRIGHT</a> and23 see the <a href="https://github.com/Thibaut/devdocs/blob/master/COPYRIGHT">COPYRIGHT</a> and
23 <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files.24 <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!
24 </ol>26 </ol>
25 <a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>27 <a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>
26 <p>That's all. Happy coding!28 <p>That's all. Happy coding!
@@ -43,6 +45,7 @@ app.templates.intro = """ · 16 unmodified lines
43 <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>45 <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>
44 <li>DevDocs is free and <a href="https://github.com/Thibaut/devdocs">open source</a>46 <li>DevDocs is free and <a href="https://github.com/Thibaut/devdocs">open source</a>
45 <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>47 <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!
46 </ol>49 </ol>
47 <a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>50 <a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>
48 <p>That's all. Happy coding!51 <p>That's all. Happy coding!
assets/stylesheets/components/_content.scss+28−6
@@ -53,21 +53,31 @@ · 52 unmodified lines
53 @extend ._booting:before, %user-select-none;53 @extend ._booting:before, %user-select-none;
54}54}
55 55
56._splash-maxcdn {56%splash-promo {
57 position: absolute;57 position: absolute;
58 bottom: 1.25rem;58 bottom: 1.25rem;
59 left: 50%;
60 width: 16rem;
61 margin-left: -8rem;
62 line-height: 1rem;59 line-height: 1rem;
63 color: #bbb;60 color: #bbb;
64 text-align: center;
65 61
66 &:hover { color: $linkColor; }62 &:hover { color: $linkColor; }
63}
64
65._splash-maxcdn {
66 left: .75rem;
67 @extend %splash-promo;
68
67 > ._maxcdn-logo-bw { opacity: .2; }69 > ._maxcdn-logo-bw { opacity: .2; }
68 &:hover > ._maxcdn-logo-bw { opacity: .5; }70 &:hover > ._maxcdn-logo-bw { opacity: .5; }
69}71}
70 72
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
71//81//
72// Intro82// Intro
73//83//
@@ -298,7 +308,7 @@ · 224 unmodified lines
298 display: inline-block;308 display: inline-block;
299 vertical-align: top;309 vertical-align: top;
300 width: 6.25rem;310 width: 6.25rem;
301 margin-left: .375rem;311 margin-left: .5rem;
302 overflow: hidden;312 overflow: hidden;
303 text-indent: -20rem;313 text-indent: -20rem;
304 background-position: center center;314 background-position: center center;
@@ -323,3 +333,15 @@ · 18 unmodified lines
323 background-image: image-url('maxcdn-bw@2x.png');333 background-image: image-url('maxcdn-bw@2x.png');
324 }334 }
325}335}
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('gittip-bw@2x.png');
346 }
347}
assets/stylesheets/components/_mobile.scss+7−1
@@ -131,7 +131,13 @@ · 130 unmodified lines
131 131
132 // Splash132 // Splash
133 133
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; }
135}141}
136 142
137//143//
views/manifest.erb+2−0
@@ -10,6 +10,8 @@ CACHE: · 9 unmodified lines
10<%= image_path 'maxcdn@2x.png' %>10<%= image_path 'maxcdn@2x.png' %>
11<%= image_path 'maxcdn-bw.png' %>11<%= image_path 'maxcdn-bw.png' %>
12<%= image_path 'maxcdn-bw@2x.png' %>12<%= image_path 'maxcdn-bw@2x.png' %>
13<%= image_path 'gittip-bw.png' %>
14<%= image_path 'gittip-bw@2x.png' %>
13<%= asset_path 'docs.js' %>15<%= asset_path 'docs.js' %>
14<%= doc_index_urls.join "\n" %>16<%= doc_index_urls.join "\n" %>
15 17