| 1 |
import styles from './src/styles'; |
| 2 |
import paypal from './src/paypal.js'; |
| 3 |
import stripe from './src/stripe.js'; |
| 4 |
import configuration from './src/configuration.js'; |
| 5 |
import givewp101 from './src/givewp101.js'; |
| 6 |
import addons from './src/addons.js'; |
| 7 |
|
| 8 |
import {withA11y} from '@storybook/addon-a11y'; |
| 9 |
|
| 10 |
export default { |
| 11 |
title: 'Setup Page/Examples', |
| 12 |
decorators: [withA11y], |
| 13 |
}; |
| 14 |
|
| 15 |
const Styles = |
| 16 |
` |
| 17 |
<style> |
| 18 |
` + |
| 19 |
styles + |
| 20 |
` |
| 21 |
</style> |
| 22 |
`; |
| 23 |
|
| 24 |
export const Configuration = () => |
| 25 |
Styles + |
| 26 |
` |
| 27 |
<section> |
| 28 |
<header> |
| 29 |
<h2>Create your first donation form in minutes</h2> |
| 30 |
<span class="badge badge-complete">Complete</span> |
| 31 |
</header> |
| 32 |
<main> |
| 33 |
` + |
| 34 |
configuration() + |
| 35 |
` |
| 36 |
</main> |
| 37 |
</section> |
| 38 |
`; |
| 39 |
|
| 40 |
export const Gateways = () => |
| 41 |
Styles + |
| 42 |
` |
| 43 |
<section> |
| 44 |
<header> |
| 45 |
<h2>Connect a payment gateway to begin accepting donations</h2> |
| 46 |
</header> |
| 47 |
<main> |
| 48 |
` + |
| 49 |
paypal() + |
| 50 |
stripe() + |
| 51 |
` |
| 52 |
</main> |
| 53 |
<footer> |
| 54 |
Want to use a different gateway? GiveWP has support for many others including Authorize.net, Square, Razorpay and more! |
| 55 |
<a href="#">View all gateways</a> |
| 56 |
</footer> |
| 57 |
</section> |
| 58 |
`; |
| 59 |
|
| 60 |
export const Resources = () => |
| 61 |
Styles + |
| 62 |
` |
| 63 |
<section> |
| 64 |
<header> |
| 65 |
<h2>Level up your fundraising with these great resources</h2> |
| 66 |
</header> |
| 67 |
<main> |
| 68 |
` + |
| 69 |
givewp101() + |
| 70 |
addons() + |
| 71 |
` |
| 72 |
</main> |
| 73 |
</section> |
| 74 |
`; |
| 75 |
|