import React, { useState } from 'react' import { Background } from '../..' import { Card, Flex, FlexItem, Select, Title } from '../..' const BackgroundImage = (props) => { const [transition, setTransition] = useState('') const handleTransition = ({ target }) => { setTransition(target.value) } const options = [ { value: 'fade', }, { value: 'blur', }, { value: 'scale', }, ] return ( <> </FlexItem> <FlexItem padding="lg" {...props} > <Card shadow="deepest" {...props} > { 'We cannot seek achievement for ourselves and forget about progress and prosperity for our community... Our ambitions must be broad enough to include the aspirations and needs of others, for their sakes and for our own. - Cesar Chavez' } </Card> </FlexItem> </Flex> </Background> <Flex marginTop="xl"> <FlexItem fixedSize="250px"> <Select blankSelection="Select a Transition..." label="" name="dropdown" onChange={handleTransition} options={options} transition={transition} {...props} /> </FlexItem> </Flex> </> ) } export default BackgroundImage