|
| 1 | +import { createCell, Fragment } from 'web-cell'; |
| 2 | +import { NavBar } from 'boot-cell/source/Navigator'; |
| 3 | +import { Button } from 'boot-cell/source/Form'; |
| 4 | +import { Card } from 'boot-cell/source/Content/Card'; |
| 5 | + |
| 6 | +import { FooterList } from '../../../component/FooterList'; |
| 7 | +import { prices } from './data'; |
| 8 | +import { footers } from '../Product/data'; |
| 9 | + |
| 10 | +export function PricingPage() { |
| 11 | + const foot_nav = [...footers]; |
| 12 | + |
| 13 | + foot_nav.splice(-2, 1); |
| 14 | + |
| 15 | + return ( |
| 16 | + <Fragment> |
| 17 | + <NavBar |
| 18 | + theme="light" |
| 19 | + background="light" |
| 20 | + brand="Company name" |
| 21 | + menu={[ |
| 22 | + { title: 'Features' }, |
| 23 | + { title: 'Enterprise' }, |
| 24 | + { title: 'Support' }, |
| 25 | + { title: 'Pricing' } |
| 26 | + ]} |
| 27 | + > |
| 28 | + <Button outline>Sign up</Button> |
| 29 | + </NavBar> |
| 30 | + <div |
| 31 | + className="px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center" |
| 32 | + style={{ maxWidth: '43.75rem' }} |
| 33 | + > |
| 34 | + <h1 className="display-4">Pricing</h1> |
| 35 | + <p className="lead"> |
| 36 | + Quickly build an effective pricing table for your potential |
| 37 | + customers with this Bootstrap example. It’s built with |
| 38 | + default Bootstrap components and utilities with little |
| 39 | + customization. |
| 40 | + </p> |
| 41 | + </div> |
| 42 | + <div class="container"> |
| 43 | + <div class="card-deck mb-3 text-center"> |
| 44 | + {prices.map(({ level, amount, details, action }, index) => ( |
| 45 | + <Card |
| 46 | + class="mb-4 shadow-sm" |
| 47 | + header={ |
| 48 | + <h4 class="my-0 font-weight-normal">{level}</h4> |
| 49 | + } |
| 50 | + title={ |
| 51 | + <span style={{ fontSize: '2.5rem' }}> |
| 52 | + ${amount}{' '} |
| 53 | + <small class="text-muted">/ mo</small> |
| 54 | + </span> |
| 55 | + } |
| 56 | + > |
| 57 | + <ul class="list-unstyled mt-3 mb-4"> |
| 58 | + {details.map(item => ( |
| 59 | + <li>{item}</li> |
| 60 | + ))} |
| 61 | + </ul> |
| 62 | + <Button outline={!index} block size="lg"> |
| 63 | + {action} |
| 64 | + </Button> |
| 65 | + </Card> |
| 66 | + ))} |
| 67 | + </div> |
| 68 | + <footer class="pt-4 my-md-5 pt-md-5 border-top"> |
| 69 | + <div class="row"> |
| 70 | + <div class="col-12 col-md"> |
| 71 | + <img |
| 72 | + style={{ width: '24px' }} |
| 73 | + src="https://web-cell.dev/WebCell-0.f1ffd28b.png" |
| 74 | + /> |
| 75 | + <small class="d-block mb-3 text-muted"> |
| 76 | + © 2017-{new Date().getFullYear()} |
| 77 | + </small> |
| 78 | + </div> |
| 79 | + {foot_nav.map(item => ( |
| 80 | + <FooterList |
| 81 | + colSpan={12 / foot_nav.length} |
| 82 | + {...item} |
| 83 | + /> |
| 84 | + ))} |
| 85 | + </div> |
| 86 | + </footer> |
| 87 | + </div> |
| 88 | + </Fragment> |
| 89 | + ); |
| 90 | +} |
0 commit comments