diff --git a/frontend/public/lock-dark.svg b/frontend/public/lock-dark.svg new file mode 100644 index 00000000..40a6b516 --- /dev/null +++ b/frontend/public/lock-dark.svg @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/frontend/public/message-programming-dark.svg b/frontend/public/message-programming-dark.svg new file mode 100644 index 00000000..fec336ad --- /dev/null +++ b/frontend/public/message-programming-dark.svg @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/frontend/public/message-programming.svg b/frontend/public/message-programming.svg index f017810a..4432ad2b 100644 --- a/frontend/public/message-programming.svg +++ b/frontend/public/message-programming.svg @@ -1,6 +1,10 @@ diff --git a/frontend/public/message-text-dark.svg b/frontend/public/message-text-dark.svg new file mode 100644 index 00000000..cca376ba --- /dev/null +++ b/frontend/public/message-text-dark.svg @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index 3a0517d7..f66b79a1 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -4,14 +4,15 @@ import DocsGPT3 from './assets/cute_docsgpt3.svg'; export default function Hero({ className = '' }: { className?: string }) { // const isMobile = window.innerWidth <= 768; const { isMobile } = useMediaQuery(); + const isDarkTheme = localStorage.getItem('selectedTheme') === 'Dark'; return ( -
DocsGPT
+
Welcome to DocsGPT, your technical documentation assistant! Start by entering your query in the input field below, and we'll provide you with the most relevant @@ -19,37 +20,35 @@ export default function Hero({ className = '' }: { className?: string }) {
) : ( <> -+
Welcome to DocsGPT, your technical documentation assistant!
-+
Enter a query related to the information in the documentation you
selected to receive
and we will provide you with the most relevant answers.
+
Start by entering your query in the input field below and we will do the rest!
> )}DocsGPT will use your data to answer questions. Whether its @@ -84,23 +83,22 @@ export default function Hero({ className = '' }: { className?: string }) {
The security of your data is our top priority. DocsGPT ensures the @@ -121,17 +119,16 @@ export default function Hero({ className = '' }: { className?: string }) {
DocsGPT is built on open source principles, promoting transparency
diff --git a/frontend/src/Setting.tsx b/frontend/src/Setting.tsx
index 5bf1fb9c..90e50f39 100644
--- a/frontend/src/Setting.tsx
+++ b/frontend/src/Setting.tsx
@@ -588,28 +588,28 @@ const Documents: React.FC
+
This is a chatbot that uses the GPT-3, Faiss and LangChain to answer
questions.
Upload New Documentation Upload New Documentation
Please upload .pdf, .txt, .rst, .docx, .md, .zip limited to 25mb
Uploaded Files Uploaded Files
{file.name}
None NoneDocuments
*/}
-
-
{documents &&
documents.map((document, index) => (
Document Name
- Vector Date
- Type
-
+ Document Name
+ Vector Date
+ Type
+
- {document.name}
- {document.date}
-
+ {document.name}
+ {document.date}
+
{document.location === 'remote'
? 'Pre-loaded'
: 'Private'}
-
+
{document.location !== 'remote' && (
+
{
if (inputRef.current?.textContent) {
handleQuestion(inputRef.current.textContent);
inputRef.current.textContent = '';
}
}}
- src={Send}
+ src={localStorage.getItem('selectedTheme') === 'Dark' ? SendDark : Send}
>