diff --git a/frontend/.env.development b/frontend/.env.development index 7a87f762..9569966a 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,3 +1,3 @@ # Please put appropriate value -VITE_API_HOST=http://0.0.0.0:7091 +VITE_API_HOST=http://127.0.0.1:7091 VITE_API_STREAMING=true \ No newline at end of file diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index b12ec441..f2677449 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -1,13 +1,25 @@ -import { useDarkTheme, useMediaQuery } from './hooks'; import DocsGPT3 from './assets/cute_docsgpt3.svg'; -import { useSelector } from 'react-redux'; -import { selectConversations } from './preferences/preferenceSlice'; -import Arrow2 from './assets/dropdown-arrow.svg'; -export default function Hero({ className = '' }: { className?: string }) { - // const isMobile = window.innerWidth <= 768; - const { isMobile } = useMediaQuery(); - const [isDarkTheme] = useDarkTheme(); - const conversations = useSelector(selectConversations); +const demos: { header: string, query: string }[] = [ + { + header: "Learn about DocsGPT", + query: "What is DocsGPT ?" + }, + { + header: "Summarise documentation", + query: "Summarise current context" + }, + { + header: "Write Code", + query: "Write code for api request for /api/answer" + }, + { + header: "Learning Assistance", + query: "Write potential questions that can be answered by context" + } +]; + +export default function Hero({ handleQuestion }: { handleQuestion: (question: string) => void }) { + return (
- Chat with your documentation -
- - Upload documents and get your answers - -- Chat with your documentation -
- - Upload documents and get your answers - -- Chat with your documentation -
- - Upload documents and get your answers - -- Chat with your documentation -
- - Upload documents and get your answers - -