CaffeinatedCoding commited on
Commit
2be8380
·
verified ·
1 Parent(s): f37d3b7

Update frontend/index.html

Browse files
Files changed (1) hide show
  1. 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
- <!-- Sidebar -->
15
- <aside class="sidebar">
16
- <div class="sidebar-logo">
17
- <span class="logo-icon">⚖️</span>
18
- <span class="logo-text">NyayaSetu</span>
 
 
 
 
19
  </div>
20
- <div class="sidebar-tagline">Indian Legal Research</div>
21
- <div class="sidebar-divider"></div>
22
- <div class="sidebar-label">RECENT QUERIES</div>
23
- <div id="history-list" class="history-list">
24
- <div class="history-empty">No queries yet</div>
 
 
 
 
 
 
 
 
 
 
 
25
  </div>
26
- <div class="sidebar-footer">
27
- <div class="disclaimer-badge">⚠ Not Legal Advice</div>
 
28
  </div>
29
- </aside>
 
30
 
31
- <!-- Main content -->
32
- <main class="main-content">
33
 
34
- <!-- Welcome screen (shown when no query has been made) -->
35
- <div id="welcome-screen" class="welcome-screen">
36
- <div class="welcome-title">NyayaSetu</div>
37
- <div class="welcome-subtitle">Ask questions about Indian Supreme Court judgments<br>from 1950 to 2024</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  <div class="suggestion-grid">
39
- <div class="suggestion-card" onclick="fillQuery(this)">What are the fundamental rights under the Indian Constitution?</div>
40
- <div class="suggestion-card" onclick="fillQuery(this)">What is the right to privacy under Article 21?</div>
41
- <div class="suggestion-card" onclick="fillQuery(this)">What does the Supreme Court say about bail in non-bailable offences?</div>
42
- <div class="suggestion-card" onclick="fillQuery(this)">What are the limits on freedom of speech under Article 19?</div>
43
- <div class="suggestion-card" onclick="fillQuery(this)">What is the basic structure doctrine of the Constitution?</div>
44
- <div class="suggestion-card" onclick="fillQuery(this)">How has the Supreme Court interpreted Article 14 on equality?</div>
45
  </div>
46
  </div>
 
47
 
48
- <!-- Chat area (shown after first query) -->
49
- <div id="chat-area" class="chat-area hidden">
50
- <div id="messages" class="messages"></div>
 
51
  </div>
 
52
 
53
- <!-- Input bar -->
54
- <div class="input-bar">
 
 
 
 
 
 
 
 
 
 
 
55
  <textarea
56
  id="query-input"
57
- class="query-input"
58
- placeholder="Ask a legal question about Indian Supreme Court judgments..."
59
  rows="1"
60
  maxlength="1000"
61
  ></textarea>
62
  <button id="send-btn" class="send-btn" onclick="submitQuery()">
63
- <span id="send-icon">→</span>
 
 
 
64
  </button>
65
  </div>
66
- <div class="input-footer">
67
- NyayaSetu is not a substitute for professional legal advice. Always consult a qualified advocate.
68
- </div>
69
 
70
- </main>
71
  </div>
 
72
 
73
- <script src="/static/app.js"></script>
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>