From 9c24accb0b8b416c51bc125d2dffd5926559893a Mon Sep 17 00:00:00 2001 From: Vjeux Date: Sun, 15 Sep 2013 11:25:42 +0200 Subject: [PATCH] Adding Github and Facebook social buttons on the front page --- docs/_css/react.scss | 13 +++++++++++++ docs/_includes/buttons_unit.html | 19 +++++++++++++++++++ docs/_layouts/default.html | 7 +------ docs/index.md | 5 +---- 4 files changed, 34 insertions(+), 10 deletions(-) create mode 100644 docs/_includes/buttons_unit.html diff --git a/docs/_css/react.scss b/docs/_css/react.scss index 8c79fbe0b04..fcd0108bf37 100644 --- a/docs/_css/react.scss +++ b/docs/_css/react.scss @@ -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; + } } \ No newline at end of file diff --git a/docs/_includes/buttons_unit.html b/docs/_includes/buttons_unit.html new file mode 100644 index 00000000000..c78f6d312af --- /dev/null +++ b/docs/_includes/buttons_unit.html @@ -0,0 +1,19 @@ +
+ Get Started + Download React v{{site.react_version}} + +
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index fd08feb820d..15ee24c2cee 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -45,7 +45,6 @@
  • blog
  • github - @@ -56,11 +55,7 @@
    A JavaScript library for building user interfaces
    - - + {% include buttons_unit.html %} {% endif %} diff --git a/docs/index.md b/docs/index.md index 2edff30307d..541eed9898d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -81,8 +81,5 @@ id: home
    - + {% include buttons_unit.html %}