docs(web): add sponsoring

pull/187/head
mingrammer 5 years ago
parent fe1513c02e
commit 8cdc5a10df

@ -51,7 +51,7 @@ class Footer extends React.Component {
<h5>More</h5> <h5>More</h5>
<iframe src="https://ghbtns.com/github-btn.html?user=mingrammer&repo=diagrams&type=star&count=true&size=large" frameBorder="0" scrolling="0" width="170" height="30" title="Star mingrammer/diagrams on GitHub"></iframe> <iframe src="https://ghbtns.com/github-btn.html?user=mingrammer&repo=diagrams&type=star&count=true&size=large" frameBorder="0" scrolling="0" width="170" height="30" title="Star mingrammer/diagrams on GitHub"></iframe>
</div> </div>
</section> </section>
<section className="copyright">{this.props.config.copyright}</section> <section className="copyright">{this.props.config.copyright}</section>
</footer> </footer>
); );

@ -61,7 +61,8 @@
"Docs": "Docs", "Docs": "Docs",
"Guides": "Guides", "Guides": "Guides",
"Nodes": "Nodes", "Nodes": "Nodes",
"GitHub": "GitHub" "GitHub": "GitHub",
"Sponsorship": "Sponsorship"
}, },
"categories": { "categories": {
"Getting Started": "Getting Started", "Getting Started": "Getting Started",

@ -111,6 +111,20 @@ class Index extends React.Component {
</div> </div>
); );
const Sponsorship = () => (
<div
className="productShowcaseSection paddingBottom"
style={{textAlign: 'center'}}>
<h2>Sponsorship</h2>
<MarkdownBlock>
Sponsoring always helps a lot to maintain Diagrams. Thank you :)
</MarkdownBlock>
<a href="https://www.buymeacoffee.com/mingrammer" target="_blank">
<img id="buymeacoffee" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee"/>
</a>
</div>
);
const Example = () => ( const Example = () => (
<Block> <Block>
{[ {[
@ -148,6 +162,7 @@ class Index extends React.Component {
<About /> <About />
<Example /> <Example />
<Example2 /> <Example2 />
<Sponsorship />
</div> </div>
</div> </div>
); );

@ -22,6 +22,7 @@ const siteConfig = {
{doc: 'guides/diagram', label: 'Guides'}, {doc: 'guides/diagram', label: 'Guides'},
{doc: 'nodes/aws', label: 'Nodes'}, {doc: 'nodes/aws', label: 'Nodes'},
{href: 'https://github.com/mingrammer/diagrams', label: 'GitHub'}, {href: 'https://github.com/mingrammer/diagrams', label: 'GitHub'},
{href: 'https://www.buymeacoffee.com/mingrammer', label: 'Sponsoring'},
], ],
headerIcon: 'img/diagrams.ico', headerIcon: 'img/diagrams.ico',

@ -20,4 +20,8 @@
} }
@media only screen and (min-width: 1500px) { @media only screen and (min-width: 1500px) {
}
#buymeacoffee {
height: 50px;
} }
Loading…
Cancel
Save