|
| 1 | +import { createCell, Fragment } from 'web-cell'; |
| 2 | +import { Nav } from 'boot-cell/source/Navigator/Nav'; |
| 3 | +import { Button } from 'boot-cell/source/Form/Button'; |
| 4 | + |
| 5 | +import { Case } from './Case'; |
| 6 | +import { FooterList } from './FooterList'; |
| 7 | + |
| 8 | +import style from './index.less'; |
| 9 | +import { headers, products, footers } from './data'; |
| 10 | + |
| 11 | +export function ProductPage() { |
| 12 | + const logo = ( |
| 13 | + <img |
| 14 | + style={{ width: '24px' }} |
| 15 | + src="https://web-cell.dev/WebCell-0.f1ffd28b.png" |
| 16 | + /> |
| 17 | + ); |
| 18 | + return ( |
| 19 | + <Fragment> |
| 20 | + <nav className="bg-dark sticky-top py-1"> |
| 21 | + <Nav |
| 22 | + className="container text-light" |
| 23 | + align="between" |
| 24 | + list={[ |
| 25 | + { |
| 26 | + title: logo |
| 27 | + }, |
| 28 | + ...headers |
| 29 | + ]} |
| 30 | + /> |
| 31 | + </nav> |
| 32 | + <header className="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light"> |
| 33 | + <div class="col-md-5 p-lg-5 mx-auto my-5"> |
| 34 | + <h1 class="display-4 font-weight-normal">Punny headline</h1> |
| 35 | + <p class="lead font-weight-normal"> |
| 36 | + And an even wittier subheading to boot. Jumpstart your |
| 37 | + marketing efforts with this example based on Apple’s |
| 38 | + marketing pages. |
| 39 | + </p> |
| 40 | + <Button outline kind="secondary" href="#"> |
| 41 | + Coming soon |
| 42 | + </Button> |
| 43 | + </div> |
| 44 | + <div |
| 45 | + className={`${style['product-device']} shadow-sm d-none d-lg-block`} |
| 46 | + /> |
| 47 | + <div |
| 48 | + className={`${style['product-device']} ${style['product-device-2']} shadow-sm d-none d-lg-block`} |
| 49 | + /> |
| 50 | + </header> |
| 51 | + <main> |
| 52 | + {products.map(row => ( |
| 53 | + <div className="d-md-flex w-100 my-md-3 pl-md-3"> |
| 54 | + {row.map(item => ( |
| 55 | + <Case |
| 56 | + {...item} |
| 57 | + name="Another headline" |
| 58 | + description="And an even wittier subheading." |
| 59 | + /> |
| 60 | + ))} |
| 61 | + </div> |
| 62 | + ))} |
| 63 | + </main> |
| 64 | + <footer className="container py-5"> |
| 65 | + <div className="row"> |
| 66 | + <div class="col-12 col-md"> |
| 67 | + {logo} |
| 68 | + <small class="d-block mb-3 text-muted"> |
| 69 | + © 2019-{new Date().getFullYear()} |
| 70 | + </small> |
| 71 | + </div> |
| 72 | + {footers.map(FooterList)} |
| 73 | + </div> |
| 74 | + </footer> |
| 75 | + </Fragment> |
| 76 | + ); |
| 77 | +} |
0 commit comments