diff --git a/client/src/App.css b/client/src/App.css index 39be4d0..4cc89b0 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -131,6 +131,27 @@ nav svg { color: #d1d5db; font-size: 16px; } +#introsection::before, +#introsection::after { + content: ""; + float: left; + color: rgb(0, 134, 244); +} +#introsection { + text-align: left; + padding: 20px; +} +#introsection h1 { + padding-top: 20px; + line-height: 33px; +} +#introsection h2 { + font-size: 16px; + font-weight: 400; +} +#introsection ul { + list-style-type: square; +} .chatLogWrapper { height: 80vh; overflow-y: auto; @@ -212,10 +233,11 @@ nav svg { .inputPromptWrapper { padding: 8px; - position: absolute; left: 0; right: 0; bottom: 0; + position: relative; + padding-top: 20px; } .inputPrompttTextarea { width: 80%; @@ -233,7 +255,13 @@ nav svg { overflow-y: hidden; } -@media screen and (max-width: 768px) { +@media screen and (min-width: 768px) { + .inputPromptWrapper { + position: absolute; + } +} + +@media screen and (max-width: 1024px) { .App { display: block; } @@ -269,4 +297,14 @@ nav svg { width: 30px; height: 30px; } + #introsection { + padding: 20px 20px 40px 20px; + font-size: 14px; + } + #introsection h1 { + font-size: 25px; + } + #introsection h2 { + font-size: 14px; + } } diff --git a/client/src/App.js b/client/src/App.js index b590208..94392e8 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -8,6 +8,7 @@ import Loading from "./components/Loading"; import Error from "./components/Error"; import NavLinks from "./components/NavLink"; import BotResponse from "./components/BotResponse"; +import IntroSection from "./components/IntroSection"; function App() { const [showMenu, setShowMenu] = useState(false); @@ -195,64 +196,68 @@ function App() {
-
- {chatLog.length > 0 && - chatLog.map((chat, idx) => ( -
-
-
- - - - - - -
{chat.chatPrompt}
+ {chatLog.length > 0 ? ( +
+ {chatLog.length > 0 && + chatLog.map((chat, idx) => ( +
+
+
+ + + + + + +
{chat.chatPrompt}
+
-
-
-
- - - - - - {chat.botMessage ? ( -
- -
- ) : err ? ( - - ) : ( - - )} +
+
+ + + + + + {chat.botMessage ? ( +
+ +
+ ) : err ? ( + + ) : ( + + )} +
-
- ))} -
+ ))} +
+ ) : ( + + )}
diff --git a/client/src/components/IntroSection.jsx b/client/src/components/IntroSection.jsx new file mode 100644 index 0000000..63e8a98 --- /dev/null +++ b/client/src/components/IntroSection.jsx @@ -0,0 +1,32 @@ +import React from "react"; + +const IntroSection = () => { + return ( +
+

Introducing Talkbot - The Ultimate AI Assistant

+

+ A cutting-edge AI-powered app that provides instant answers to any + question you may have. With Talkbot, you'll never be left searching for + answers again. Whether you need information for school or work, or just + want to know the latest news, Talkbot has you covered. +

+

+ Features: +

    +
  • Instant answers to any question
  • +
  • Deep learning technology that improves with usage
  • +
  • Continuously Learning
  • +
  • User-friendly interface
  • +
  • Available 24/7
  • +
+

+

+ Say goodbye to endless searching and typing, and say hello to TalkBot, + your personal AI assistant. Try it now and see for yourself how TalkBot + can make your life easier. +

+
+ ); +}; + +export default IntroSection;