PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / AutoLaunch / components / Launch.jsx

Launch.jsx in Extendify 3.1.5, at src/AutoLaunch/components/Launch.jsx

34 lines 833 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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