Browse Source

End Code School sponsorship

Thibaut 10 years ago
parent
commit
fe35117e9e

+ 0 - 1
README.md

@@ -3,7 +3,6 @@
 DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
 
 * Created by [Thibaut Courouble](http://thibaut.me)
-* Sponsored by [Code School](http://out.devdocs.io/s/code-school)
 
 Keep track of development and community news:
 

BIN
assets/images/code-school-bw.png


BIN
assets/images/code-school-bw@2x.png


BIN
assets/images/code-school.png


BIN
assets/images/code-school@2x.png


+ 0 - 1
assets/javascripts/app/app.coffee

@@ -116,7 +116,6 @@
     visitCount = @settings.get('count')
     @settings.set 'count', ++visitCount
     new app.views.Notif 'Share', autoHide: null if visitCount is 5
-    new app.views.Notif 'Thanks', autoHide: null if visitCount is 10
     new app.views.News()
     @updateChecker = new app.UpdateChecker()
 

+ 0 - 8
assets/javascripts/templates/notif_tmpl.coffee

@@ -32,14 +32,6 @@ app.templates.notifShare = ->
                 <a href="http://out.devdocs.io/s/tw" target="_blank">Twitter</a>, <a href="http://out.devdocs.io/s/fb" target="_blank">Facebook</a>,
                 <a href="http://out.devdocs.io/s/re" target="_blank">Reddit</a>, etc.<br>Thanks :) """
 
-app.templates.notifThanks = ->
-  textNotif """ Hi there! """,
-            """ <p class="_notif-text">Like DevDocs? Check out these awesome companies who are making it possible:
-                <ul class="_notif-list">
-                  <li><a href="http://out.devdocs.io/s/code-school" target="_blank">Code School</a> — Learn new skills from the comfort of your own browser. Offering more than 45 courses covering JavaScript, HTML/CSS, Ruby, Git, and iOS for only $29/month.
-                </ul>
-                <p class="_notif-text">Have a great day :) """
-
 app.templates.notifUpdateDocs = ->
   textNotif """ Documentation updates available. """,
             """ <a href="/offline">Install them</a> as soon as possible to avoid broken pages. """

+ 1 - 2
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -13,7 +13,6 @@ app.templates.aboutPage = -> """
   <p>DevDocs combines multiple API documentations in a fast, organized, and searchable interface.
   <ul>
     <li>Created and maintained by <a href="http://thibaut.me">Thibaut Courouble</a>
-    <li>Sponsored by <a href="http://out.devdocs.io/s/code-school">Code School</a>
     <li>Free and <a href="https://github.com/Thibaut/devdocs">open source</a>
         <iframe class="_github-btn" src="https://ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
   </ul>
@@ -31,7 +30,7 @@ app.templates.aboutPage = -> """
   <p><strong>Special thanks to:</strong>
   <ul>
     <li><a href="http://out.devdocs.io/s/maxcdn">MaxCDN</a> and <a href="http://get.gaug.es/?utm_source=devdocs&utm_medium=referral&utm_campaign=sponsorships" title="Real Time Web Analytics">Gauges</a> for offering a free account to DevDocs
-    <li><a href="http://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="http://out.devdocs.io/s/shopify">Shopify</a> and <a href="http://out.devdocs.io/s/jetbrains">JetBrains</a> for sponsoring DevDocs in the past
+    <li><a href="http://out.devdocs.io/s/maxcdn">MaxCDN</a>, <a href="http://out.devdocs.io/s/shopify">Shopify</a>, <a href="http://out.devdocs.io/s/jetbrains">JetBrains</a> and <a href="http://out.devdocs.io/s/code-school">Code School</a> for sponsoring DevDocs in the past
     <li><a href="https://www.heroku.com">Heroku</a> and <a href="http://newrelic.com">New Relic</a> for providing awesome free service
     <li>Daniel Bruce for the <a href="http://www.entypo.com">Entypo</a> pictograms
     <li><a href="http://www.jeremykratz.com/">Jeremy Kratz</a> for the C/C++ logo

+ 1 - 14
assets/javascripts/templates/pages/root_tmpl.coffee.erb

@@ -1,14 +1,4 @@
-codeSchoolLink = (className) -> """
-  <a href="http://out.devdocs.io/s/code-school" class="#{className}">
-    <span class="_logo-thx _code-school-logo">Code School</span>
-    <span class="_logo-info">With more than 45 courses covering JavaScript, HTML/CSS, Ruby, Git, and iOS, Code School pairs experienced instructors with engaging content. Start learning at codeschool.com.</span>
-  </a>
-"""
-
-app.templates.splash = -> """
-  <div class="_splash-title">DevDocs</div>
-  <div class="_splash-sponsors">#{codeSchoolLink '_splash-sponsor'}</div>
-"""
+app.templates.splash = """<div class="_splash-title">DevDocs</div>"""
 
 <% if App.development? %>
 app.templates.intro = """
