This repository has been archived by the owner on Nov 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
promo banner (chart.js dashboard challenge)
- Loading branch information
Christopher Hopkins
committed
Jul 17, 2013
1 parent
f390977
commit 3a58506
Showing
7 changed files
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/* | ||
*= require_self | ||
*= require jquery.gridster | ||
*= require promo | ||
*= require reset | ||
*= require_tree . | ||
*/ |
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,43 @@ | ||
#promo { | ||
width: 100%; | ||
background: #f6f6f6; | ||
#wrapper { | ||
max-width: 940px; | ||
margin: 0 auto; | ||
ul { | ||
padding: 20px 10px; | ||
list-style: none; | ||
text-align: center; | ||
li { | ||
font-size: 17px; | ||
line-height: 1.5em; | ||
span { | ||
font-family: "proxima_novasemibold", 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||
} | ||
a { | ||
text-decoration: none; | ||
border-bottom: 1px solid; | ||
color: #0881b3; | ||
} | ||
&#social { | ||
width: 165px; | ||
height: 25px; | ||
margin: 0 auto; | ||
margin-top: 10px; | ||
&:after { | ||
content: ""; | ||
display: table; | ||
clear: both; | ||
} | ||
.twitter-share-button { | ||
width: 85px!important; | ||
float: left; | ||
} | ||
.fb-like { | ||
float: right; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,10 @@ | ||
<div id="fb-root"></div> | ||
<script>(function(d, s, id) { | ||
var js, fjs = d.getElementsByTagName(s)[0]; | ||
if (d.getElementById(id)) return; | ||
js = d.createElement(s); js.id = id; | ||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=572443009461110"; | ||
fjs.parentNode.insertBefore(js, fjs); | ||
}(document, 'script', 'facebook-jssdk'));</script> | ||
|
||
<div class="fb-like" data-href="http://api.chocol.it" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></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,4 @@ | ||
<meta property="og:image" content="http://api.chocol.it/assets/logo-fdfdb15cd2de11b88d4faf2f6f380287.png"/> | ||
<meta property="og:title" content="A personal statistics dashboard and API."/> | ||
<meta property="og:url" content="http://api.chocol.it"/> | ||
<meta property="og:site_name" content="api.chocol.it"/> |
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,21 @@ | ||
<div id="promo" style="display:none;"> | ||
<div id="wrapper"> | ||
<ul> | ||
<li> | ||
<span>Like this dashboard?</span> Vote for it starting July 17 until July 31 in the <a href="http://chartjs.challengepost.com/submissions/16508-api-chocol-it">Chart.js Dashboard Challenge</a>. | ||
</li> | ||
<li id="social"> | ||
<%= render 'layouts/twitter' %> | ||
<%= render 'layouts/facebook' %> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
setTimeout(function() { | ||
$('#promo').slideDown('slow'); | ||
}, 5000) | ||
}) | ||
</script> |
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,2 @@ | ||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://api.chocol.it" data-text="I supported @hopkinschris in the Chart.js Dashboard Challenge here http://cpo.st/1bmi7Yf — for his dashboard:" data-related="hopkinschris">Tweet</a> | ||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> |
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