Spaces:
Running
Running
Download index.html from AnotherBar/bill-tracker: direct link, hf CLI and curl.
- Browser
- Download file 26.2 kB
-
https://huggingface.co/spaces/AnotherBar/bill-tracker/resolve/main/index.html
- Command line
-
hf download hf://spaces/AnotherBar/bill-tracker/index.html
-
curl -L -o index.html https://huggingface.co/spaces/AnotherBar/bill-tracker/resolve/main/index.html
26.2 kB
| <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> |