Browse Source

docs(web): add sponsoring

tags/v0.13.1
mingrammer 4 years ago
parent
commit
8cdc5a10df
5 changed files with 23 additions and 2 deletions
  1. +1
    -1
      website/core/Footer.js
  2. +2
    -1
      website/i18n/en.json
  3. +15
    -0
      website/pages/en/index.js
  4. +1
    -0
      website/siteConfig.js
  5. +4
    -0
      website/static/css/custom.css

+ 1
- 1
website/core/Footer.js View File

@@ -51,7 +51,7 @@ class Footer extends React.Component {
<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>
</div>
</section>
</section>
<section className="copyright">{this.props.config.copyright}</section>
</footer>
);


+ 2
- 1
website/i18n/en.json View File

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


+ 15
- 0
website/pages/en/index.js View File

@@ -111,6 +111,20 @@ class Index extends React.Component {
</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 = () => (
<Block>
{[
@@ -148,6 +162,7 @@ class Index extends React.Component {
<About />
<Example />
<Example2 />
<Sponsorship />
</div>
</div>
);


+ 1
- 0
website/siteConfig.js View File

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

headerIcon: 'img/diagrams.ico',


+ 4
- 0
website/static/css/custom.css View File

@@ -20,4 +20,8 @@
}

@media only screen and (min-width: 1500px) {
}

#buymeacoffee {
height: 50px;
}

Loading…
Cancel
Save