Spaces:
Running
Running
Update frontend/index.html
Browse files- frontend/index.html +91 -41
frontend/index.html
CHANGED
|
@@ -1,75 +1,125 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
-
<meta charset="UTF-8"
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
| 6 |
<title>NyayaSetu — Indian Legal Research</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
-
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
| 9 |
<link rel="stylesheet" href="/static/style.css">
|
| 10 |
</head>
|
| 11 |
<body>
|
| 12 |
-
<div class="app-layout">
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</div>
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
<
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
</div>
|
| 26 |
-
<div class="
|
| 27 |
-
|
|
|
|
| 28 |
</div>
|
| 29 |
-
</
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
<div class="suggestion-grid">
|
| 39 |
-
<
|
| 40 |
-
<
|
| 41 |
-
<
|
| 42 |
-
<
|
| 43 |
-
<
|
| 44 |
-
<
|
| 45 |
</div>
|
| 46 |
</div>
|
|
|
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
| 51 |
</div>
|
|
|
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
<textarea
|
| 56 |
id="query-input"
|
| 57 |
-
class="query-
|
| 58 |
-
placeholder="Ask a
|
| 59 |
rows="1"
|
| 60 |
maxlength="1000"
|
| 61 |
></textarea>
|
| 62 |
<button id="send-btn" class="send-btn" onclick="submitQuery()">
|
| 63 |
-
<
|
|
|
|
|
|
|
|
|
|
| 64 |
</button>
|
| 65 |
</div>
|
| 66 |
-
<
|
| 67 |
-
|
| 68 |
-
</div>
|
| 69 |
|
| 70 |
-
</main>
|
| 71 |
</div>
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
</body>
|
| 75 |
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8"/>
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
| 6 |
<title>NyayaSetu — Indian Legal Research</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
|
| 9 |
<link rel="stylesheet" href="/static/style.css">
|
| 10 |
</head>
|
| 11 |
<body>
|
|
|
|
| 12 |
|
| 13 |
+
<div class="app-layout">
|
| 14 |
+
|
| 15 |
+
<!-- ── SIDEBAR ── -->
|
| 16 |
+
<aside class="sidebar" id="sidebar">
|
| 17 |
+
<div class="sidebar-brand">
|
| 18 |
+
<div class="brand-mark">⚖</div>
|
| 19 |
+
<div class="brand-text">
|
| 20 |
+
<span class="brand-name">NyayaSetu</span>
|
| 21 |
+
<span class="brand-sub">Legal Research</span>
|
| 22 |
</div>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<button class="new-chat-btn" onclick="newChat()">
|
| 26 |
+
<span class="new-chat-icon">+</span>
|
| 27 |
+
New Research Session
|
| 28 |
+
</button>
|
| 29 |
+
|
| 30 |
+
<div class="sidebar-section-label">SESSIONS</div>
|
| 31 |
+
<div id="sessions-list" class="sessions-list">
|
| 32 |
+
<div class="sessions-empty">No sessions yet</div>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div class="sidebar-footer">
|
| 36 |
+
<div class="footer-disclaimer">
|
| 37 |
+
<span class="disclaimer-icon">⚠</span>
|
| 38 |
+
<span>Not legal advice. Consult a qualified advocate.</span>
|
| 39 |
</div>
|
| 40 |
+
<div class="footer-meta">
|
| 41 |
+
Supreme Court of India · 1950–2024<br>
|
| 42 |
+
443,598 judgment chunks indexed
|
| 43 |
</div>
|
| 44 |
+
</div>
|
| 45 |
+
</aside>
|
| 46 |
|
| 47 |
+
<!-- ── MAIN ── -->
|
| 48 |
+
<div class="main-wrapper">
|
| 49 |
|
| 50 |
+
<!-- Top bar -->
|
| 51 |
+
<header class="topbar">
|
| 52 |
+
<div class="topbar-left">
|
| 53 |
+
<span class="topbar-title" id="topbar-title">New Research Session</span>
|
| 54 |
+
</div>
|
| 55 |
+
<div class="topbar-right">
|
| 56 |
+
<div class="status-pill" id="status-pill">
|
| 57 |
+
<span class="status-dot"></span>
|
| 58 |
+
<span id="status-text">Ready</span>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
</header>
|
| 62 |
+
|
| 63 |
+
<!-- ── WELCOME SCREEN ── -->
|
| 64 |
+
<div id="screen-welcome" class="screen screen-welcome active">
|
| 65 |
+
<div class="welcome-inner">
|
| 66 |
+
<div class="welcome-emblem">⚖</div>
|
| 67 |
+
<h1 class="welcome-heading">Ask Indian Law</h1>
|
| 68 |
+
<p class="welcome-body">
|
| 69 |
+
Search across 26,688 Supreme Court judgments.<br>
|
| 70 |
+
Every answer is cited. Every source is traceable.
|
| 71 |
+
</p>
|
| 72 |
<div class="suggestion-grid">
|
| 73 |
+
<button class="suggestion-pill" onclick="usesuggestion(this)">What are fundamental rights under the Constitution?</button>
|
| 74 |
+
<button class="suggestion-pill" onclick="usesuggestion(this)">What is the right to privacy under Article 21?</button>
|
| 75 |
+
<button class="suggestion-pill" onclick="usesuggestion(this)">How does the Supreme Court define bail in non-bailable offences?</button>
|
| 76 |
+
<button class="suggestion-pill" onclick="usesuggestion(this)">What is the basic structure doctrine?</button>
|
| 77 |
+
<button class="suggestion-pill" onclick="usesuggestion(this)">What does Article 15 prohibit?</button>
|
| 78 |
+
<button class="suggestion-pill" onclick="usesuggestion(this)">How is freedom of speech limited under Article 19?</button>
|
| 79 |
</div>
|
| 80 |
</div>
|
| 81 |
+
</div>
|
| 82 |
|
| 83 |
+
<!-- ── CHAT SCREEN ── -->
|
| 84 |
+
<div id="screen-chat" class="screen screen-chat">
|
| 85 |
+
<div id="messages-container" class="messages-container">
|
| 86 |
+
<div id="messages-list" class="messages-list"></div>
|
| 87 |
</div>
|
| 88 |
+
</div>
|
| 89 |
|
| 90 |
+
<!-- ── SOURCES PANEL ── -->
|
| 91 |
+
<div id="sources-panel" class="sources-panel">
|
| 92 |
+
<div class="sources-panel-header">
|
| 93 |
+
<span class="sources-panel-title">Sources</span>
|
| 94 |
+
<button class="sources-panel-close" onclick="closeSourcesPanel()">✕</button>
|
| 95 |
+
</div>
|
| 96 |
+
<div id="sources-panel-body" class="sources-panel-body"></div>
|
| 97 |
+
</div>
|
| 98 |
+
<div id="sources-overlay" class="sources-overlay" onclick="closeSourcesPanel()"></div>
|
| 99 |
+
|
| 100 |
+
<!-- ── INPUT ── -->
|
| 101 |
+
<div class="input-zone">
|
| 102 |
+
<div class="input-box">
|
| 103 |
<textarea
|
| 104 |
id="query-input"
|
| 105 |
+
class="query-textarea"
|
| 106 |
+
placeholder="Ask a question about Indian law…"
|
| 107 |
rows="1"
|
| 108 |
maxlength="1000"
|
| 109 |
></textarea>
|
| 110 |
<button id="send-btn" class="send-btn" onclick="submitQuery()">
|
| 111 |
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
| 112 |
+
<line x1="22" y1="2" x2="11" y2="13"></line>
|
| 113 |
+
<polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>
|
| 114 |
+
</svg>
|
| 115 |
</button>
|
| 116 |
</div>
|
| 117 |
+
<p class="input-disclaimer">NyayaSetu is not a substitute for professional legal advice.</p>
|
| 118 |
+
</div>
|
|
|
|
| 119 |
|
|
|
|
| 120 |
</div>
|
| 121 |
+
</div>
|
| 122 |
|
| 123 |
+
<script src="/static/app.js"></script>
|
| 124 |
</body>
|
| 125 |
</html>
|