Spaces:
Configuration error

File size: 9,640 Bytes
ddde4e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="icon" href="data:,">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Civic Grievance AI Portal</title>
    <!-- Use Inter font for a clean, formal look -->
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <!-- 1. Top Bar (Sanchar Saathi Style) -->
    <div class="top-bar">
        <div class="tb-left">
            <div class="tb-item">
                <span class="hi">भारत सरकार</span>
                <span class="en">GOVERNMENT OF INDIA</span>
            </div>
            <div class="tb-item">
                <span class="hi">प्रशासनिक सुधार मंत्रालय</span>
                <span class="en">MINISTRY OF PUBLIC GRIEVANCES</span>
            </div>
        </div>
        <div class="tb-right">
            <span>SKIP TO MAIN CONTENT</span>
            <div class="tb-icons">
                <span class="icon">🔍</span>
                <span class="icon">A</span>
                <span class="icon">A+</span>
            </div>
        </div>
    </div>

    <!-- 2. Main Header -->
    <header class="main-header">
        <div class="header-logo">
            <div class="emblem-placeholder">
                <div class="ashoka-chakra"></div>
            </div>
            <div class="header-titles">
                <span class="hi">लोक शिकायत विभाग</span>
                <span class="en">DEPARTMENT OF PUBLIC GRIEVANCES</span>
            </div>
        </div>
        <div class="header-right-logos">
            <div class="logo-box">Digital India</div>
            <div class="logo-box">Azadi Ka Amrit Mahotsav</div>
        </div>
    </header>

    <!-- 3. Navigation Bar (Floating Button Tabs) -->
    <nav class="ss-nav">
        <div class="nav-container">
            <a href="#" class="home-btn">
                <svg viewBox="0 0 24 24" width="22" height="22" stroke="currentColor" stroke-width="2" fill="none"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
            </a>
            <div class="nav-links">
                <a href="#" class="nav-btn">CITIZEN CENTRIC SERVICES</a>
                <a href="#" class="nav-btn">ABOUT</a>
                <a href="#" class="nav-btn">FILE COMPLAINT</a>
                <a href="#" class="nav-btn">FREQUENTLY ASKED QUESTIONS</a>
                <a href="#" class="nav-btn">MOBILE APP</a>
            </div>
        </div>
    </nav>

    <!-- 4. Main Banner Wrapper (with Floating Cards) -->
    <div class="main-wrapper">
        <div class="container">
            
            <!-- Left Panel: Floating Minister Cards -->
            <aside class="left-floating-panel">
                <div class="floating-card">
                    <img src="images/pm_modi.png" alt="Narendra Modi" class="card-img">
                    <div class="card-info">
                        <strong>Honorable Prime Minister</strong>
                        <span>Shri Narendra Modi</span>
                    </div>
                    <div class="card-social">
                        <span>🐦</span> <span>🟦</span> <span>📸</span>
                    </div>
                </div>
                
                <div class="floating-card">
                    <img src="images/mohan_yadav.png" alt="Mohan Yadav" class="card-img">
                    <div class="card-info">
                        <strong>Honnorable Chief Minister</strong>
                        <span>Dr. Mohan Yadav</span>
                    </div>
                    <div class="card-social">
                        <span>🐦</span> <span>🟦</span> <span>📸</span>
                    </div>
                </div>
            </aside>

            <!-- Right Panel: Sanchar Saathi Integrated Banner -->
            <section class="banner-panel">
                <div class="ss-banner">
                    
                    <div class="ss-banner-header">
                        <h2>CIVIC GRIEVANCE AI PORTAL</h2>
                        <p>AN INTEGRATED SPACE FOR CITIZEN CENTRIC SERVICES</p>
                    </div>
                    
                    <div class="ss-banner-content">
                        <!-- Orange Info Blocks -->
                        <div class="ss-orange-section">
                            <div class="orange-block">
                                <h3>REPORT</h3>
                                <ul>
                                    <li>Civic Issues & Potholes</li>
                                    <li>Water Supply & Sanitation Delivery</li>
                                    <li>Unregistered Construction Work</li>
                                    <li>Electricity related issues</li>
                                </ul>
                            </div>
                            <div class="orange-block">
                                <h3>TRACK</h3>
                                <ul>
                                    <li>Your Registered Complaints</li>
                                    <li>Current Authority Status</li>
                                    <li>Expected Resolution Date</li>
                                </ul>
                            </div>
                        </div>

                        <!-- Chatbot embedded seamlessly -->
                        <div class="ss-chat-section">
                            <div class="chat-container">
                                <div class="chat-messages" id="chatMessages" aria-live="polite">
                                    <div class="message bot">
                                        <div class="message-content">
                                            Welcome to the Civic Grievance AI Portal. Please choose one of the options if it matches your grievance or else write your own complaint.
                                        </div>
                                    </div>
                                </div>
                                <div class="typing-indicator hidden" id="typingIndicator" aria-hidden="true">
                                    <span></span><span></span><span></span>
                                </div>
                            
                                <div class="choice-panel" id="choicePanel">

                                    <button class="choice-btn road-btn" data-example="There are large potholes on the road near my colony.">
                                      Civic Issues & Potholes
                                    </button>

                                    <button class="choice-btn water-btn" data-example="No water supply in our area since morning.">
                                      Water Supply & Sanitation Delivery
                                    </button>

                                    <button class="choice-btn illegal-btn" data-example="Illegal construction work is blocking the public path.">
                                      Unregistered Construction Work
                                    </button>

                                    <button class="choice-btn electricity-btn" data-example="Electricity is not available for hours.">
                                      Electricity related issues
                                    </button>
                                          

                                    <button class="choice-btn own-hover" id="writeOwnBtn">
                                      Write my own complaint
                                    </button>

                                </div>

                               <!-- Chat Input (Hidden initially) -->
                                <form class="chat-input-area hidden" id="chatForm">
                                    <input type="text" id="chatInput" placeholder="Type your complaint here..." autocomplete="off" required>
                                    <button type="submit" id="sendBtn" aria-label="Send Message">
                                        <svg viewBox="0 0 24 24" width="20" height="20" stroke="currentColor" stroke-width="2.5" fill="none" 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>
                                </form>
                                    
                            </div>
                        </div>
                    </div>
                    
                    <!-- Bottom Yellow Banner -->
                    <div class="ss-banner-footer">
                        <div class="access-now">ACCESS NOW &raquo;</div>
                        <div class="web-portal">
                            <span>Web Portal</span>
                            <a href="#">https://civicai.gov.in</a>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>

    <!-- Footer -->
    <footer class="main-footer">
        <div class="footer-content">
            <p>&copy; Government of India &ndash; Civic AI System</p>
        </div>
    </footer>
    </body>
    <script src="app.js"></script>
</html>