File tree Expand file tree Collapse file tree
pictique/src/lib/fragments/CreatePostModal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Dev URL
2- NEXT_PUBLIC_URL = http ://localhost
3- NEXT_PUBLIC_BASE_URL = http ://192.168.0.226:4444
2+ NEXT_PUBLIC_URL = https ://blabsy.w3ds-prototype.merul.org
3+ NEXT_PUBLIC_BASE_URL = https ://blabsy.w3ds-prototype.merul.org
44
55# Emulator
66NEXT_PUBLIC_USE_EMULATOR = false
Original file line number Diff line number Diff line change 5151 <button
5252 type =" button"
5353 class =" rounded-full p-2 hover:bg-gray-100"
54- on:click ={closeCreatePostModal }
54+ onclick ={closeCreatePostModal }
5555 >
5656 ✕
5757 </button >
5858 </div >
5959
6060 <div class =" mb-4" >
61+ <!-- svelte-ignore element_invalid_self_closing_tag -->
6162 <textarea
6263 bind:value ={text }
6364 placeholder =" What's on your mind?"
7071 <div class =" mb-4 grid grid-cols-2 gap-4" >
7172 {#each images as image , index }
7273 <div class =" relative" >
74+ <!-- svelte-ignore a11y_img_redundant_alt -->
7375 <img
7476 src ={image }
7577 alt =" Post image"
7880 <button
7981 type =" button"
8082 class =" absolute top-2 right-2 rounded-full bg-black/50 p-1 text-white hover:bg-black/70"
81- on:click ={() => removeImage (index )}
83+ onclick ={() => removeImage (index )}
8284 >
8385 ✕
8486 </button >
8789 </div >
8890 {/if }
8991
90- <div class =" flex items-center justify-between" >
91- <label class =" cursor-pointer rounded-lg bg-gray-100 px-4 py-2 hover:bg-gray-200" >
92- <input type ="file" accept ="image/*" class ="hidden" on:change ={handleImageUpload } />
92+ <div class =" flex items-center justify-between gap-2 " >
93+ <label class =" w-full cursor-pointer text-center rounded-full bg-gray-100 px-4 py-3 hover:bg-gray-200" >
94+ <input type ="file" accept ="image/*" class ="hidden" onchange ={handleImageUpload } />
9395 Add Photo
9496 </label >
9597
9698 <Button
9799 variant =" secondary"
100+ size =" sm"
98101 callback ={handleSubmit }
99102 isLoading ={isSubmitting }
100103 disabled ={! text .trim () && images .length === 0 }
You can’t perform that action at this time.
0 commit comments