diff --git a/website/core/Footer.js b/website/core/Footer.js new file mode 100644 index 00000000000..743bbaea819 --- /dev/null +++ b/website/core/Footer.js @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule Footer + */ + +var React = require('React'); + +function getVersionedGitHubPath(path) { + return [ + 'https://github.com/facebook/react-native/blob/master', + path + ].join('/'); +} + +var Footer = React.createClass({ + render: function() { + return ( +
+ You can edit this page on GitHub and send us a pull request! +
+ ); + } +}); + +module.exports = Footer; diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index ceebe4aca54..0029ce542e3 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -12,9 +12,8 @@ 'use strict'; var DocsSidebar = require('DocsSidebar'); -var H = require('Header'); var Header = require('Header'); -var HeaderWithGithub = require('HeaderWithGithub'); +var Footer = require('Footer'); var Marked = require('Marked'); var Prism = require('Prism'); var React = require('React'); @@ -327,7 +326,7 @@ var ComponentDoc = React.createClass({ } return ( -diff --git a/website/src/react-native/css/react-native.css b/website/src/react-native/css/react-native.css index d015967f594..8de6e385a2b 100644 --- a/website/src/react-native/css/react-native.css +++ b/website/src/react-native/css/react-native.css @@ -834,8 +834,8 @@ h2 { } .docs-prevnext { - padding-top: 40px; - padding-bottom: 40px; + padding-top: 20px; + padding-bottom: 20px; } .button { @@ -1630,6 +1630,13 @@ input#algolia-doc-search:focus { padding-bottom: 0; } +.edit-page-block { + padding: 5px; + font-size: 12px; + color: #887766; + text-align: center; + background-color: rgba(5, 165, 209, 0.05); +} /** Web player **/