Spaces:
Running
Running
File size: 26,168 Bytes
b6cc4c3 | 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 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Legislative Bill Feed</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.bill-card {
transition: all 0.3s ease;
transform-origin: center;
}
.bill-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.bill-card:active {
transform: translateY(0);
}
.modal {
transition: opacity 0.3s ease;
}
.status-passed {
background-color: #10B981;
}
.status-failed {
background-color: #EF4444;
}
.status-pending {
background-color: #3B82F6;
}
.status-upcoming {
background-color: #F59E0B;
}
.vote-yes {
background-color: #10B98120;
border-color: #10B981;
}
.vote-no {
background-color: #EF444420;
border-color: #EF4444;
}
.vote-undecided {
background-color: #64748B20;
border-color: #64748B;
}
.vote-selected {
transform: scale(1.05);
font-weight: bold;
}
.follow-toggle:checked ~ .dot {
transform: translateX(100%);
background-color: #3B82F6;
}
.follow-toggle:checked ~ .line {
background-color: #93C5FD;
}
.chart-bar {
transition: width 0.5s ease;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="container mx-auto px-4 py-8 max-w-4xl">
<header class="mb-8">
<h1 class="text-3xl font-bold text-gray-900">Bill Tracker</h1>
<p class="text-gray-600">Stay informed about legislation that matters to you</p>
</header>
<div class="bill-feed space-y-4">
<!-- Bill Card 1 -->
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal1')">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<div class="flex items-center mb-2">
<span class="status-passed text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Passed</span>
<span class="text-gray-500 text-sm">May 15, 2023</span>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-1">Clean Energy Transition Act</h3>
<p class="text-gray-600 text-sm mb-3">SB-1024 • Sponsored by Sen. Maria Rodriguez</p>
</div>
<button class="follow-toggle hidden md:block" id="follow1" type="button">
<i class="far fa-bell text-gray-400 hover:text-blue-500"></i>
</button>
</div>
<p class="text-gray-700 mb-4">Establishes a 10-year plan to transition state energy production to 80% renewable sources with job training programs for affected workers.</p>
<div class="flex justify-between items-center">
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
See How They Voted <i class="fas fa-chevron-right ml-1 text-xs"></i>
</button>
<div class="flex space-x-1">
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Senate: 28-12</span>
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">House: 54-46</span>
</div>
</div>
</div>
</div>
<!-- Bill Card 2 -->
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal2')">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<div class="flex items-center mb-2">
<span class="status-upcoming text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Upcoming Vote</span>
<span class="text-gray-500 text-sm">June 2, 2023</span>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-1">Affordable Housing Expansion</h3>
<p class="text-gray-600 text-sm mb-3">HB-2047 • Sponsored by Rep. James Wilson</p>
</div>
<label class="follow-toggle hidden md:block relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer">
<div class="line w-11 h-6 bg-gray-200 rounded-full peer"></div>
<div class="dot absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition-all"></div>
</label>
</div>
<p class="text-gray-700 mb-4">Provides tax incentives for developers who include affordable units in new housing projects and increases funding for housing vouchers.</p>
<div class="flex justify-between items-center">
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
View Details <i class="fas fa-chevron-right ml-1 text-xs"></i>
</button>
<div class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Scheduled: June 8</div>
</div>
</div>
</div>
<!-- Bill Card 3 -->
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal3')">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<div class="flex items-center mb-2">
<span class="status-failed text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Failed</span>
<span class="text-gray-500 text-sm">April 10, 2023</span>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-1">School Choice Expansion</h3>
<p class="text-gray-600 text-sm mb-3">SB-875 • Sponsored by Sen. Robert Chen</p>
</div>
<button class="follow-toggle hidden md:block" id="follow3" type="button">
<i class="far fa-bell text-gray-400"></i>
</button>
</div>
<p class="text-gray-700 mb-4">Would have redirected public school funding to vouchers for private and charter schools, with eligibility based on income.</p>
<div class="flex justify-between items-center">
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
See How They Voted <i class="fas fa-chevron-right ml-1 text-xs"></i>
</button>
<div class="flex space-x-1">
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded">Senate: 18-22</span>
</div>
</div>
</div>
</div>
<!-- Bill Card 4 -->
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal4')">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<div class="flex items-center mb-2">
<span class="status-pending text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">In Committee</span>
<span class="text-gray-500 text-sm">May 28, 2023</span>
</div>
<h3 class="text-xl font-bold text-gray-900 mb-1">Digital Privacy Protection Act</h3>
<p class="text-gray-600 text-sm mb-3">HB-2156 • Sponsored by Rep. Alicia Gomez</p>
</div>
<label class="follow-toggle hidden md:block relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="line w-11 h-6 bg-blue-200 rounded-full peer"></div>
<div class="dot absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition-all" style="transform: translateX(100%); background-color: #3B82F6;"></div>
</label>
</div>
<p class="text-gray-700 mb-4">Requires companies to obtain explicit consent before collecting personal data and allows consumers to request deletion of their information.</p>
<div class="flex justify-between items-center">
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
View Details <i class="fas fa-chevron-right ml-1 text-xs"></i>
</button>
<div class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Next hearing: June 5</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal Template -->
<div id="modal1" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
<div class="relative top-20 mx-auto p-5 border w-11/12 md:w-3/4 lg:w-2/3 shadow-lg rounded-xl bg-white max-h-[80vh] overflow-y-auto">
<div class="flex justify-between items-start mb-6">
<div>
<div class="flex items-center mb-3">
<span class="status-passed text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Passed</span>
<span class="text-gray-500 text-sm">May 15, 2023 • SB-1024</span>
</div>
<h2 class="text-2xl font-bold text-gray-900">Clean Energy Transition Act</h2>
<p class="text-gray-600">Sponsored by Sen. Maria Rodriguez</p>
</div>
<button onclick="closeModal('modal1')" class="text-gray-400 hover:text-gray-600">
<i class="fas fa-times"></i>
</button>
</div>
<div class="grid md:grid-cols-3 gap-6 mb-8">
<div class="md:col-span-2">
<h3 class="font-semibold text-lg mb-3">Detailed Summary</h3>
<p class="text-gray-700 mb-4">
The Clean Energy Transition Act establishes a comprehensive 10-year plan to shift the state's energy production from fossil fuels to renewable sources.
The bill sets binding targets of 50% renewable energy by 2028 and 80% by 2033, with provisions for grid modernization and energy storage solutions.
</p>
<h3 class="font-semibold text-lg mb-3 mt-6">Key Provisions</h3>
<ul class="list-disc pl-5 space-y-2 text-gray-700">
<li>Establishes Renewable Portfolio Standards with increasing targets</li>
<li>Creates a $2 billion fund for renewable energy infrastructure</li>
<li>Provides job training programs for workers transitioning from fossil fuel industries</li>
<li>Offers tax credits for residential and commercial solar installations</li>
<li>Mandates utility companies to submit transition plans</li>
</ul>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mt-6">
<div>
<h4 class="font-semibold mb-2 text-green-700">Arguments For</h4>
<ul class="list-disc pl-5 space-y-1 text-gray-700">
<li>Reduces greenhouse gas emissions by 45% by 2035</li>
<li>Creates an estimated 25,000 new jobs in renewable sectors</li>
<li>Reduces long-term energy costs through stable renewable sources</li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-2 text-red-700">Arguments Against</h4>
<ul class="list-disc pl-5 space-y-1 text-gray-700">
<li>Initial costs may lead to short-term utility bill increases</li>
<li>Challenges in retraining workers from traditional energy sectors</li>
<li>Reliability concerns during transition period</li>
</ul>
</div>
</div>
</div>
<div class="space-y-6">
<div>
<h3 class="font-semibold mb-3">How would you vote?</h3>
<div class="space-y-3">
<button onclick="selectVote(this, 'yes')" class="vote-yes w-full border-2 rounded-lg px-4 py-2 text-left transition-all">
<i class="fas fa-check-circle mr-2 text-green-500"></i> Yes
</button>
<button onclick="selectVote(this, 'no')" class="vote-undecided w-full border-2 rounded-lg px-4 py-2 text-left transition-all">
<i class="fas fa-times-circle mr-2 text-red-500"></i> No
</button>
<button onclick="selectVote(this, 'undecided')" class="vote-undecided w-full border-2 rounded-lg px-4 py-2 text-left transition-all">
<i class="fas fa-question-circle mr-2 text-gray-500"></i> Undecided
</button>
</div>
</div>
<div>
<h3 class="font-semibold mb-3">Vote Results</h3>
<div class="space-y-4">
<div>
<div class="flex justify-between mb-1">
<span>Senate</span>
<span>28-12</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-green-600 h-2.5 rounded-full chart-bar" style="width: 70%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>70% Yes</span>
<span>30% No</span>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span>House</span>
<span>54-46</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-green-600 h-2.5 rounded-full chart-bar" style="width: 54%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>54% Yes</span>
<span>46% No</span>
</div>
</div>
</div>
</div>
<div class="pt-4 border-t">
<label class="flex items-center space-x-3 cursor-pointer">
<div class="relative">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-blue-200 rounded-full peer"></div>
<div class="dot absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition-all" style="transform: translateX(100%); background-color: #3B82F6;"></div>
</div>
<span class="font-medium">Follow this bill</span>
</label>
<p class="text-sm text-gray-500 mt-1">Get notifications when there are updates</p>
</div>
</div>
</div>
<div class="mt-8">
<h3 class="font-semibold text-lg mb-4">How Your Representatives Voted</h3>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">District</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Party</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vote</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://i.pravatar.cc/150?img=1" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Rep. Sarah Johnson</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">District 14</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">D</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Yes</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://i.pravatar.cc/150?img=2" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Sen. Michael Chen</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">District 7</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">D</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Yes</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://i.pravatar.cc/150?img=3" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Rep. David Wilson</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">District 14</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">No</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="mt-8 flex justify-end">
<button onclick="closeModal('modal1')" class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-6 rounded-lg transition">
Close
</button>
</div>
</div>
</div>
<!-- Additional modals would follow the same pattern -->
<div id="modal2" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
<!-- Modal content similar to modal1 but for Affordable Housing Expansion -->
</div>
<div id="modal3" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
<!-- Modal content similar to modal1 but for School Choice Expansion -->
</div>
<div id="modal4" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
<!-- Modal content similar to modal1 but for Digital Privacy Protection Act -->
</div>
<script>
// Modal functions
function openModal(modalId) {
document.getElementById(modalId).classList.remove('hidden');
document.body.style.overflow = 'hidden';
}
function closeModal(modalId) {
document.getElementById(modalId).classList.add('hidden');
document.body.style.overflow = 'auto';
}
// Close modal when clicking outside content
window.onclick = function(event) {
if (event.target.className.includes('modal')) {
event.target.classList.add('hidden');
document.body.style.overflow = 'auto';
}
}
// Vote selection function
function selectVote(element, voteType) {
// Remove selected state from all buttons
document.querySelectorAll('[onclick^="selectVote"]').forEach(btn => {
btn.classList.remove('vote-yes', 'vote-no', 'vote-undecided', 'vote-selected');
btn.classList.add('vote-undecided');
});
// Add appropriate class to selected button
element.classList.remove('vote-undecided');
element.classList.add('vote-' + voteType, 'vote-selected');
}
// Follow toggle functionality
document.querySelectorAll('.follow-toggle input').forEach(toggle => {
toggle.addEventListener('change', function() {
const icon = this.closest('.bill-card').querySelector('.fa-bell');
if (icon) {
if (this.checked) {
icon.classList.remove('far', 'text-gray-400');
icon.classList.add('fas', 'text-blue-500');
} else {
icon.classList.remove('fas', 'text-blue-500');
icon.classList.add('far', 'text-gray-400');
}
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=AnotherBar/bill-tracker" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |