bauhaus update

This commit is contained in:
2026-08-14 08:44:30 -04:00
parent c9085bdefb
commit e0ae1f91c1
11 changed files with 478 additions and 199 deletions
+15
View File
@@ -14,6 +14,7 @@ function App() {
const [activeSubject, setActiveSubject] = useState("science");
const [activeChat, setActiveChat] = useState(null);
const [activeTab, setActiveTab] = useState("chat");
const [greetingDismissed, setGreetingDismissed] = useState(false);
const handleSend = (text) => {
if (!text.trim()) return;
@@ -55,6 +56,20 @@ function App() {
{/* Chat Area */}
<div className="main-content">
{!greetingDismissed && messages.length === 0 && (
<div className="greeting-banner">
<h2 className="greeting-banner__title">Welcome to padhLe 📚</h2>
<p className="greeting-banner__tagline">Let's make today a great day for learning.</p>
<button
className="greeting-banner__dismiss"
onClick={() => setGreetingDismissed(true)}
>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round">
<path d="M18 6L6 18M6 6l12 12" />
</svg>
</button>
</div>
)}
<ChatHistory
messages={messages}
onPromptClick={handlePromptClick}