@@ -30,7 +20,6 @@ app.templates.intro = """
           <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files.
       <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks!
     </ol>
-    <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
     <p>Happy coding!
   </div></div>
 """
@@ -53,7 +42,6 @@ app.templates.intro = """
           <iframe class="_github-btn" src="//ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
       <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks!
     </ol>
-    <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}
     <p>Happy coding!
   </div></div>
 """
@@ -81,7 +69,6 @@ app.templates.mobileIntro = """
       <li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a>
     </ol>
     <p>Happy coding!
-    <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}</p>
     <a class="_intro-hide" data-hide-intro>Stop showing this message</a>
   </div>
 """

+ 0 - 90
assets/stylesheets/components/_content.scss

@@ -72,31 +72,6 @@
   @extend ._booting:before, %user-select-none;
 }
 
-._splash-sponsors {
-  position: absolute;
-  top: 50%;
-  left: 0;
-  right: 0;
-  margin-top: 1.25rem;
-  text-align: center;
-  line-height: 2rem;
-}
-
-._splash-sponsor {
-  position: relative;
-  display: inline-block;
-  vertical-align: top;
-  margin: .5rem 1.5rem;
-
-  ._logo-thx { opacity: .3; }
-  &:hover ._logo-thx { opacity: .6; }
-
-  ._logo-info {
-    right: 50%;
-    margin-right: -9rem;
-  }
-}
-
 //
 // Intro
 //
@@ -132,22 +107,6 @@
 
 ._intro-link { cursor: pointer; }
 
-._intro-sponsors {
-  position: absolute;
-  bottom: 1rem;
-  right: 1rem;
-  margin: 0;
-  line-height: 1.5rem;
-}
-
-._intro-sponsor {
-  display: inline-block;
-  vertical-align: top;
-  margin-left: .5em;
-
-  &:hover { text-decoration: none; }
-}
-
 //
 // Error
 //
@@ -429,52 +388,3 @@
   vertical-align: text-top;
   margin-left: .25rem;
 }
-
-._logo-thx {
-  position: relative;
-  display: inline-block;
-  vertical-align: top;
-  height: 1.5rem;
-  overflow: hidden;
-  text-indent: -20rem;
-  background-position: center center;
-  background-repeat: no-repeat;
-}
-
-._logo-info {
-  top: auto;
-  bottom: 100%;
-  right: 0;
-  max-width: 18.25rem;
-  margin-bottom: .75rem;
-  padding: .5rem .75rem;
-  line-height: 1.375rem;
-  text-align: left;
-  pointer-events: none;
-  @extend %notif;
-
-  :hover > & { opacity: 1; }
-}
-
-._code-school-logo {
-  width: 7rem;
-  background-image: image-url('code-school.png');
-  background-size: 7rem 1.25rem;
-
-  @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
-    background-image: image-url('code-school@2x.png');
-  }
-}
-
-._splash-sponsor > ._code-school-logo {
-  background-image: image-url('code-school-bw.png');
-
-  @if $style == 'dark' {
-    filter: invert(100%);
-    -webkit-filter: invert(100%);
-  }
-
-  @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
-    background-image: image-url('code-school-bw@2x.png');
-  }
-}

+ 0 - 4
views/manifest.erb

@@ -8,10 +8,6 @@ CACHE:
 <%= stylesheet_path 'application-dark' %>
 <%= image_path 'icons.png' %>
 <%= image_path 'icons@2x.png' %>
-<%= image_path 'code-school.png' %>
-<%= image_path 'code-school@2x.png' %>
-<%= image_path 'code-school-bw.png' %>
-<%= image_path 'code-school-bw@2x.png' %>
 <%= asset_path 'docs.js' %>
 <%= doc_index_urls.join "\n" %>