Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/_css/react.scss
Original file line number Diff line number Diff line change
Expand Up @@ -702,4 +702,17 @@ p code {
.next {
float: right;
}
}

.social-buttons {
position: absolute;
display: inline-block;
text-align: left;

table {
font-size: 0;
height: 50px;
margin-top: -2px;
margin-left: 10px;
}
}
19 changes: 19 additions & 0 deletions docs/_includes/buttons_unit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div class="buttons-unit">
<a href="docs/getting-started.html" class="button">Get Started</a>
<a href="downloads.html" class="button">Download React v{{site.react_version}}</a>
<div class="social-buttons">
<table>
<tr>
<td>
<iframe src="http://ghbtns.com/github-btn.html?user=facebook&repo=react&type=watch&count=true"
allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
</td>
</tr>
<tr>
<td>
<div style="height: 20px;" class="fb-like" data-href="https://www.facebook.com/react" data-width="110" data-layout="button_count" data-show-faces="true" data-send="false" data-colorscheme="dark"></div>
</td>
</tr>
</table>
</div>
</div>
7 changes: 1 addition & 6 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<li><a href="/react/blog/"{% if page.sectionid == 'blog' %} class="active"{% endif %}>blog</a></li>
<li><a href="http://github.com/facebook/react">github</a>
</ul>
<!-- <iframe src="http://ghbtns.com/github&#45;btn.html?user=facebook&#38;repo=react.js&#38;type=fork"allowtransparency="true" frameborder="0" scrolling="0" width="62" height="20"></iframe> -->
</div>
</div>

Expand All @@ -56,11 +55,7 @@
<div class="minitext">
A JavaScript library for building user interfaces
</div>

<div class="buttons-unit">
<a href="/react/docs/getting-started.html" class="button">Get Started</a>
<a href="/react/downloads.html" class="button">Download React v{{site.react_version}}</a>
</div>
{% include buttons_unit.html %}
</div>
</div>
{% endif %}
Expand Down
5 changes: 1 addition & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,5 @@ id: home
</section>
<hr class="home-divider" />
<section class="home-bottom-section">
<div class="buttons-unit">
<a href="docs/getting-started.html" class="button">Get Started</a>
<a href="downloads.html" class="button">Download React v{{site.react_version}}</a>
</div>
{% include buttons_unit.html %}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to add a param as explain in Jekyll docs ( http://jekyllrb.com/docs/templates/ )

{% include buttons_unit.html colorscheme="light" %}

but unfortunately it didn't work :( It spits an error saying that there are unknown characters in the declaration.

</section>