Skip to content

Commit

Permalink
update footer
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-gerstman committed Feb 4, 2019
1 parent 7e54590 commit 4da1f22
Showing 1 changed file with 39 additions and 41 deletions.
80 changes: 39 additions & 41 deletions website/core/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
* LICENSE file in the root directory of this source tree.
*/

const React = require("react");
const React = require('react')

class Footer extends React.Component {
docUrl(doc, language) {
const baseUrl = this.props.config.baseUrl;
return `${baseUrl}${language ? `${language}/` : ""}${doc}`;
const baseUrl = this.props.config.baseUrl
return `${baseUrl}${language ? `${language}/` : ''}${doc}`
}

pageUrl(doc, language) {
const baseUrl = this.props.config.baseUrl;
return baseUrl + (language ? `${language}/` : "") + doc;
const baseUrl = this.props.config.baseUrl
return baseUrl + (language ? `${language}/` : '') + doc
}

render() {
Expand All @@ -34,18 +34,12 @@ class Footer extends React.Component {
</a>
<div>
<h5>Docs</h5>
<a href={this.docUrl("introduction/getting-started")}>
<a href={this.docUrl('introduction/getting-started')}>
Getting Started
</a>
<a href={this.docUrl("introduction/core-concepts")}>
Core Concepts
</a>
<a href={this.docUrl("basics/basic-tutorial")}>
Basics
</a>
<a href={this.docUrl("advanced/advanced-tutorial")}>
Advanced
</a>
<a href={this.docUrl('tutorials/basics')}>Basics</a>
<a href={this.docUrl('basics/standard')}>Standard</a>
<a href={this.docUrl('basics/real-world')}>Real World</a>
</div>
<div>
<h5>Community</h5>
Expand All @@ -56,9 +50,7 @@ class Footer extends React.Component {
>
Stack Overflow
</a>
<a href="https://discord.gg/0ZcbPKXt5bZ6au5t">
Discord
</a>
<a href="https://discord.gg/0ZcbPKXt5bZ6au5t">Discord</a>
</div>
<div>
<h5>More</h5>
Expand All @@ -77,32 +69,38 @@ class Footer extends React.Component {
</div>
</section>
<section className="copyright">
{this.props.config.copyright}<br />
Some icons copyright <a
{this.props.config.copyright}
<br />
Some icons copyright{' '}
<a
href="https://fontawesome.com/license/free"
style={{color : "white"}}
style={{ color: 'white' }}
>
Font Awesome
</a>{' '}
and{' '}
<a href="https://thenounproject.com" style={{ color: 'white' }}>
Noun Project
</a>{' '}
(
<a
href="https://thenounproject.com/term/check/1870817/"
style={{ color: 'white' }}
>
Font Awesome
</a> and <a
href="https://thenounproject.com"
style={{color : "white"}}
>
Noun Project
</a> (<a
href="https://thenounproject.com/term/check/1870817/"
style={{color : "white"}}
>
Hassan ali
</a>, <a
href="https://thenounproject.com/term/debugging/1978252/"
style={{color : "white"}}
>
ProSymbols
</a>)
</section>
Hassan ali
</a>
,{' '}
<a
href="https://thenounproject.com/term/debugging/1978252/"
style={{ color: 'white' }}
>
ProSymbols
</a>
)
</section>
</footer>
);
)
}
}

module.exports = Footer;
module.exports = Footer

0 comments on commit 4da1f22

Please sign in to comment.