Skip to content

Commit

Permalink
more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliott committed Oct 18, 2024
1 parent 5df8175 commit d2aa4e3
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 51 deletions.
60 changes: 34 additions & 26 deletions packages/react/components/hero/Hero.example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,39 @@ import React from 'react'
import { Hero } from './index'
import { Container } from '@/components/container'
import { Title } from '@/components/title'
import { Button } from '@/components/button'

const HeroExample: React.ReactNode = <Hero
backgroundSrc='https://picsum.photos/id/1/1500/600'

>
<Container>
<Title
inverted
level='TWO'
markup='h1'
>
Bonjour Michel
</Title>
<Title
inverted
markup='span'
subtitle
>
Fugiat velit dolor ad adipisicing id quis enim cupidatat Lorem dolore aute excepteur tempor.
</Title>
<Button>
Click me !{' '}
</Button>
</Container>
</Hero>
import { Box, Columns, ColumnsItem, Section, Text } from '@/lib'

const HeroExample: React.ReactNode = (
<Columns multiline>
<ColumnsItem>
<Hero overlap className='has-pattern-dark'>
<Container>
<Title
inverted
level='TWO'
markup='h1'
>
Internet garanti
</Title>
<Text
className='is-inverted has-text-weight-bold'
inverted
>
Profitez dInternet dès labonnement et même en cas de coupure grâce à une clé 4G dans
les nouvelles offres Bbox.
</Text>
</Container>
</Hero>
<Section>
<Container>
<Box>
<Title level='TWO'>
Internet garanti
</Title>
</Box>
</Container>
</Section>
</ColumnsItem>
</Columns>
)
export default HeroExample
10 changes: 5 additions & 5 deletions packages/react/components/icon/Icon.example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ const IconExample: React.ReactNode =
<>
<Icon
name='tri-search'
size='small'
size='medium'
status='SUCCESS'
/>
<Icon
name='tri-search'
size='small'
name='tri-check'
size='medium'
status='SUCCESS'
statusPosition='top'
/>
<Icon
name='tri-search'
size='small'
name='tri-bell'
size='medium'
status='SUCCESS'
statusPosition='bottom'
/>
Expand Down
1 change: 1 addition & 0 deletions packages/react/components/section/Section.example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Section } from './index'
import { Title } from '@/components/title'

const SectionExample: React.ReactNode =

<>
<Section>
<Title level='ONE'>
Expand Down
3 changes: 2 additions & 1 deletion packages/react/components/stepper/Stepper.example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Stepper, StepperStep } from './index'

const StepperExample: React.ReactNode =
<Stepper>
<Stepper centered>
<StepperStep
done
label='Récapitulatif'
Expand All @@ -27,6 +27,7 @@ const StepperExample: React.ReactNode =
label='Confirmation'
step={5}
/>
Stepp
</Stepper>

export default StepperExample
29 changes: 10 additions & 19 deletions packages/react/components/title/Title.example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,15 @@ import React from 'react'
import { Columns, ColumnsItem } from '../columns'
import { Title } from './index'

const TitleExample: React.ReactNode =

<>
<Columns multiline>
<ColumnsItem size={12}>
<Title
level="ONE"
onClick={function noRefCheck() { }}
>
Ceci titre
</Title>
</ColumnsItem>
<ColumnsItem size={12}>
<Title subtitle>
Ceci est un sous-titre
</Title>
</ColumnsItem>
</Columns>
</>
const TitleExample: React.ReactNode = (
<Columns multiline>
<ColumnsItem size={12}>
<Title level='ONE'>Ceci titre</Title>
</ColumnsItem>
<ColumnsItem size={12}>
<Title subtitle>Ceci est un sous-titre</Title>
</ColumnsItem>
</Columns>
)

export default TitleExample

0 comments on commit d2aa4e3

Please sign in to comment.