mafzaal commited on
Commit
ac3613d
·
1 Parent(s): c8a9031

Update project title and enhance dark mode styling

Browse files

- Changed project title from "RAG Chat" to "Quick Understand" in App and Chat components for improved clarity.
- Added darker background styling for headers in dark mode to enhance visual consistency and user experience.

app/frontend/src/App.js CHANGED
@@ -77,11 +77,11 @@ function App() {
77
  return (
78
  <ThemeProvider defaultTheme="light">
79
  <div className="min-h-screen bg-background text-foreground transition-colors duration-300 flex flex-col">
80
- <header className="bg-primary text-primary-foreground py-4 px-6 shadow-md w-full">
81
  <div className="container mx-auto flex items-center justify-between">
82
  <div className="flex items-center gap-2">
83
  <span role="img" aria-label="brain" className="text-2xl">🧠</span>
84
- <h1 className="text-2xl font-bold">RAG Chat</h1>
85
  </div>
86
  <div className="flex items-center gap-4">
87
  {!showUploadForm && uploadedFiles.length > 0 && (
 
77
  return (
78
  <ThemeProvider defaultTheme="light">
79
  <div className="min-h-screen bg-background text-foreground transition-colors duration-300 flex flex-col">
80
+ <header className="bg-primary text-primary-foreground py-4 px-6 shadow-md w-full dark:bg-gray-900">
81
  <div className="container mx-auto flex items-center justify-between">
82
  <div className="flex items-center gap-2">
83
  <span role="img" aria-label="brain" className="text-2xl">🧠</span>
84
+ <h1 className="text-2xl font-bold">Quick Understand</h1>
85
  </div>
86
  <div className="flex items-center gap-4">
87
  {!showUploadForm && uploadedFiles.length > 0 && (
app/frontend/src/components/Chat.js CHANGED
@@ -490,7 +490,7 @@ ${results.score >= 80
490
  <div className="mb-4 rounded-full bg-primary/10 p-6 transition-all duration-300">
491
  <span role="img" aria-label="chat" className="text-4xl">💬</span>
492
  </div>
493
- <h3 className="mb-2 text-xl font-semibold">Welcome to the RAG Chat!</h3>
494
  <p className="text-sm text-muted-foreground max-w-md">
495
  Ask questions about your document or click one of the suggested questions above.
496
  I'm here to help you understand the content! ✨
 
490
  <div className="mb-4 rounded-full bg-primary/10 p-6 transition-all duration-300">
491
  <span role="img" aria-label="chat" className="text-4xl">💬</span>
492
  </div>
493
+ <h3 className="mb-2 text-xl font-semibold">Welcome to Quick Understand!</h3>
494
  <p className="text-sm text-muted-foreground max-w-md">
495
  Ask questions about your document or click one of the suggested questions above.
496
  I'm here to help you understand the content! ✨
app/frontend/src/globals.css CHANGED
@@ -306,4 +306,13 @@ button, a {
306
  color: hsl(var(--primary));
307
  transform: scale(1.1);
308
  z-index: 1;
 
 
 
 
 
 
 
 
 
309
  }
 
306
  color: hsl(var(--primary));
307
  transform: scale(1.1);
308
  z-index: 1;
309
+ }
310
+
311
+ /* Add a darker header background for dark mode */
312
+ .dark .markdown-content h1,
313
+ .dark .markdown-content h2,
314
+ .dark .markdown-content h3,
315
+ .dark .markdown-content h4 {
316
+ background-color: hsl(var(--primary));
317
+ color: hsl(var(--primary-foreground));
318
  }