Skip to content

Commit

Permalink
chore(website): replace patreon with github sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed May 7, 2020
1 parent c891d7c commit 3bb0af6
Showing 1 changed file with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions website/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,9 @@ import Docute from '../src'
import prismLanguages from '../src/utils/prismLanguages'
import ColorBox from './components/ColorBox.vue'

const PatreonIcon = {
const SponsorIcon = {
template: html`
<svg
width="569px"
height="546px"
viewBox="0 0 569 546"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
>
<title>Patreon logo</title>
<g>
<circle
fill="rgb(249, 104, 84)"
id="Oval"
cx="362.589996"
cy="204.589996"
r="204.589996"
></circle>
<rect
fill="rgb(5, 45, 73)"
id="Rectangle"
x="0"
y="0"
width="100"
height="545.799988"
></rect>
</g>
</svg>
<svg style="color:#ea4aaa;" fill="currentColor" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.727 3C7.091 3 6.001 4.65 6.001 4.65S4.909 3 3.273 3C1.636 3 0 4.1 0 6.3 0 9.6 6 14 6 14s6-4.4 6-7.7C12 4.1 10.364 3 8.727 3z"></path></svg>
`
}

Expand Down Expand Up @@ -269,15 +244,15 @@ new Docute({
template: html`
<div class="docute-banner">
<note :label="false"
><PatreonIcon width="16" height="16" style="position:relative;top:2px;margin-right:8px;" />Support Docute development by
<a href="https://patreon.com/egoist" target="_blank"
>becoming a patron or one-time donation <ExternalLinkIcon /></a
>.</note
><SponsorIcon width="16" height="16" style="position:relative;top:2px;margin-right:8px;" />Sponsor the author on
<a href="https://github.com/sponsors/egoist" target="_blank"
>GitHub<ExternalLinkIcon /></a
> to support Docute.</note
>
</div>
`,
components: {
PatreonIcon
SponsorIcon
}
}
})
Expand Down

0 comments on commit 3bb0af6

Please sign in to comment.