Skip to content

Commit 0622c5f

Browse files
committed
Clean up 'like' buttons and layout of main page
1 parent 2a3226a commit 0622c5f

6 files changed

Lines changed: 55 additions & 92 deletions

File tree

_includes/common.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- Latest compiled and minified JavaScript -->
1010
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
1111

12-
12+
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
1313

1414
<!-- START COPYING HERE -->
1515
<link rel="stylesheet" href="gh-fork-ribbon.css">
@@ -20,9 +20,6 @@
2020

2121

2222
<style>
23-
body { margin-top:45px; }
24-
div.likebuttons {display: table; float: right; position: absolute; top: 0;}
25-
div.likebutton {display: table-cell; }
2623
.cs-blue {color:white; background: #31708f}
2724
</style>
2825

_includes/header.html

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,6 @@
77
</div>
88

99

10-
<div class="likebuttons">
11-
<div class="likebutton">
12-
<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /></a>
13-
<!-- Please call pinit.js only once per page -->
14-
<script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script>
15-
</div>
16-
17-
<div class="likebutton">
18-
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://chaiscript.com" data-via="lefticus" data-lang="en">Tweet</a>
19-
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
20-
</div>
21-
22-
<div class="likebutton">
23-
<!-- Place this tag where you want the +1 button to render. -->
24-
<div class="g-plusone" data-size="medium"></div>
25-
26-
<!-- Place this tag after the last +1 button tag. -->
27-
<script type="text/javascript">
28-
(function() {
29-
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
30-
po.src = 'https://apis.google.com/js/platform.js';
31-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
32-
})();
33-
</script>
34-
</div>
35-
36-
<div class="likebutton">
37-
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fchaiscript.com&amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe>
38-
</div>
39-
40-
</div>
41-
4210

4311

4412

@@ -67,9 +35,46 @@
6735
<li {% if page.url == '/support.html'%} class='active' {% endif %}>
6836
<a href="/support.html">Support</a>
6937
</li>
38+
<li>
39+
<a href="https://travis-ci.org/ChaiScript/ChaiScript"><img src="https://travis-ci.org/ChaiScript/ChaiScript.png?branch=develop"/></a>
40+
</li>
41+
<li>
42+
<a href='https://coveralls.io/r/ChaiScript/ChaiScript?branch=master'><img src='https://coveralls.io/repos/ChaiScript/ChaiScript/badge.png?branch=master' alt='Coverage Status' /></a>
43+
</li>
7044
</ul>
7145
</div><!-- /.navbar-collapse -->
7246
</div><!-- /.container-fluid -->
7347
</nav>
7448

49+
<div class="hidden-print">
50+
<div class="container">
51+
<ul class="list-inline">
52+
<li>
53+
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=ChaiScript&repo=ChaiScript&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
54+
</li>
55+
<li>
56+
<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=ChaiScript&repo=ChaiScript&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
57+
</li>
58+
<li>
59+
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://chaiscript.com" data-text="Easy Embedded Scripting for C++" data-counturl="http://chaiscript.com" data-count="horizontal" data-via="@lefticus" data-lang="en">Tweet</a>
60+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
61+
</li>
62+
<li>
63+
<!-- Place this tag where you want the +1 button to render. -->
64+
<div class="g-plusone" data-size="medium" data-annotation="inline" data-width="120" data-href="http://chaiscript.com"></div>
65+
66+
<!-- Place this tag after the last +1 button tag. -->
67+
<script type="text/javascript">
68+
(function() {
69+
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
70+
po.src = 'https://apis.google.com/js/platform.js';
71+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
72+
})();
73+
</script>
74+
</li>
75+
</ul>
76+
</div>
77+
</div>
78+
79+
7580

examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h4 class="panel-title">
4545
</a>
4646
</h4>
4747
</div>
48-
<div id="{{ post.title | replace: ' ', '_' }}" class="panel-collapse collapse">
48+
<div id="{{ post.title | replace: ' ', '_' }}" class="panel-collapse collapse in">
4949
<div class="panel-body">
5050
{{ post.content}}
5151
</div>

index.html

Lines changed: 14 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -32,81 +32,42 @@ <h1>ChaiScript</h1>
3232

3333

3434

35-
<div class="well well-lg">
36-
<h2>ChaiScript is...</h2>
37-
</div>
38-
39-
4035
<div class="container">
4136
<div class="row">
4237

4338
<div class="col-md-4">
44-
<div class="panel panel-info">
45-
<div class="panel-heading">
46-
<h3 class="panel-title">Succinct</h3>
47-
</div>
48-
<div class="panel-body">
49-
The above is a complete example of exposing a function to ChaiScript, calling it with a parameter and returning a value.
50-
</div>
51-
</div>
39+
<h3><i class="fa fa-magic"></i> Straightforward</h3>
40+
The above is a complete example of exposing a function to ChaiScript, calling it with a parameter and returning a value.
5241
</div>
5342

5443
<div class="col-md-4">
55-
<div class="panel panel-info">
56-
<div class="panel-heading">
57-
<h3 class="panel-title">Header Only</h3>
58-
</div>
59-
<div class="panel-body">
60-
There are no external tools requied, no preprocessor, no libraries, just your C++11 compliant compiler.
61-
</div>
62-
</div>
44+
<h3><i class="fa fa-file-text"></i> Header Only</h3>
45+
There are no external tools requied, no preprocessor, no libraries, just your C++11 compliant compiler.
6346
</div>
6447

6548
<div class="col-md-4">
66-
<div class="panel panel-info">
67-
<div class="panel-heading">
68-
<h3 class="panel-title">Free</h3>
69-
</div>
70-
<div class="panel-body">
71-
ChaiScript is licensed with the BSD license and is free to use in your free or commercial projects.
72-
</div>
73-
</div>
49+
<h3><i class="fa fa-microphone"></i> Free</h3>
50+
ChaiScript is licensed with the BSD license and is free to use in your free or commercial projects.
7451
</div>
7552
</div>
7653

7754
<div class="row">
7855

7956
<div class="col-md-4">
80-
<div class="panel panel-info">
81-
<div class="panel-heading">
82-
<h3 class="panel-title">Stable</h3>
83-
</div>
84-
<div class="panel-body">
85-
ChaiScript has been making stable releases since 2009. No bugfix or feature is made without a corresponding unit test.
86-
</div>
87-
</div>
57+
<h3><i class="fa fa-tachometer"></i> Stable</h3>
58+
<a href="https://travis-ci.org/ChaiScript/ChaiScript"><img src="https://travis-ci.org/ChaiScript/ChaiScript.png?branch=develop"/></a>
59+
<a href='https://coveralls.io/r/ChaiScript/ChaiScript?branch=master'><img src='https://coveralls.io/repos/ChaiScript/ChaiScript/badge.png?branch=master' alt='Coverage Status' /></a><br/><br/>
60+
ChaiScript has been making stable releases since 2009. No bugfix or feature is made without a corresponding unit test.
8861
</div>
8962

9063
<div class="col-md-4">
91-
<div class="panel panel-info">
92-
<div class="panel-heading">
93-
<h3 class="panel-title">Thread Safe</h3>
94-
</div>
95-
<div class="panel-body">
96-
By default ChaiScript is thread safe. Thread safety can be disabled for enhanced performance.
97-
</div>
98-
</div>
64+
<h3><i class="fa fa-check"></i> Thread Safe</h3>
65+
By default ChaiScript is thread safe. Thread safety can be disabled for enhanced performance.
9966
</div>
10067

10168
<div class="col-md-4">
102-
<div class="panel panel-info">
103-
<div class="panel-heading">
104-
<h3 class="panel-title">Portable</h3>
105-
</div>
106-
<div class="panel-body">
107-
ChaiScript is fully tested for 32bit and 64bit on Windows (MSVC2013), clang++ and g++.
108-
</div>
109-
</div>
69+
<h3><i class="fa fa-linux"></i> <i class="fa fa-windows"></i> <i class="fa fa-apple"></i> Portable</h3>
70+
ChaiScript is fully tested for 32bit and 64bit on Windows (MSVC2013), clang++ and g++.
11071
</div>
11172
</div>
11273
</div>

releases.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<div class="panel panel-info">
2020
<div class="panel-heading">
21-
<h3>Releases</h3>
21+
<h3 class="panel-title">Releases</h3>
2222
</div>
2323
<div class="panel-body">
2424
Releases are officially managed on <a href="https://github.com/ChaiScript/ChaiScript/releases">github</a>.

support.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<div class="panel panel-info">
2020
<div class="panel-heading">
21-
<h3>Support</h3>
21+
<h3 class="panel-title">Support</h3>
2222
</div>
2323
<div class="panel-body">
2424
Please use <a href="">github</a> or stackoverflow for <a href="http://stackoverflow.com/questions/tagged/chaiscript">support</a> questions. Please contact <a href="http://blog.emptycrate.com/contact">jason at emptycrate.com</a> for other support services.

0 commit comments

Comments
 (0)