Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Study Saathi</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
| <link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&display=swap" rel="stylesheet" /> | |
| <link rel="stylesheet" href="/static/css/style.css" /> | |
| <!-- Marked.js for markdown rendering --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/9.1.6/marked.min.js"></script> | |
| <!-- highlight.js for code blocks --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" /> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> | |
| </head> | |
| <body> | |
| <!-- Background grid --> | |
| <div class="bg-grid"></div> | |
| <div class="bg-glow"></div> | |
| <!-- ββ Sidebar ββ --> | |
| <aside class="sidebar" id="sidebar"> | |
| <div class="sidebar-header"> | |
| <div class="logo"> | |
| <span class="logo-icon">π</span> | |
| <span class="logo-text">Study<span class="accent">Saathi</span></span> | |
| </div> | |
| <button class="sidebar-close" id="sidebarClose" aria-label="Close sidebar">β</button> | |
| </div> | |
| <div class="sidebar-section"> | |
| <label class="sidebar-label">Filter by Topic</label> | |
| <div class="topic-input-wrap"> | |
| <span class="topic-icon">π</span> | |
| <input | |
| type="text" | |
| id="topicInput" | |
| class="topic-input" | |
| placeholder="e.g. ch-01-updated" | |
| /> | |
| </div> | |
| <p class="sidebar-hint">Leave empty to search all notes</p> | |
| </div> | |
| <div class="sidebar-section"> | |
| <label class="sidebar-label">Quick Prompts</label> | |
| <div class="quick-prompts"> | |
| <button class="quick-btn" data-prompt="Explain this topic in simple Roman Urdu">π Explain Topic</button> | |
| <button class="quick-btn" data-prompt="Generate 5 MCQs from this topic">π 5 MCQs</button> | |
| <button class="quick-btn" data-prompt="Generate 10 MCQs from this topic">π 10 MCQs</button> | |
| <button class="quick-btn" data-prompt="Summarize the key points of this topic">π Key Points</button> | |
| </div> | |
| </div> | |
| <div class="sidebar-footer"> | |
| <p>Powered by <span class="accent">gpt-oss-120b</span></p> | |
| <p>RAG Β· Pinecone Β· LangChain</p> | |
| </div> | |
| </aside> | |
| <!-- Overlay for mobile sidebar --> | |
| <div class="overlay" id="overlay"></div> | |
| <!-- ββ Main ββ --> | |
| <main class="main"> | |
| <!-- Top bar --> | |
| <header class="topbar"> | |
| <button class="menu-btn" id="menuBtn" aria-label="Open sidebar"> | |
| <span></span><span></span><span></span> | |
| </button> | |
| <div class="topbar-title"> | |
| <span class="logo-icon">π</span> | |
| Study<span class="accent">Saathi</span> | |
| </div> | |
| <button class="clear-btn" id="clearBtn" title="Clear chat">π</button> | |
| </header> | |
| <!-- Chat window --> | |
| <section class="chat-window" id="chatWindow"> | |
| <!-- Welcome message --> | |
| <div class="message assistant" id="welcomeMsg"> | |
| <div class="avatar">SS</div> | |
| <div class="bubble"> | |
| <p>Assalam-o-Alaikum! π Main hoon <strong>Study Saathi</strong> β tumhara OS notes ka study partner.</p> | |
| <ul> | |
| <li>Koi bhi topic <strong>explain</strong> kara sakte ho</li> | |
| <li><strong>MCQs generate</strong> karo kisi bhi topic se</li> | |
| <li>Left sidebar se <strong>topic filter</strong> lagao</li> | |
| </ul> | |
| <p>Shuru karo! π</p> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Input area --> | |
| <footer class="input-area"> | |
| <div class="input-wrap"> | |
| <textarea | |
| id="queryInput" | |
| class="query-input" | |
| placeholder="Koi sawaal poochho... (e.g. Explain deadlocks, Generate 5 MCQs)" | |
| rows="1" | |
| ></textarea> | |
| <button class="send-btn" id="sendBtn" aria-label="Send"> | |
| <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"> | |
| <line x1="22" y1="2" x2="11" y2="13"></line> | |
| <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> | |
| </svg> | |
| </button> | |
| </div> | |
| <p class="input-hint">Enter to send Β· Shift+Enter for new line</p> | |
| </footer> | |
| </main> | |
| <script src="/static/js/design.js"></script> | |
| </body> | |
| </html> |