-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
138 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React, { useEffect } from 'react' | ||
import { graphql, StaticQuery } from 'gatsby' | ||
|
||
function useScript(src) { | ||
useEffect(() => { | ||
const script = document.createElement('script') | ||
script.src = src | ||
script.async = true | ||
document.body.appendChild(script) | ||
return () => { | ||
document.body.removeChild(script) | ||
} | ||
}, [src]) | ||
} | ||
|
||
const QUERY = graphql` | ||
query CodeFund { | ||
site { | ||
siteMetadata { | ||
codeFundProperty | ||
} | ||
} | ||
} | ||
` | ||
|
||
function InnerCodeFund({ property }) { | ||
useScript( | ||
`https://codefund.io/properties/${property}/funder.js?template=vertical&theme=light`, | ||
) | ||
return <div id="codefund" /> | ||
} | ||
|
||
export function CodeFund() { | ||
return ( | ||
<StaticQuery | ||
query={QUERY} | ||
render={data => ( | ||
<InnerCodeFund property={data.site.siteMetadata.codeFundProperty} /> | ||
)} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
menu: Usage | ||
title: Other | ||
order: 2 | ||
--- | ||
|
||
# Other | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed luctus erat cursus rutrum cursus. Sed faucibus mi et tristique cursus. Donec vel sodales ex. Proin ac egestas nibh. Curabitur efficitur urna eu molestie porta. Maecenas pulvinar pulvinar placerat. In mollis ultricies augue a dignissim. Pellentesque gravida massa vitae odio scelerisque fringilla. Nam in erat vitae justo porttitor porttitor. Vivamus aliquet vestibulum eros, eget volutpat turpis interdum eu. | ||
|
||
Mauris quis tellus dictum, eleifend risus sit amet, accumsan nulla. Aenean a sem orci. Praesent non tellus lorem. Sed cursus congue nisi eget euismod. Nam ac mauris at diam consequat fringilla. Sed sit amet nulla id dolor semper pulvinar eu sed lorem. Sed in ante eget tortor maximus consequat elementum ultricies diam. Nunc pulvinar, nibh vel ultrices rhoncus, mauris tellus faucibus arcu, in sagittis diam est et nisi. Proin elementum mauris ex, nec dictum nunc sagittis et. Praesent sit amet facilisis est. | ||
|
||
Donec vitae convallis justo. In hac habitasse platea dictumst. Pellentesque posuere tellus id nulla aliquet, non venenatis nunc dictum. Nullam imperdiet condimentum risus semper luctus. Nunc lacus enim, vulputate eu massa sit amet, tempus vulputate nulla. Proin vulputate dolor ut condimentum semper. Aenean fermentum mi nec feugiat dapibus. Curabitur ut augue odio. Cras varius ut mauris ut imperdiet. | ||
|
||
Nunc leo massa, porta vel velit et, lobortis dapibus felis. Nulla ac dui egestas elit lacinia elementum. Ut faucibus malesuada arcu, quis porta turpis rhoncus ac. Nulla pellentesque ante a libero sagittis lacinia. Ut venenatis ipsum rhoncus nulla ultrices interdum. Sed ut lacus eget elit aliquam maximus a sed urna. Ut iaculis eros et mi commodo, ut elementum dui malesuada. Curabitur nec sapien accumsan ante malesuada aliquet vel et turpis. Vivamus et ante ante. Vivamus finibus dignissim neque, quis tempor mauris eleifend at. | ||
|
||
Cras ut magna et arcu mollis tincidunt. Nulla tempor iaculis erat ac malesuada. Curabitur lobortis in odio ac tempor. Praesent id est in tellus tristique fringilla. Nunc urna felis, venenatis ut bibendum a, convallis vitae turpis. Phasellus nisl sem, imperdiet sit amet dui nec, auctor faucibus eros. Aenean bibendum metus sollicitudin dui ornare iaculis. Interdum et malesuada fames ac ante ipsum primis in faucibus. Maecenas vestibulum lacus at massa condimentum aliquam. Fusce quis leo magna. Morbi a sollicitudin augue. Fusce tortor tortor, imperdiet in interdum sit amet, vulputate vel urna. Proin purus odio, vulputate non volutpat quis, aliquet in quam. | ||
|
||
Sed faucibus dolor quis elit venenatis, eget suscipit urna pretium. Donec a aliquam massa. Proin euismod viverra bibendum. Nulla rhoncus venenatis purus, vitae pulvinar ligula euismod id. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nunc at mollis tortor. Phasellus a porta leo. Sed id diam ex. Vestibulum condimentum porttitor leo non volutpat. Nam in sem ipsum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut dignissim erat non augue rhoncus convallis. Curabitur rutrum lectus magna. | ||
|
||
Aenean pellentesque felis vitae augue facilisis, egestas semper libero bibendum. Morbi lobortis arcu quam, eu condimentum mauris interdum id. Duis ac nisl elit. Donec luctus maximus ex, dignissim feugiat eros lobortis a. Morbi bibendum mi eu erat condimentum, a interdum turpis venenatis. Sed rhoncus nec leo id pretium. Quisque ultricies semper hendrerit. Donec lorem ex, tempor eget libero eu, pretium tempus ex. In velit diam, rutrum ut velit ac, dictum fermentum mi. Suspendisse gravida odio non egestas volutpat. Proin ullamcorper rutrum cursus. Phasellus sapien libero, faucibus aliquam tortor eget, sollicitudin volutpat sem. Suspendisse commodo enim eget libero tincidunt, eget pellentesque risus cursus. Nulla non massa facilisis, semper nisi a, bibendum nisl. Curabitur interdum enim a quam luctus, in tristique nibh laoreet. | ||
|
||
Interdum et malesuada fames ac ante ipsum primis in faucibus. Mauris iaculis augue neque, sed malesuada neque condimentum id. Fusce vel convallis lacus. Nulla dapibus, sapien quis mattis blandit, sem lorem mattis lectus, vel vulputate odio sem sit amet tortor. Sed ac nunc nisl. Morbi turpis ligula, tempor eget nisl sit amet, lobortis dignissim felis. Maecenas fermentum quam non risus accumsan, eu tincidunt neque consectetur. In cursus felis eu dapibus molestie. Pellentesque quis purus gravida, vulputate leo a, venenatis nulla. Morbi nulla odio, interdum in massa et, euismod fringilla mi. Etiam facilisis sem ac lacus scelerisque eleifend. In ac feugiat metus, ut tempus magna. Sed eget lectus dolor. Vivamus in efficitur dolor. | ||
|
||
Duis mattis felis vitae lectus fermentum, at faucibus augue blandit. Curabitur vitae neque et risus rutrum aliquam. Aliquam malesuada, massa in pellentesque accumsan, magna lacus finibus ex, vel efficitur ante neque ut velit. Nullam eget commodo mauris. Mauris pretium interdum sem. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut interdum posuere dolor nec dapibus. Maecenas non tempus velit. Morbi eget risus risus. Integer bibendum molestie lorem tincidunt porttitor. | ||
|
||
Etiam elementum, odio sed maximus fringilla, massa dui efficitur ante, sed dictum est tellus at augue. Integer eleifend eros quis nibh aliquet rhoncus. Proin nibh dui, iaculis et molestie quis, interdum in felis. Fusce condimentum iaculis eleifend. Nam porttitor velit eu accumsan vehicula. Donec dapibus commodo risus vel lacinia. Phasellus et aliquet nisl. Proin eu mi eget sapien tempus malesuada at vitae ante. Fusce rhoncus eros in ligula mattis, et elementum lacus pulvinar. Maecenas rhoncus et eros a molestie. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters