🚧(frontend) add intro slider component with feature slides
Created a component for an intro slider to showcase app features. Each slide will include a minimal illustration and concise descriptions. Work In Progress, Slide logic will be added in upcomming commits.
This commit is contained in:
committed by
aleb_the_flash
parent
7ddc448c88
commit
7cee409d22
BIN
src/frontend/src/assets/intro-slider/1.png
Normal file
BIN
src/frontend/src/assets/intro-slider/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 KiB |
49
src/frontend/src/features/home/components/IntroSlider.tsx
Normal file
49
src/frontend/src/features/home/components/IntroSlider.tsx
Normal file
@@ -0,0 +1,49 @@
|
||||
import firstSlide from '@/assets/intro-slider/1.png'
|
||||
import { styled, VStack } from '@/styled-system/jsx'
|
||||
|
||||
const Heading = styled('h2', {
|
||||
base: {
|
||||
width: 'fit-content',
|
||||
marginBottom: 0,
|
||||
fontSize: '1.5rem',
|
||||
marginTop: '0.75rem',
|
||||
lineHeight: '2rem',
|
||||
maxWidth: '23rem',
|
||||
textAlign: 'center',
|
||||
textWrap: 'pretty',
|
||||
},
|
||||
})
|
||||
|
||||
const Body = styled('p', {
|
||||
base: {
|
||||
maxWidth: '23rem',
|
||||
textAlign: 'center',
|
||||
textWrap: 'pretty',
|
||||
lineHeight: '1.2rem',
|
||||
fontSize: '1rem',
|
||||
},
|
||||
})
|
||||
|
||||
const Image = styled('img', {
|
||||
base: {
|
||||
maxHeight: '330px',
|
||||
height: '100%',
|
||||
width: 'fit-content',
|
||||
},
|
||||
})
|
||||
|
||||
// todo - refactor it in a proper slider, only displaying a single slide yet
|
||||
export const IntroSlider = () => {
|
||||
return (
|
||||
<>
|
||||
<Image src={firstSlide} alt="" />
|
||||
<VStack justify={'center'} gap={0.5}>
|
||||
<Heading>Essayez Visio pour simplifier votre quotidien</Heading>
|
||||
<Body>
|
||||
Découvrez une solution intuitive et accessible, conçue pour tous les
|
||||
agents publics et leurs partenaires, et bien plus encore.
|
||||
</Body>
|
||||
</VStack>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user