You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import { BackgroundImage } from '@rstack-dev/doc-ui/background-image';
- import { Hero } from '@rstack-dev/doc-ui/hero';
- import './index.scss';
-
- export const HeroStory = () => {
- const handleClickLearnMore = () => {
- console.log('learn more');
- };
- const handleClickGetStarted = () => {
- console.log('get started');
- };
-
- return (
- <>
- <div style={{ position: 'relative' }}>
- <BackgroundImage />
- <Hero
- showStars
- onClickLearnMore={handleClickLearnMore}
- onClickGetStarted={handleClickGetStarted}
- />
- <Hero
- showStars
- githubURL="https://github.com/rspack-contrib/rstack-doc-ui"
- onClickLearnMore={handleClickLearnMore}
- onClickGetStarted={handleClickGetStarted}
- />
- </div>
- </>
- );
- };
-
- export default {
- title: 'Hero',
- };
|