@@ -9,8 +9,8 @@ import Course from '../../Types/course';
99import Lottie from 'react-lottie' ;
1010import animationData from '../../Assets/addclass2.json' ;
1111
12- const popUpStyle = "bg-green-light w-1/2 lg:w-2/3 h-1/2 mt-32 shadow-2xl text-white p-4" ;
13- const lottieStyle = " invisible md:visible w-0 h-0 md:w-1/2 md:h-1/2 m- auto mb-16" ;
12+ const popUpStyle = 'w-full h-1/2 text-white pb-8' ;
13+ const lottieStyle = ' invisible md:visible w-0 h-0 md:w-4/12 md:h-auto' ;
1414
1515const AddForm : React . FC = ( ) => {
1616 const [ title , setTitle ] = useState ( '' ) ;
@@ -27,7 +27,7 @@ const AddForm: React.FC = () => {
2727 loop : true ,
2828 autoplay : true ,
2929 animationData : animationData ,
30- rendererSettings : { }
30+ rendererSettings : { } ,
3131 } ;
3232
3333 useEffect ( ( ) => {
@@ -53,36 +53,41 @@ const AddForm: React.FC = () => {
5353 dispatch ( setForm ( open ) ) ;
5454 }
5555 return (
56- < div className = "w -full h-screen flex justify-center flex-row" >
56+ < div className = 'h -full w-1/2 flex justify-center flex-row border-4 mx-auto mt-16' >
5757 < section className = { popUpStyle } >
58- < section className = " flex flex-row justify-between" >
59- < h1 className = " md:text-2xl text-md sm:text-lg" > Add new class.</ h1 >
60- < Link to = " /homepage" className = "flex mb-4" >
58+ < section className = ' flex flex-row justify-between items-center bg-black p-8 h-20 mb-4 text-3xl' >
59+ < h1 className = 'font-bold md:text-3xl text-xl' > Add new class.</ h1 >
60+ < Link to = ' /homepage' >
6161 < button
6262 onClick = { ( ) => {
6363 dispatch ( setForm ( open ) ) ;
6464 } }
6565 >
66- < CloseBtn className = " w-10 h-10" />
66+ < CloseBtn className = ' w-10 h-10' />
6767 </ button >
6868 </ Link >
6969 </ section >
70- < article className = " md:h-3/4 w-full justify-center p-0 h-0" >
70+ < article className = 'flex flex-col md:h-3/4 w-full justify-center items-center p-0 h-0' >
7171 < div className = { lottieStyle } >
72- < Lottie options = { defaultOptions }
73- height = { 200 }
74- width = { '100%' }
75- />
72+ < Lottie options = { defaultOptions } height = { '100%' } width = { '100%' } />
7673 </ div >
77- < form onSubmit = { ( e ) => handleSubmit ( e ) } className = "flex flex-row items-center w-full shadow-xl" >
74+ < form
75+ onSubmit = { ( e ) => handleSubmit ( e ) }
76+ className = 'flex flex-row items-center w-7/12 border-4 border-green'
77+ >
7878 < input
79- className = " h-14 w-full sm:w-full text-black rounded-l-sm"
80- type = " text"
79+ className = ' h-14 w-full sm:w-full text-2xl text- black px-6 focus:outline-none'
80+ type = ' text'
8181 value = { title }
82- placeholder = " Input class title."
82+ placeholder = ' Input class title.'
8383 onChange = { ( e ) => setTitle ( e . target . value ) }
8484 />
85- < button type = "submit" className = "bg-green text-white text-lg lg:text-2xl sm:text-xl w-4/12 lg:w-2/12 h-14 rounded-r-sm" > Add</ button >
85+ < button
86+ type = 'submit'
87+ className = 'bg-green text-white text-lg lg:text-2xl sm:text-xl w-5/12 lg:w-3/12 h-14'
88+ >
89+ Add
90+ </ button >
8691 </ form >
8792 </ article >
8893 </ section >
0 commit comments