diff --git a/private/Notes.txt b/private/Notes.txt index 8264173..d944832 100644 --- a/private/Notes.txt +++ b/private/Notes.txt @@ -44,4 +44,6 @@ docker rename reverse-proxy-frontend ############################################################################################## import { makeStyles, useTheme } from "@material-ui/core/styles"; - const theme = useTheme(); \ No newline at end of file + const theme = useTheme(); + + https://www.flaticon.com/free-icon/wizard_2534554?term=wizard&page=1&position=64 \ No newline at end of file diff --git a/public/icons/wizard.png b/public/icons/wizard.png new file mode 100644 index 0000000..a4d44c4 Binary files /dev/null and b/public/icons/wizard.png differ diff --git a/src/features/chatbot/components/Wizard.js b/src/features/chatbot/components/Wizard.js index 0e9b5fe..c27624d 100644 --- a/src/features/chatbot/components/Wizard.js +++ b/src/features/chatbot/components/Wizard.js @@ -1,21 +1,60 @@ import React from "react"; import ChatBot from "react-simple-chatbot"; +import { ThemeProvider } from "styled-components"; +import { useTheme } from "@material-ui/core/styles"; const Wizard = () => { + const theme = useTheme(); + + const botTheme = { + background: "#f5f8fb", + fontFamily: "monospace", + headerBgColor: theme.palette.primary.main, + headerFontColor: "#fff", + headerFontSize: "16px", + botBubbleColor: theme.palette.primary.main, + botFontColor: "#fff", + userBubbleColor: "#fff", + userFontColor: "#4a4a4a" + }; + const steps = [ { - id: "0", - message: "Welcome to react chatbot!", - trigger: "1" + id: "1", + message: "I'm the wizard.", + trigger: "2" }, { - id: "1", - message: "Bye!", + id: "2", + message: "I know everything about nothing. What do you want to ask me?", + trigger: "3" + }, + { + id: "3", + message: "Please hurry. I don't have time to waste.", + trigger: "4" + }, + { + id: "4", + user: true, + trigger: "5" + }, + { + id: "5", + message: "Hi {previousValue}, nice to meet you!", end: true } ]; - return ; + return ( + + + + ); }; export default Wizard;