janevalencia / nextjs-ssr-comments

Interactive Comment Sections developed using NextJS/TailwindCSS/Express-MongoDB by Jane Valencia
https://fem-comments-hucu-janevalencia.vercel.app/
2 stars 0 forks source link

#6 [FE] - Create reusable Modal component #21

Closed janevalencia closed 2 years ago

janevalencia commented 2 years ago

Description

Not using any library, building the reusable Modal component for the project from scratch with our custom-styling.

Testing Instruction

✅ Clicking the transparent-bg of Modal will auto-close it ✅ Cancel button will close the Modal ✅ (Temporary) Yes, Delete button will print on console 'comment deleted' => the callback func is working, only need to implement the [BE] further ✅ Comment DELETE CTA is opening up the Modal

Modal component [Screenshot]
janevalencia commented 2 years ago

Update: After carefully checking the design-guideline of this project, I have decided not to use any icons for the modal-cta buttons.