-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtables.html
More file actions
273 lines (257 loc) · 16.5 KB
/
tables.html
File metadata and controls
273 lines (257 loc) · 16.5 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<!-- Favicons -->
<link rel="icon" type="image/png" sizes="192x192" href="https://raw.githubusercontent.com/CommunityScale/media-kit/main/favicon/communityscale-favicon-192.png">
<link rel="icon" type="image/png" sizes="512x512" href="https://raw.githubusercontent.com/CommunityScale/media-kit/main/favicon/communityscale-favicon-512.png">
<link rel="apple-touch-icon" sizes="192x192" href="https://raw.githubusercontent.com/CommunityScale/media-kit/main/favicon/communityscale-favicon-192.png">
<script src="https://cdn.tailwindcss.com"></script>
<script src="./tailwind.config.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
'sans': ['Roboto', 'system-ui', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Arial', 'sans-serif'],
}
}
}
}
</script>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Demand -->
<div class="sm:mx-auto sm:max-w-3xl divide-y divide-gray-200 overflow-hidden sm:rounded-lg bg-white shadow-sm">
<div class="px-4 py-5 sm:px-6">
<h3 class="text-lg font-medium leading-6 text-gray-900">What is the housing demand in Upper Arlington for 2025-2035?</h3>
</div>
<div class="px-4 py-5 sm:p-6">
<div class="flex flex-col gap-6">
<div class="w-full">
<!-- Table start -->
<div>
<div class="sm:flex sm:items-center">
<div class="sm:flex-auto">
<h1 class="text-base font-semibold text-gray-900">Transactions</h1>
<p class="mt-2 text-sm text-gray-700">A table of placeholder stock market data that does not make any sense.</p>
</div>
<div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
<button type="button" class="block rounded-md bg-indigo-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Export</button>
</div>
</div>
<div class="mt-8 flow-root">
<div class="overflow-x-auto">
<div class="inline-block min-w-full align-middle">
<table class="min-w-full divide-y divide-gray-300">
<thead>
<tr>
<th scope="col" class="py-3.5 pr-3 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Transaction ID</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Company</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Share</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Commision</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Price</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Quantity</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Net amount</th>
<th scope="col" class="relative py-3.5 pl-3 whitespace-nowrap">
<span class="sr-only">Edit</span>
</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
<tr>
<td class="py-2 pr-3 text-sm whitespace-nowrap text-gray-500">AAPS0L</td>
<td class="px-2 py-2 text-sm font-medium whitespace-nowrap text-gray-900">Chase & Co.</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-900">CAC</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">+$4.37</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">$3,509.00</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">12.00</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">$4,397.00</td>
<td class="relative py-2 pl-3 text-right text-sm font-medium whitespace-nowrap">
<a href="#" class="text-indigo-600 hover:text-indigo-900">Edit<span class="sr-only">, AAPS0L</span></a>
</td>
</tr>
<!-- More transactions... -->
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end of table -->
</div>
</div>
</div>
<div class="px-4 py-4 sm:px-6">
<button id="sourcesTogglePop" class="flex items-center justify-between w-full text-left text-sm font-medium text-gray-900 hover:text-gray-700 focus:outline-none">
<div class="flex items-center">
<svg class="h-5 w-5 mr-2 text-gray-400" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-3.75a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 008.25 2.25H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h1.5v1.5a3.375 3.375 0 003.375 3.375H19.5c.621 0 1.125-.504 1.125-1.125v-3.75c0-.621-.504-1.125-1.125-1.125z" />
</svg>
Sources
</div>
<svg id="chevronIconPop" class="h-5 w-5 text-gray-400 transform transition-transform duration-200" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
</svg>
</button>
<!-- Sources Section (Initially Hidden) -->
<div id="sourcesDetailsDemand" class="hidden mt-4 pt-4 border-t border-gray-100">
<!-- AMI table -->
<div>
<div class="sm:flex sm:items-center">
<div class="sm:flex-auto">
<h1 class="text-base font-semibold text-gray-900">AMI Groups Analysis</h1>
<p class="mt-2 text-sm text-gray-700">Household income distribution and housing affordability by Area Median Income (AMI) groups.</p>
</div>
<div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
<button type="button" class="block rounded-md bg-indigo-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Export</button>
</div>
</div>
<div class="mt-8 flow-root">
<div class="overflow-x-auto">
<div class="inline-block min-w-full align-middle">
<table class="min-w-full divide-y divide-gray-300">
<thead>
<tr>
<th scope="col" class="py-3.5 pr-3 text-left text-sm font-semibold text-gray-900 align-bottom">AMI group</th>
<th scope="col" class="px-2 py-3.5 text-right text-sm font-semibold text-gray-900 align-bottom">Household income</th>
<th scope="col" class="px-2 py-3.5 text-right text-sm font-semibold text-gray-900 align-bottom">Households</th>
<th scope="col" class="px-2 py-3.5 text-right text-sm font-semibold text-gray-900 align-bottom max-w-[120px]">Max monthly housing costs</th>
<th scope="col" class="px-2 py-3.5 text-right text-sm font-semibold text-gray-900 align-bottom max-w-[100px]">Max purchase price</th>
<th scope="col" class="px-2 py-3.5 text-right text-sm font-semibold text-gray-900 align-bottom max-w-[80px]">Bedrooms demand avg.</th>
<th scope="col" class="px-2 py-3.5 text-right text-sm font-semibold text-gray-900 align-bottom max-w-[80px]">Income earners avg.</th>
<th scope="col" class="px-2 py-3.5 text-right text-sm font-semibold text-gray-900 align-bottom max-w-[90px]">Householder age avg.</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
<tr>
<td class="py-2 pr-3 text-sm font-medium whitespace-nowrap text-gray-900"><50%</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$50K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1,924</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$1,250</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">$136K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">2.0</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">0.4</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">60</td>
</tr>
<tr>
<td class="py-2 pr-3 text-sm font-medium whitespace-nowrap text-gray-900">50-80%</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">$50K - $80K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1,772</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$2,000</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$217K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">2.4</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">0.9</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">56</td>
</tr>
<tr>
<td class="py-2 pr-3 text-sm font-medium whitespace-nowrap text-gray-900">80-120%</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">$80K - $120K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1,867</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$3,000</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$333K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">2.7</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1.4</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">54</td>
</tr>
<tr>
<td class="py-2 pr-3 text-sm font-medium whitespace-nowrap text-gray-900">120-150%</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">$120K - $150K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1,302</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$3,750</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$417K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">2.9</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1.7</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">53</td>
</tr>
<tr>
<td class="py-2 pr-3 text-sm font-medium whitespace-nowrap text-gray-900">150-190%</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">$150K - $200K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1,698</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$5,000</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500"><$560K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">3.1</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1.8</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">54</td>
</tr>
<tr>
<td class="py-2 pr-3 text-sm font-medium whitespace-nowrap text-gray-900">>190%</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">>$200K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">5,826</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">>$5,000</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">>$560K</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">3.2</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">1.8</td>
<td class="px-2 py-2 text-sm text-right whitespace-nowrap text-gray-500">52</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end of table -->
<!-- Template Table start -->
<div>
<div class="sm:flex sm:items-center">
<div class="sm:flex-auto">
<h1 class="text-base font-semibold text-gray-900">Transactions</h1>
<p class="mt-2 text-sm text-gray-700">A table of placeholder stock market data that does not make any sense.</p>
</div>
<div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
<button type="button" class="block rounded-md bg-indigo-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Export</button>
</div>
</div>
<div class="mt-8 flow-root">
<div class="overflow-x-auto">
<div class="inline-block min-w-full align-middle">
<table class="min-w-full divide-y divide-gray-300">
<thead>
<tr>
<th scope="col" class="py-3.5 pr-3 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Transaction ID</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Company</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Share</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Commision</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Price</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Quantity</th>
<th scope="col" class="px-2 py-3.5 text-left text-sm font-semibold whitespace-nowrap text-gray-900">Net amount</th>
<th scope="col" class="relative py-3.5 pl-3 whitespace-nowrap">
<span class="sr-only">Edit</span>
</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 bg-white">
<tr>
<td class="py-2 pr-3 text-sm whitespace-nowrap text-gray-500">AAPS0L</td>
<td class="px-2 py-2 text-sm font-medium whitespace-nowrap text-gray-900">Chase & Co.</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-900">CAC</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">+$4.37</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">$3,509.00</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">12.00</td>
<td class="px-2 py-2 text-sm whitespace-nowrap text-gray-500">$4,397.00</td>
<td class="relative py-2 pl-3 text-right text-sm font-medium whitespace-nowrap">
<a href="#" class="text-indigo-600 hover:text-indigo-900">Edit<span class="sr-only">, AAPS0L</span></a>
</td>
</tr>
<!-- More transactions... -->
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end of table -->
</div>
</div>
<script>
function toggleSourcesDemand() {
const details = document.getElementById('sourcesDetailsDemand');
const chevron = document.getElementById('chevronIconPop');
details.classList.toggle('hidden');
chevron.classList.toggle('rotate-180');
}
// Add event listener for sources toggle in population card
document.getElementById('sourcesTogglePop').addEventListener('click', toggleSourcesDemand);
</script>
</div>
</body>
</html>