@@ -2,7 +2,9 @@ import { createCell, Fragment } from 'web-cell';
22import classNames from 'classnames' ;
33import { Button } from 'boot-cell/source/Form/Button' ;
44import { TooltipBox } from 'boot-cell/source/Prompt/Tooltip' ;
5- import { DropMenu , DropMenuProps } from 'boot-cell/source/Navigator' ;
5+ import { DropMenu , DropMenuProps } from 'boot-cell/source/Navigator/DropMenu' ;
6+ import { Embed } from 'boot-cell/source/Media/Embed' ;
7+ import { Image } from 'boot-cell/source/Media/Image' ;
68
79import { scaffold , feature } from './data' ;
810import style from './Main.module.less' ;
@@ -43,9 +45,8 @@ export function MainPage() {
4345 </ section >
4446
4547 < section className = "container py-5" id = "Demo" >
46- < iframe
47- className = "w-100 border-0 rounded"
48- style = { { height : '90vh' } }
48+ < Embed
49+ is = "iframe"
4950 title = "WebCell scaffold"
5051 src = "https://codesandbox.io/embed/webcell-demo-9gyll?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FClock.tsx&theme=dark"
5152 allow = "geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
@@ -54,35 +55,39 @@ export function MainPage() {
5455 </ section >
5556
5657 < div className = "container" >
57- < h2 className = "text-center display-4" > 核心特性</ h2 >
58+ < h2 className = "text-center display-4 mb-5 " > 核心特性</ h2 >
5859
5960 { feature . map ( ( { title, summary, link, logo } , index ) => (
6061 < Fragment >
6162 < section
6263 className = { classNames (
63- 'd-flex' ,
64- 'align-items-center' ,
65- 'justify-content-between' ,
64+ 'row' ,
65+ 'align-items-end' ,
6666 index % 2 && 'flex-row-reverse'
6767 ) }
6868 >
69- < div >
69+ < div className = "col-md-10" >
7070 < h2 className = { style [ 'featurette-heading' ] } >
7171 { title }
7272 </ h2 >
7373 < p className = "lead" > { summary } </ p >
7474 </ div >
75- < a
76- className = "w-25 mx-3"
77- target = "_blank"
78- href = { link }
79- >
80- < img className = "img-fluid" src = { logo } />
75+ < a className = "col-md-2" target = "_blank" href = { link } >
76+ < Image
77+ fluid
78+ className = { style [ 'featurette-logo' ] }
79+ src = { logo }
80+ />
8181 </ a >
8282 </ section >
8383
8484 { index + 1 < feature . length ? (
85- < hr className = { style [ 'featurette-divider' ] } />
85+ < hr
86+ className = { classNames (
87+ 'my-5' ,
88+ style [ 'featurette-divider' ]
89+ ) }
90+ />
8691 ) : null }
8792 </ Fragment >
8893 ) ) }
0 commit comments