Spaces:
Running
Running
Add 3 files
Browse files- README.md +6 -4
- index.html +443 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: bill-tracker
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,443 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Legislative Bill Feed</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.bill-card {
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
transform-origin: center;
|
| 13 |
+
}
|
| 14 |
+
.bill-card:hover {
|
| 15 |
+
transform: translateY(-2px);
|
| 16 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 17 |
+
}
|
| 18 |
+
.bill-card:active {
|
| 19 |
+
transform: translateY(0);
|
| 20 |
+
}
|
| 21 |
+
.modal {
|
| 22 |
+
transition: opacity 0.3s ease;
|
| 23 |
+
}
|
| 24 |
+
.status-passed {
|
| 25 |
+
background-color: #10B981;
|
| 26 |
+
}
|
| 27 |
+
.status-failed {
|
| 28 |
+
background-color: #EF4444;
|
| 29 |
+
}
|
| 30 |
+
.status-pending {
|
| 31 |
+
background-color: #3B82F6;
|
| 32 |
+
}
|
| 33 |
+
.status-upcoming {
|
| 34 |
+
background-color: #F59E0B;
|
| 35 |
+
}
|
| 36 |
+
.vote-yes {
|
| 37 |
+
background-color: #10B98120;
|
| 38 |
+
border-color: #10B981;
|
| 39 |
+
}
|
| 40 |
+
.vote-no {
|
| 41 |
+
background-color: #EF444420;
|
| 42 |
+
border-color: #EF4444;
|
| 43 |
+
}
|
| 44 |
+
.vote-undecided {
|
| 45 |
+
background-color: #64748B20;
|
| 46 |
+
border-color: #64748B;
|
| 47 |
+
}
|
| 48 |
+
.vote-selected {
|
| 49 |
+
transform: scale(1.05);
|
| 50 |
+
font-weight: bold;
|
| 51 |
+
}
|
| 52 |
+
.follow-toggle:checked ~ .dot {
|
| 53 |
+
transform: translateX(100%);
|
| 54 |
+
background-color: #3B82F6;
|
| 55 |
+
}
|
| 56 |
+
.follow-toggle:checked ~ .line {
|
| 57 |
+
background-color: #93C5FD;
|
| 58 |
+
}
|
| 59 |
+
.chart-bar {
|
| 60 |
+
transition: width 0.5s ease;
|
| 61 |
+
}
|
| 62 |
+
</style>
|
| 63 |
+
</head>
|
| 64 |
+
<body class="bg-gray-50 font-sans">
|
| 65 |
+
<div class="container mx-auto px-4 py-8 max-w-4xl">
|
| 66 |
+
<header class="mb-8">
|
| 67 |
+
<h1 class="text-3xl font-bold text-gray-900">Bill Tracker</h1>
|
| 68 |
+
<p class="text-gray-600">Stay informed about legislation that matters to you</p>
|
| 69 |
+
</header>
|
| 70 |
+
|
| 71 |
+
<div class="bill-feed space-y-4">
|
| 72 |
+
<!-- Bill Card 1 -->
|
| 73 |
+
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal1')">
|
| 74 |
+
<div class="p-5">
|
| 75 |
+
<div class="flex justify-between items-start">
|
| 76 |
+
<div>
|
| 77 |
+
<div class="flex items-center mb-2">
|
| 78 |
+
<span class="status-passed text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Passed</span>
|
| 79 |
+
<span class="text-gray-500 text-sm">May 15, 2023</span>
|
| 80 |
+
</div>
|
| 81 |
+
<h3 class="text-xl font-bold text-gray-900 mb-1">Clean Energy Transition Act</h3>
|
| 82 |
+
<p class="text-gray-600 text-sm mb-3">SB-1024 • Sponsored by Sen. Maria Rodriguez</p>
|
| 83 |
+
</div>
|
| 84 |
+
<button class="follow-toggle hidden md:block" id="follow1" type="button">
|
| 85 |
+
<i class="far fa-bell text-gray-400 hover:text-blue-500"></i>
|
| 86 |
+
</button>
|
| 87 |
+
</div>
|
| 88 |
+
<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>
|
| 89 |
+
<div class="flex justify-between items-center">
|
| 90 |
+
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
|
| 91 |
+
See How They Voted <i class="fas fa-chevron-right ml-1 text-xs"></i>
|
| 92 |
+
</button>
|
| 93 |
+
<div class="flex space-x-1">
|
| 94 |
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Senate: 28-12</span>
|
| 95 |
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">House: 54-46</span>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
<!-- Bill Card 2 -->
|
| 102 |
+
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal2')">
|
| 103 |
+
<div class="p-5">
|
| 104 |
+
<div class="flex justify-between items-start">
|
| 105 |
+
<div>
|
| 106 |
+
<div class="flex items-center mb-2">
|
| 107 |
+
<span class="status-upcoming text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Upcoming Vote</span>
|
| 108 |
+
<span class="text-gray-500 text-sm">June 2, 2023</span>
|
| 109 |
+
</div>
|
| 110 |
+
<h3 class="text-xl font-bold text-gray-900 mb-1">Affordable Housing Expansion</h3>
|
| 111 |
+
<p class="text-gray-600 text-sm mb-3">HB-2047 • Sponsored by Rep. James Wilson</p>
|
| 112 |
+
</div>
|
| 113 |
+
<label class="follow-toggle hidden md:block relative inline-flex items-center cursor-pointer">
|
| 114 |
+
<input type="checkbox" class="sr-only peer">
|
| 115 |
+
<div class="line w-11 h-6 bg-gray-200 rounded-full peer"></div>
|
| 116 |
+
<div class="dot absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition-all"></div>
|
| 117 |
+
</label>
|
| 118 |
+
</div>
|
| 119 |
+
<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>
|
| 120 |
+
<div class="flex justify-between items-center">
|
| 121 |
+
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
|
| 122 |
+
View Details <i class="fas fa-chevron-right ml-1 text-xs"></i>
|
| 123 |
+
</button>
|
| 124 |
+
<div class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Scheduled: June 8</div>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<!-- Bill Card 3 -->
|
| 130 |
+
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal3')">
|
| 131 |
+
<div class="p-5">
|
| 132 |
+
<div class="flex justify-between items-start">
|
| 133 |
+
<div>
|
| 134 |
+
<div class="flex items-center mb-2">
|
| 135 |
+
<span class="status-failed text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Failed</span>
|
| 136 |
+
<span class="text-gray-500 text-sm">April 10, 2023</span>
|
| 137 |
+
</div>
|
| 138 |
+
<h3 class="text-xl font-bold text-gray-900 mb-1">School Choice Expansion</h3>
|
| 139 |
+
<p class="text-gray-600 text-sm mb-3">SB-875 • Sponsored by Sen. Robert Chen</p>
|
| 140 |
+
</div>
|
| 141 |
+
<button class="follow-toggle hidden md:block" id="follow3" type="button">
|
| 142 |
+
<i class="far fa-bell text-gray-400"></i>
|
| 143 |
+
</button>
|
| 144 |
+
</div>
|
| 145 |
+
<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>
|
| 146 |
+
<div class="flex justify-between items-center">
|
| 147 |
+
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
|
| 148 |
+
See How They Voted <i class="fas fa-chevron-right ml-1 text-xs"></i>
|
| 149 |
+
</button>
|
| 150 |
+
<div class="flex space-x-1">
|
| 151 |
+
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded">Senate: 18-22</span>
|
| 152 |
+
</div>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
</div>
|
| 156 |
+
|
| 157 |
+
<!-- Bill Card 4 -->
|
| 158 |
+
<div class="bill-card bg-white rounded-xl shadow-md overflow-hidden cursor-pointer" onclick="openModal('modal4')">
|
| 159 |
+
<div class="p-5">
|
| 160 |
+
<div class="flex justify-between items-start">
|
| 161 |
+
<div>
|
| 162 |
+
<div class="flex items-center mb-2">
|
| 163 |
+
<span class="status-pending text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">In Committee</span>
|
| 164 |
+
<span class="text-gray-500 text-sm">May 28, 2023</span>
|
| 165 |
+
</div>
|
| 166 |
+
<h3 class="text-xl font-bold text-gray-900 mb-1">Digital Privacy Protection Act</h3>
|
| 167 |
+
<p class="text-gray-600 text-sm mb-3">HB-2156 • Sponsored by Rep. Alicia Gomez</p>
|
| 168 |
+
</div>
|
| 169 |
+
<label class="follow-toggle hidden md:block relative inline-flex items-center cursor-pointer">
|
| 170 |
+
<input type="checkbox" class="sr-only peer" checked>
|
| 171 |
+
<div class="line w-11 h-6 bg-blue-200 rounded-full peer"></div>
|
| 172 |
+
<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>
|
| 173 |
+
</label>
|
| 174 |
+
</div>
|
| 175 |
+
<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>
|
| 176 |
+
<div class="flex justify-between items-center">
|
| 177 |
+
<button class="text-blue-600 font-medium text-sm hover:text-blue-800 flex items-center">
|
| 178 |
+
View Details <i class="fas fa-chevron-right ml-1 text-xs"></i>
|
| 179 |
+
</button>
|
| 180 |
+
<div class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Next hearing: June 5</div>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<!-- Modal Template -->
|
| 188 |
+
<div id="modal1" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
|
| 189 |
+
<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">
|
| 190 |
+
<div class="flex justify-between items-start mb-6">
|
| 191 |
+
<div>
|
| 192 |
+
<div class="flex items-center mb-3">
|
| 193 |
+
<span class="status-passed text-white text-xs font-semibold px-2 py-1 rounded-full mr-2">Passed</span>
|
| 194 |
+
<span class="text-gray-500 text-sm">May 15, 2023 • SB-1024</span>
|
| 195 |
+
</div>
|
| 196 |
+
<h2 class="text-2xl font-bold text-gray-900">Clean Energy Transition Act</h2>
|
| 197 |
+
<p class="text-gray-600">Sponsored by Sen. Maria Rodriguez</p>
|
| 198 |
+
</div>
|
| 199 |
+
<button onclick="closeModal('modal1')" class="text-gray-400 hover:text-gray-600">
|
| 200 |
+
<i class="fas fa-times"></i>
|
| 201 |
+
</button>
|
| 202 |
+
</div>
|
| 203 |
+
|
| 204 |
+
<div class="grid md:grid-cols-3 gap-6 mb-8">
|
| 205 |
+
<div class="md:col-span-2">
|
| 206 |
+
<h3 class="font-semibold text-lg mb-3">Detailed Summary</h3>
|
| 207 |
+
<p class="text-gray-700 mb-4">
|
| 208 |
+
The Clean Energy Transition Act establishes a comprehensive 10-year plan to shift the state's energy production from fossil fuels to renewable sources.
|
| 209 |
+
The bill sets binding targets of 50% renewable energy by 2028 and 80% by 2033, with provisions for grid modernization and energy storage solutions.
|
| 210 |
+
</p>
|
| 211 |
+
|
| 212 |
+
<h3 class="font-semibold text-lg mb-3 mt-6">Key Provisions</h3>
|
| 213 |
+
<ul class="list-disc pl-5 space-y-2 text-gray-700">
|
| 214 |
+
<li>Establishes Renewable Portfolio Standards with increasing targets</li>
|
| 215 |
+
<li>Creates a $2 billion fund for renewable energy infrastructure</li>
|
| 216 |
+
<li>Provides job training programs for workers transitioning from fossil fuel industries</li>
|
| 217 |
+
<li>Offers tax credits for residential and commercial solar installations</li>
|
| 218 |
+
<li>Mandates utility companies to submit transition plans</li>
|
| 219 |
+
</ul>
|
| 220 |
+
|
| 221 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mt-6">
|
| 222 |
+
<div>
|
| 223 |
+
<h4 class="font-semibold mb-2 text-green-700">Arguments For</h4>
|
| 224 |
+
<ul class="list-disc pl-5 space-y-1 text-gray-700">
|
| 225 |
+
<li>Reduces greenhouse gas emissions by 45% by 2035</li>
|
| 226 |
+
<li>Creates an estimated 25,000 new jobs in renewable sectors</li>
|
| 227 |
+
<li>Reduces long-term energy costs through stable renewable sources</li>
|
| 228 |
+
</ul>
|
| 229 |
+
</div>
|
| 230 |
+
<div>
|
| 231 |
+
<h4 class="font-semibold mb-2 text-red-700">Arguments Against</h4>
|
| 232 |
+
<ul class="list-disc pl-5 space-y-1 text-gray-700">
|
| 233 |
+
<li>Initial costs may lead to short-term utility bill increases</li>
|
| 234 |
+
<li>Challenges in retraining workers from traditional energy sectors</li>
|
| 235 |
+
<li>Reliability concerns during transition period</li>
|
| 236 |
+
</ul>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
</div>
|
| 240 |
+
|
| 241 |
+
<div class="space-y-6">
|
| 242 |
+
<div>
|
| 243 |
+
<h3 class="font-semibold mb-3">How would you vote?</h3>
|
| 244 |
+
<div class="space-y-3">
|
| 245 |
+
<button onclick="selectVote(this, 'yes')" class="vote-yes w-full border-2 rounded-lg px-4 py-2 text-left transition-all">
|
| 246 |
+
<i class="fas fa-check-circle mr-2 text-green-500"></i> Yes
|
| 247 |
+
</button>
|
| 248 |
+
<button onclick="selectVote(this, 'no')" class="vote-undecided w-full border-2 rounded-lg px-4 py-2 text-left transition-all">
|
| 249 |
+
<i class="fas fa-times-circle mr-2 text-red-500"></i> No
|
| 250 |
+
</button>
|
| 251 |
+
<button onclick="selectVote(this, 'undecided')" class="vote-undecided w-full border-2 rounded-lg px-4 py-2 text-left transition-all">
|
| 252 |
+
<i class="fas fa-question-circle mr-2 text-gray-500"></i> Undecided
|
| 253 |
+
</button>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
|
| 257 |
+
<div>
|
| 258 |
+
<h3 class="font-semibold mb-3">Vote Results</h3>
|
| 259 |
+
<div class="space-y-4">
|
| 260 |
+
<div>
|
| 261 |
+
<div class="flex justify-between mb-1">
|
| 262 |
+
<span>Senate</span>
|
| 263 |
+
<span>28-12</span>
|
| 264 |
+
</div>
|
| 265 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 266 |
+
<div class="bg-green-600 h-2.5 rounded-full chart-bar" style="width: 70%"></div>
|
| 267 |
+
</div>
|
| 268 |
+
<div class="flex justify-between text-xs text-gray-500 mt-1">
|
| 269 |
+
<span>70% Yes</span>
|
| 270 |
+
<span>30% No</span>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
<div>
|
| 274 |
+
<div class="flex justify-between mb-1">
|
| 275 |
+
<span>House</span>
|
| 276 |
+
<span>54-46</span>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 279 |
+
<div class="bg-green-600 h-2.5 rounded-full chart-bar" style="width: 54%"></div>
|
| 280 |
+
</div>
|
| 281 |
+
<div class="flex justify-between text-xs text-gray-500 mt-1">
|
| 282 |
+
<span>54% Yes</span>
|
| 283 |
+
<span>46% No</span>
|
| 284 |
+
</div>
|
| 285 |
+
</div>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
|
| 289 |
+
<div class="pt-4 border-t">
|
| 290 |
+
<label class="flex items-center space-x-3 cursor-pointer">
|
| 291 |
+
<div class="relative">
|
| 292 |
+
<input type="checkbox" class="sr-only peer" checked>
|
| 293 |
+
<div class="w-11 h-6 bg-blue-200 rounded-full peer"></div>
|
| 294 |
+
<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>
|
| 295 |
+
</div>
|
| 296 |
+
<span class="font-medium">Follow this bill</span>
|
| 297 |
+
</label>
|
| 298 |
+
<p class="text-sm text-gray-500 mt-1">Get notifications when there are updates</p>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
</div>
|
| 302 |
+
|
| 303 |
+
<div class="mt-8">
|
| 304 |
+
<h3 class="font-semibold text-lg mb-4">How Your Representatives Voted</h3>
|
| 305 |
+
<div class="overflow-x-auto">
|
| 306 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 307 |
+
<thead class="bg-gray-50">
|
| 308 |
+
<tr>
|
| 309 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
|
| 310 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">District</th>
|
| 311 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Party</th>
|
| 312 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vote</th>
|
| 313 |
+
</tr>
|
| 314 |
+
</thead>
|
| 315 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 316 |
+
<tr>
|
| 317 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 318 |
+
<div class="flex items-center">
|
| 319 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 320 |
+
<img class="h-10 w-10 rounded-full" src="https://i.pravatar.cc/150?img=1" alt="">
|
| 321 |
+
</div>
|
| 322 |
+
<div class="ml-4">
|
| 323 |
+
<div class="text-sm font-medium text-gray-900">Rep. Sarah Johnson</div>
|
| 324 |
+
</div>
|
| 325 |
+
</div>
|
| 326 |
+
</td>
|
| 327 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">District 14</td>
|
| 328 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">D</td>
|
| 329 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 330 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Yes</span>
|
| 331 |
+
</td>
|
| 332 |
+
</tr>
|
| 333 |
+
<tr>
|
| 334 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 335 |
+
<div class="flex items-center">
|
| 336 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 337 |
+
<img class="h-10 w-10 rounded-full" src="https://i.pravatar.cc/150?img=2" alt="">
|
| 338 |
+
</div>
|
| 339 |
+
<div class="ml-4">
|
| 340 |
+
<div class="text-sm font-medium text-gray-900">Sen. Michael Chen</div>
|
| 341 |
+
</div>
|
| 342 |
+
</div>
|
| 343 |
+
</td>
|
| 344 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">District 7</td>
|
| 345 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">D</td>
|
| 346 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 347 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Yes</span>
|
| 348 |
+
</td>
|
| 349 |
+
</tr>
|
| 350 |
+
<tr>
|
| 351 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 352 |
+
<div class="flex items-center">
|
| 353 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 354 |
+
<img class="h-10 w-10 rounded-full" src="https://i.pravatar.cc/150?img=3" alt="">
|
| 355 |
+
</div>
|
| 356 |
+
<div class="ml-4">
|
| 357 |
+
<div class="text-sm font-medium text-gray-900">Rep. David Wilson</div>
|
| 358 |
+
</div>
|
| 359 |
+
</div>
|
| 360 |
+
</td>
|
| 361 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">District 14</td>
|
| 362 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R</td>
|
| 363 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 364 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">No</span>
|
| 365 |
+
</td>
|
| 366 |
+
</tr>
|
| 367 |
+
</tbody>
|
| 368 |
+
</table>
|
| 369 |
+
</div>
|
| 370 |
+
</div>
|
| 371 |
+
|
| 372 |
+
<div class="mt-8 flex justify-end">
|
| 373 |
+
<button onclick="closeModal('modal1')" class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-6 rounded-lg transition">
|
| 374 |
+
Close
|
| 375 |
+
</button>
|
| 376 |
+
</div>
|
| 377 |
+
</div>
|
| 378 |
+
</div>
|
| 379 |
+
|
| 380 |
+
<!-- Additional modals would follow the same pattern -->
|
| 381 |
+
<div id="modal2" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
|
| 382 |
+
<!-- Modal content similar to modal1 but for Affordable Housing Expansion -->
|
| 383 |
+
</div>
|
| 384 |
+
|
| 385 |
+
<div id="modal3" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
|
| 386 |
+
<!-- Modal content similar to modal1 but for School Choice Expansion -->
|
| 387 |
+
</div>
|
| 388 |
+
|
| 389 |
+
<div id="modal4" class="modal fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 hidden">
|
| 390 |
+
<!-- Modal content similar to modal1 but for Digital Privacy Protection Act -->
|
| 391 |
+
</div>
|
| 392 |
+
|
| 393 |
+
<script>
|
| 394 |
+
// Modal functions
|
| 395 |
+
function openModal(modalId) {
|
| 396 |
+
document.getElementById(modalId).classList.remove('hidden');
|
| 397 |
+
document.body.style.overflow = 'hidden';
|
| 398 |
+
}
|
| 399 |
+
|
| 400 |
+
function closeModal(modalId) {
|
| 401 |
+
document.getElementById(modalId).classList.add('hidden');
|
| 402 |
+
document.body.style.overflow = 'auto';
|
| 403 |
+
}
|
| 404 |
+
|
| 405 |
+
// Close modal when clicking outside content
|
| 406 |
+
window.onclick = function(event) {
|
| 407 |
+
if (event.target.className.includes('modal')) {
|
| 408 |
+
event.target.classList.add('hidden');
|
| 409 |
+
document.body.style.overflow = 'auto';
|
| 410 |
+
}
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
// Vote selection function
|
| 414 |
+
function selectVote(element, voteType) {
|
| 415 |
+
// Remove selected state from all buttons
|
| 416 |
+
document.querySelectorAll('[onclick^="selectVote"]').forEach(btn => {
|
| 417 |
+
btn.classList.remove('vote-yes', 'vote-no', 'vote-undecided', 'vote-selected');
|
| 418 |
+
btn.classList.add('vote-undecided');
|
| 419 |
+
});
|
| 420 |
+
|
| 421 |
+
// Add appropriate class to selected button
|
| 422 |
+
element.classList.remove('vote-undecided');
|
| 423 |
+
element.classList.add('vote-' + voteType, 'vote-selected');
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
// Follow toggle functionality
|
| 427 |
+
document.querySelectorAll('.follow-toggle input').forEach(toggle => {
|
| 428 |
+
toggle.addEventListener('change', function() {
|
| 429 |
+
const icon = this.closest('.bill-card').querySelector('.fa-bell');
|
| 430 |
+
if (icon) {
|
| 431 |
+
if (this.checked) {
|
| 432 |
+
icon.classList.remove('far', 'text-gray-400');
|
| 433 |
+
icon.classList.add('fas', 'text-blue-500');
|
| 434 |
+
} else {
|
| 435 |
+
icon.classList.remove('fas', 'text-blue-500');
|
| 436 |
+
icon.classList.add('far', 'text-gray-400');
|
| 437 |
+
}
|
| 438 |
+
}
|
| 439 |
+
});
|
| 440 |
+
});
|
| 441 |
+
</script>
|
| 442 |
+
<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>
|
| 443 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Design a scrollable bill feed under the "Bill" header that displays new legislation in a card format, with newest bills at the top and older ones below. Each bill card should include: Bill Title Bill Number & Sponsor Date introduced Short Summary (simple English, 1–2 sentences) Vote Status (e.g., “Upcoming Vote,” “Passed,” “Failed”) A button or link: “See How They Voted” When the user clicks the card, open a full view with: A detailed plain-language synopsis Main points (bulleted) Arguments For and Against (bulleted, nonpartisan) The user's personal vote selection: Yes, No, or Undecided A comparison chart of how their elected representatives voted Visual notes: Use color tags or icons to quickly indicate status (e.g., green = passed, red = failed, blue = pending) Optional: Add a “Follow Bill” toggle to notify users when a vote is cast Card layout should be clean, stackable, and optimized for mobile swiping or scrolling Goal: Make the bill browsing experience feel like a modern newsfeed, but with clear civic utility and easy public engagement.
|