Minor_changes

This commit is contained in:
Hemant2335
2023-11-23 21:29:35 +05:30
parent 35d6c804c7
commit 7c297f4764
4 changed files with 8 additions and 17 deletions

View File

@@ -21,7 +21,11 @@ export default function App() {
const location = useLocation();
// Checking for the login page
const isLogin = location.pathname === '/login';
const isLogin =
location.pathname === '/login' ||
location.pathname === '/register' ||
location.pathname === '/Forgot' ||
location.pathname === '/ResetPassword';
return (
<div className="min-h-full min-w-full">

View File

@@ -168,20 +168,6 @@ export default function Hero({ className = '' }: { className?: string }) {
</div>
</div>
</div>
<div className="mt-[1vh] flex w-full items-center justify-center gap-[4vh]">
<button
className="rounded-xl bg-[#7D54D1] p-[2vh] font-medium text-white transition-transform hover:scale-105"
onClick={() => navigate('/login')}
>
Sign up
</button>
<button
className="rounded-xl bg-[#7D54D1] p-[2vh] font-medium text-white transition-transform hover:scale-105"
onClick={() => navigate('/register')}
>
Sign in
</button>
</div>
</div>
);
}

View File

@@ -39,7 +39,7 @@ export default function Login() {
/>
<h2
className="text-right text-sm text-[#5F5F5F] hover:cursor-pointer"
onClick={() => navigate('/Resetpass')}
onClick={() => navigate('/Forgot')}
>
Forgot your password?
</h2>

View File

@@ -133,7 +133,7 @@ export default function Conversation() {
{queries.length > 0 && (
<div className="mt-20 flex flex-col transition-all md:w-3/4">
{queries.map((query, index) => {
{queries.map((query: Query, index: number) => {
return (
<Fragment key={index}>
<ConversationBubble
@@ -192,6 +192,7 @@ export default function Conversation() {
</div>
)}
</div>
<p className="text-gray-595959 w-[100vw] self-center bg-white p-5 text-center text-xs md:w-full">
This is a chatbot that uses the GPT-3, Faiss and LangChain to answer
questions.