feat: add landing page content

- brief description of the app
- a list of features
This commit is contained in:
sushant dhimal 2023-01-31 23:00:40 +05:45
parent 7c85b1fc57
commit 543ba88e26
3 changed files with 131 additions and 56 deletions

View File

@ -131,6 +131,27 @@ nav svg {
color: #d1d5db; color: #d1d5db;
font-size: 16px; font-size: 16px;
} }
#introsection::before,
#introsection::after {
content: "<HomePage/>";
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 { .chatLogWrapper {
height: 80vh; height: 80vh;
overflow-y: auto; overflow-y: auto;
@ -212,10 +233,11 @@ nav svg {
.inputPromptWrapper { .inputPromptWrapper {
padding: 8px; padding: 8px;
position: absolute;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
position: relative;
padding-top: 20px;
} }
.inputPrompttTextarea { .inputPrompttTextarea {
width: 80%; width: 80%;
@ -233,7 +255,13 @@ nav svg {
overflow-y: hidden; 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 { .App {
display: block; display: block;
} }
@ -269,4 +297,14 @@ nav svg {
width: 30px; width: 30px;
height: 30px; height: 30px;
} }
#introsection {
padding: 20px 20px 40px 20px;
font-size: 14px;
}
#introsection h1 {
font-size: 25px;
}
#introsection h2 {
font-size: 14px;
}
} }

View File

@ -8,6 +8,7 @@ import Loading from "./components/Loading";
import Error from "./components/Error"; import Error from "./components/Error";
import NavLinks from "./components/NavLink"; import NavLinks from "./components/NavLink";
import BotResponse from "./components/BotResponse"; import BotResponse from "./components/BotResponse";
import IntroSection from "./components/IntroSection";
function App() { function App() {
const [showMenu, setShowMenu] = useState(false); const [showMenu, setShowMenu] = useState(false);
@ -195,6 +196,7 @@ function App() {
</aside> </aside>
<section className="chatBox"> <section className="chatBox">
{chatLog.length > 0 ? (
<div className="chatLogWrapper"> <div className="chatLogWrapper">
{chatLog.length > 0 && {chatLog.length > 0 &&
chatLog.map((chat, idx) => ( chatLog.map((chat, idx) => (
@ -253,6 +255,9 @@ function App() {
</div> </div>
))} ))}
</div> </div>
) : (
<IntroSection />
)}
<form onSubmit={handleSubmit}> <form onSubmit={handleSubmit}>
<div className="inputPromptWrapper"> <div className="inputPromptWrapper">

View File

@ -0,0 +1,32 @@
import React from "react";
const IntroSection = () => {
return (
<div id="introsection">
<h1>Introducing Talkbot - The Ultimate AI Assistant</h1>
<h2>
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.
</h2>
<p>
Features:
<ul>
<li>Instant answers to any question</li>
<li>Deep learning technology that improves with usage</li>
<li>Continuously Learning</li>
<li>User-friendly interface</li>
<li>Available 24/7</li>
</ul>
</p>
<p>
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.
</p>
</div>
);
};
export default IntroSection;