L3dson

trying something

Apr 17th, 2022
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div className='max-w-[650px] flex bg-slate-100 m-5 border-black p-5 grow flex-col'>
  2.                         <div className='m-5 border'>
  3.                             <div className="max-w-lg shadow-md">
  4.                                 <form action="" className="w-full p-4">
  5.                                     <div className="mb-2">
  6.                                     <label for="comment" className="text-lg text-gray-600">Add a description</label>
  7.                                     <textarea className="w-full h-20 p-2 border rounded focus:outline-none focus:ring-gray-300 focus:ring-1"
  8.                                         name="comment" placeholder="" onChange={(e)=>{setDescriptionPost(e.target.value)}}></textarea>
  9.                                     </div>
  10.                                 </form>
  11.                             </div>
  12.                         </div>
  13.  
  14.                         <div className='max-w-auto flex flex-col items-center content-center justify-items-center'>
  15.                             <form onSubmit={formHandler}>
  16.                             <div class="flex justify-center">
  17.                                 <div class="mb-3 w-96">
  18.                                     <label for="formFile" class="form-label inline-block mb-2 text-gray-700"></label>
  19.                                     <input class="form-control
  20.                                    block
  21.                                    w-full
  22.                                    px-3
  23.                                    py-1.5
  24.                                    text-base
  25.                                    font-normal
  26.                                    text-gray-700
  27.                                    bg-white bg-clip-padding
  28.                                    border border-solid border-gray-300
  29.                                    rounded
  30.                                    transition
  31.                                    ease-in-out
  32.                                    m-0
  33.                                    focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none" type="file" id="formFile" />
  34.                                 </div>
  35.                                 </div>
  36.                                 <button type='submit' className='text-white bg-blue-700 hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 font-medium rounded-full text-sm px-5 py-2.5 text-center mr-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 mt-5 h-auto'>Upload image</button>
  37.                                 {returnUploadPostButton()}
  38.                                 <h2 className='text-solid-400 text-base font-light m-5'>First upload an image before to upload a post</h2>
  39.                             </form>
  40.                             {/* <h3>Uploaded {progress} %</h3> */}
  41.                         </div>
  42.                     </div>    
  43.  
Advertisement
Add Comment
Please, Sign In to add comment