Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added curated chatbot #275

Merged
merged 1 commit into from
Nov 10, 2024
Merged

added curated chatbot #275

merged 1 commit into from
Nov 10, 2024

Conversation

ShivanshPlays
Copy link
Contributor

Add Chatbot Button with Toggle Functionality

Overview

This PR introduces a floating chatbot button at the bottom-right of the page. The button toggles the visibility of the chatbot when clicked. The button includes smooth hover and focus transitions for improved user interaction.

Changes

1. Button Styling

  • A circular button with a purple background and a custom chef hat icon inside for a unique look.
  • Styled with smooth hover and focus states for better interaction feedback:
    • Hover effect changes the background color to a darker shade of purple.
    • Focus ring for accessibility, ensuring the button is easy to interact with on all devices.

2. Chatbot Toggle

  • When the button is clicked, it toggles the state of chatbotOpen using the toggleChatbotOpen function.
  • If the chatbotOpen state is true, the Chatbot component is rendered below the button.
  • The chatbot remains open until the user closes it by clicking the button again, providing a simple and intuitive flow.

3. Chatbot Flow

  • The user clicks the floating chatbot button to open the chatbot.
  • Once opened, the chatbot can display a welcome message, greet the user, and prompt them to ask questions and then continue with the curated flow according to the website's needs.
  • The user can interact with the chatbot by typing questions or selecting options.
  • To close the chatbot, the user clicks the button again, hiding the chatbot and returning to the original page view.

4. UI/UX Improvements

  • Added smooth transition effects to make the button interactions feel responsive.
  • Styled the button to ensure it's large enough and easy to interact with on both mobile and desktop devices.
  • The chatbot button's positioning and responsiveness are optimized for seamless user experience.

Screenshots

1.mp4

Related Issues

Testing

  • Test the button in both desktop and mobile views to ensure it is correctly positioned and responds to user interaction.
  • Verify that the chatbot opens and closes correctly when the button is clicked.
  • Test the chatbot flow to ensure it behaves as expected, including greeting the user and handling basic interactions.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Thank you for contributing to this project, your support is much appreciated.

Stay awesome! 😎

@Vimall03 Vimall03 merged commit 6d6e114 into Vimall03:main Nov 10, 2024
1 check passed
@ShivanshPlays ShivanshPlays deleted the chatbot branch November 10, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants