From f52719d16b98cef4e45fd0bb67e19c6e1a51e00f Mon Sep 17 00:00:00 2001 From: rohith170946 Date: Thu, 9 Oct 2025 11:08:15 +0530 Subject: [PATCH 1/2] Update globals.css --- app/globals.css | 38 +++++++++----------------------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/app/globals.css b/app/globals.css index ea4d868..3163f6f 100644 --- a/app/globals.css +++ b/app/globals.css @@ -19,7 +19,7 @@ --secondary: 240 4.8% 95.9%; --secondary-foreground: 240 5.9% 10%; --accent: 240 4.8% 95.9%; - --accent-foreground: ; + --accent-foreground: 240 5.9% 10%; /* 🛠️ FIXED missing value */ --destructive: 0 84.2% 60.2%; --destructive-foreground: 0 0% 98%; --ring: 240 5% 64.9%; @@ -42,14 +42,12 @@ --secondary: 240 3.7% 15.9%; --secondary-foreground: 0 0% 98%; --accent: 240 3.7% 15.9%; - --accent-foreground: ; + --accent-foreground: 0 0% 98%; /* 🛠️ FIXED missing value */ --destructive: 0 62.8% 30.6%; --destructive-foreground: 0 85.7% 97.3%; --ring: 240 3.7% 15.9%; } -} -@layer base { * { @apply border-border; } @@ -86,7 +84,6 @@ height: 150px !important; } -/* Markdown styles */ /* Markdown styles */ .markdown-container { font-family: Arial, sans-serif; @@ -108,29 +105,12 @@ padding-bottom: 0.3em; } -.markdown-container h1 { - font-size: 1.5em; -} - -.markdown-container h2 { - font-size: 1.4em; -} - -.markdown-container h3 { - font-size: 1.3em; -} - -.markdown-container h4 { - font-size: 1.2em; -} - -.markdown-container h5 { - font-size: 1.1em; -} - -.markdown-container h6 { - font-size: 1em; -} +.markdown-container h1 { font-size: 1.5em; } +.markdown-container h2 { font-size: 1.4em; } +.markdown-container h3 { font-size: 1.3em; } +.markdown-container h4 { font-size: 1.2em; } +.markdown-container h5 { font-size: 1.1em; } +.markdown-container h6 { font-size: 1em; } .markdown-container p { margin-bottom: 1em; @@ -210,4 +190,4 @@ .clip-yt-img { margin-top: -24px; clip-path: inset(30px 0 30px 0); -} \ No newline at end of file +} From 6abfd4f2d60147fbe2e6cac398c90cd2922f2823 Mon Sep 17 00:00:00 2001 From: rohith170946 Date: Thu, 9 Oct 2025 18:08:36 +0530 Subject: [PATCH 2/2] Create header.tsx --- header.tsx | 226 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 226 insertions(+) create mode 100644 header.tsx diff --git a/header.tsx b/header.tsx new file mode 100644 index 0000000..03505e3 --- /dev/null +++ b/header.tsx @@ -0,0 +1,226 @@ +'use client'; + +import { useState, useEffect } from 'react'; +import { Button } from '@/components/ui/button'; +import { Sidebar, GithubLogo, NotePencil } from '@phosphor-icons/react'; + +export function Header() { + const [isSidebarOpen, setIsSidebarOpen] = useState(false); + + const toggleSidebar = () => { + setIsSidebarOpen(!isSidebarOpen); + }; + + return ( + <> +
+
+ + {/* */} + + + +
+ + + answer engine + + + + + +
+ {/* */} + + ); +} + +// const Sidebar = ({ isOpen, onClose }) => { +// const [settings, setSettings] = useState({ +// model: 'groq-mixtral', +// toggleSetting: false, +// dropdownSetting: 'Option 1', +// textChunkSize: 1000, +// textChunkOverlap: 400, +// similarityResults: 4, +// pagesToScan: 10, +// }); + +// useEffect(() => { +// const storedSettings = localStorage.getItem('settings'); +// if (storedSettings) { +// setSettings(JSON.parse(storedSettings)); +// } +// }, []); + +// useEffect(() => { +// localStorage.setItem('settings', JSON.stringify(settings)); +// }, [settings]); + +// const handleSettingsChange = (field, value) => { +// setSettings((prevSettings) => ({ +// ...prevSettings, +// [field]: value, +// })); +// }; + +// return ( +//
+//
+//
+//

Settings

+// +//
+//
+//
+// +// +//
+//
+// +// +//
+//
+// +// +//
+//
+// +// +//
+//
+// +//
+// handleSettingsChange('toggleSetting', e.target.checked)} +// className="absolute block w-6 h-6 bg-white border-4 rounded-full appearance-none cursor-pointer" +// /> +// +//
+//
+//
+//

Advanced Options

+//
+// +// handleSettingsChange('textChunkSize', Number(e.target.value))} +// className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer" +// /> +//
+//
+// +// handleSettingsChange('textChunkOverlap', Number(e.target.value))} +// className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer" +// /> +//
+//
+// +// handleSettingsChange('similarityResults', Number(e.target.value))} +// className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer" +// /> +//
+//
+// +// handleSettingsChange('pagesToScan', Number(e.target.value))} +// className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer" +// /> +//
+//
+//
+//
+//
+// ); +// }; + +// export default Sidebar;