| 1 |
import { CreatingSite } from '@auto-launch/components/CreatingSite'; |
| 2 |
import { DescriptionGathering } from '@auto-launch/components/DescriptionGathering'; |
| 3 |
import { motion } from 'framer-motion'; |
| 4 |
|
| 5 |
const MAX_HEIGHT_SMALL = 400; |
| 6 |
|
| 7 |
export const Launch = ({ skipDescription, lastHeight }) => { |
| 8 |
const widthClass = 'mx-auto w-full max-w-2xl'; |
| 9 |
|
| 10 |
if (!skipDescription) { |
| 11 |
return ( |
| 12 |
<motion.div |
| 13 |
className={widthClass} |
| 14 |
animate={{ opacity: 1 }} |
| 15 |
exit={{ opacity: 0 }} |
| 16 |
transition={{ duration: 0.4 }} |
| 17 |
> |
| 18 |
<DescriptionGathering /> |
| 19 |
</motion.div> |
| 20 |
); |
| 21 |
} |
| 22 |
|
| 23 |
return ( |
| 24 |
<motion.div |
| 25 |
className={widthClass} |
| 26 |
initial={{ opacity: 0, height: lastHeight || 'auto' }} |
| 27 |
animate={{ opacity: 1, height: MAX_HEIGHT_SMALL }} |
| 28 |
transition={{ duration: 0.4 }} |
| 29 |
> |
| 30 |
<CreatingSite height={MAX_HEIGHT_SMALL} /> |
| 31 |
</motion.div> |
| 32 |
); |
| 33 |
}; |
| 34 |
|