SawyerHood / draw-a-ui

Draw a mockup and generate html for it
https://draw-a-ui.com
MIT License
13.18k stars 1.58k forks source link

feat/improv: Design consistency, additional user guides and recreate brand new html #29

Open Chandima1990 opened 9 months ago

Chandima1990 commented 9 months ago

Hi, I am Chandima, working as a full-stack developer with Dotnet and Angular. I found your effort on this project very thrilling, and I enjoyed a lot playing around with it.

I have made some improvements that I felt were nice to have. But as I am not an expert on NextJs, I might have made mistakes in the framework usage and best practices. Please add any comments you might see that I can work with and improve so I can correct them.

These are the features I have added to this PR.

Note : This might be a bit costly as the token count is going to be high with bigger designs. So maybe later we can let the user decide whether they need to continue with the same design. Or if GPT implements a solution to maintain consistency, it would be a very nice one to have. But for the time being, addition 3 will be helpful to prevent this

Option 2 and 3 are getting reset after a successful generation since they have already catered the instructions into the HTML and will no longer be needed.

This is the feature in action.

https://github.com/SawyerHood/draw-a-ui/assets/15955557/c7f18ddd-b200-407b-966e-128efbb33a53

I hope you find these improvements helpful to the users and a good addition to your repo.

Have a nice day!