diff --git a/client/src/components/ChatbotHelp.css b/client/src/components/ChatbotHelp.css new file mode 100644 index 0000000..d8f6f82 --- /dev/null +++ b/client/src/components/ChatbotHelp.css @@ -0,0 +1,30 @@ +.chatbotHelpContainer { + position: fixed; + display: flex; + bottom: 10px; /* Adjust this to where you want the element */ + right: 20px; /* Adjust this to where you want the element */ + z-index: 1000; /* Ensures it stays on top of other elements */ +} + +.chatbotHelpContainer svg:nth-of-type(2){ + transform: translateX(58px); + z-index: 888; + transition: fill 0.3s ease, filter 0.3s ease; +} + +.chatbotHelpContainer svg:nth-of-type(2) circle{ + filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3)); + cursor: pointer; + +} +.chatbotHelpContainer svg:nth-of-type(2) circle:hover{ + fill: black; +} +.chatbotHelpContainer svg:nth-of-type(1):hover ~ svg:nth-of-type(2) circle{ + fill: black; +} +.chatbotHelpContainer svg:nth-of-type(1){ + transform: translate(175px, 85px); + z-index: 889; + cursor: pointer; +} \ No newline at end of file diff --git a/client/src/components/ChatbotHelp.jsx b/client/src/components/ChatbotHelp.jsx new file mode 100644 index 0000000..3628298 --- /dev/null +++ b/client/src/components/ChatbotHelp.jsx @@ -0,0 +1,23 @@ +import React from "react"; +import "./ChatbotHelp.css"; + +const ChatbotHelp = () => { + return ( +
+ + + + + + +
+ ); +}; + +export default ChatbotHelp; diff --git a/client/src/pages/Home.jsx b/client/src/pages/Home.jsx index 79d56b2..e0135f7 100644 --- a/client/src/pages/Home.jsx +++ b/client/src/pages/Home.jsx @@ -3,6 +3,7 @@ import Carousel from '../components/Carousel' import CategoriesHead from '../components/TopCategoriesHead' import TopCategoriesList from '../components/TopCategoriesList' import BuyCard from '../components/BuyCards' +import ChatbotHelp from '../components/ChatbotHelp' function Home() { return ( @@ -16,6 +17,7 @@ function Home() { + ) }