awesome-django-blog icon indicating copy to clipboard operation
awesome-django-blog copied to clipboard

Update Ezra Chat Bot styling

Open freedompraise opened this issue 1 year ago • 19 comments

Context

The current UI is a bit crappy and doesn't do well in responsiveness. Also, its black background colour blends into the main background of the site ((prior to prompting) which doesn't look good.

What's your idea to make it better?

Update the UI to something sleek and responsive

Screenshots

Record

  • [x] I have read the Contributing Guidelines
  • [x] I have searched the issues for a similar request
  • [x] I want to work on this issue

freedompraise avatar Apr 06 '24 02:04 freedompraise

Good idea. All of the CSS for Ezra has a specific section in the main.css.

The chatbot uses a combination of vanilla JS and HTMX, so be on the lookout for that.

I made a 1 hour video about how I created the bot that might be useful as a reference: https://youtu.be/4EYe4-tpRVY?si=inTga6eMqhBjchny

jsolly avatar Apr 06 '24 02:04 jsolly

Good idea. All of the CSS for Ezra has a specific section in the main.css.

The chatbot uses a combination of vanilla JS and HTMX, so be on the lookout for that.

I made a 1 hour video about how I created the bot that might be useful as a reference: https://youtu.be/4EYe4-tpRVY?si=inTga6eMqhBjchny

Okay

I will pick up this issue now

freedompraise avatar Apr 18 '24 19:04 freedompraise

I really like the styling the ring.com uses for their chat. Maybe borrow inspiration from them.

CleanShot 2024-04-30 at 21 45 17

jsolly avatar May 01 '24 01:05 jsolly

I really like the styling the ring.com uses for their chat. Maybe borrow inspiration from them.

CleanShot 2024-04-30 at 21 45 17

Okay cool. I've been in need of inspiration this whole time😅

freedompraise avatar May 04 '24 01:05 freedompraise

Good idea. All of the CSS for Ezra has a specific section in the main.css.

The chatbot uses a combination of vanilla JS and HTMX, so be on the lookout for that.

I made a 1 hour video about how I created the bot that might be useful as a reference: https://youtu.be/4EYe4-tpRVY?si=inTga6eMqhBjchny

I find it intriguing that there's vanilla JS here😅. You made me believe it was forbidden for the project when I was implementing the comment functionality with htmx

freedompraise avatar Jun 01 '24 16:06 freedompraise

@jsolly I'm having issues with updating the styling here.

Changes in the styling aren't reflecting on the site

freedompraise avatar Jun 02 '24 00:06 freedompraise

@freedompraise how are you running the app? Can you try this command?

python3 app/manage.py runserver livereload

If that doesn't work, you might want to try going into the network tab and checking 'disable cache'

Screenshot 2024-06-02 at 8 13 25 AM

jsolly avatar Jun 02 '24 12:06 jsolly

@jsolly I've checked the 'disable cache', and it isn't working.

The command to run with livereload returns this error: CommandError: "livereload" is not a valid port number or address:port pair. (venv)

freedompraise avatar Jun 03 '24 19:06 freedompraise

I was wrong in how livereload works. I just pushed a change. Can you try this?

1 - Add LIVERELOAD=True to your .env file 2 - Run these two commands in TWO different terminal windows

python3 app/manage.py runserver
python3 app/manage.py livereload

Make sure the runserver command is run before the livereload.

3 - Make a CSS change. It should be reflected in the app immediately.

jsolly avatar Jun 05 '24 17:06 jsolly

I was wrong in how livereload works. I just pushed a change. Can you try this?

1 - Add LIVERELOAD=True to your .env file 2 - Run these two commands in TWO different terminal windows

python3 app/manage.py runserver
python3 app/manage.py livereload

Make sure the runserver command is run before the livereload.

3 - Make a CSS change. It should be reflected in the app immediately. okay

freedompraise avatar Jun 06 '24 06:06 freedompraise

@jsolly It returns this error: $ python app/manage.py livereload Unknown command: 'livereload' Type 'manage.py help' for usage. (venv)

freedompraise avatar Jun 13 '24 02:06 freedompraise

@freedompraise please make sure you add LIVERELOAD=True to your .env file. If you don't do that, you get the error you are mentioning.

jsolly avatar Jun 13 '24 16:06 jsolly

@freedompraise please make sure you add LIVERELOAD=True to your .env file. If you don't do that, you get the error you are mentioning.

Alright

freedompraise avatar Jun 20 '24 07:06 freedompraise

It's working fine

freedompraise avatar Jun 23 '24 21:06 freedompraise

@jsolly I still am not observing any changes. Could it be because I'm working on the staticfiles folder?

freedompraise avatar Jun 24 '24 06:06 freedompraise

Weird. Can we take a look together in a call? Also fun to catch up =]

Find a slot on my calendar!

https://cal.com/jsolly/coffee-chat

jsolly avatar Jun 24 '24 11:06 jsolly

Alright!

freedompraise avatar Jun 28 '24 12:06 freedompraise

Hey @freedompraise I see the branch is still open. Do you need any more help?

I am pretty sure we got all the livereloading stuff working in our call.

jsolly avatar Aug 04 '24 00:08 jsolly

Hello John. I encountered some styling conflicts earlier, and struggled to center a few divs😪

I am back on it now.

Made some changes earlier, and should make the PR today

freedompraise avatar Aug 21 '24 03:08 freedompraise