anonymous111110987654321 commited on
Commit
2d1979e
·
verified ·
1 Parent(s): 7de09bc

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +633 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: 301 Tariffs Analysis Dashboard
3
- emoji: 😻
4
- colorFrom: purple
5
- colorTo: yellow
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: 301-tariffs-analysis-dashboard
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: gray
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,633 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>301 Tariffs Dashboard</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
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
10
+ <style>
11
+ .dashboard-card {
12
+ transition: all 0.3s ease;
13
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
14
+ }
15
+ .dashboard-card:hover {
16
+ transform: translateY(-5px);
17
+ box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
18
+ }
19
+ .tab-active {
20
+ border-bottom: 3px solid #3b82f6;
21
+ color: #3b82f6;
22
+ font-weight: 600;
23
+ }
24
+ .custom-scrollbar::-webkit-scrollbar {
25
+ width: 6px;
26
+ height: 6px;
27
+ }
28
+ .custom-scrollbar::-webkit-scrollbar-track {
29
+ background: #f1f1f1;
30
+ }
31
+ .custom-scrollbar::-webkit-scrollbar-thumb {
32
+ background: #888;
33
+ border-radius: 4px;
34
+ }
35
+ .custom-scrollbar::-webkit-scrollbar-thumb:hover {
36
+ background: #555;
37
+ }
38
+ .map-container {
39
+ position: relative;
40
+ overflow: hidden;
41
+ padding-top: 56.25%; /* 16:9 Aspect Ratio */
42
+ }
43
+ .map-iframe {
44
+ position: absolute;
45
+ top: 0;
46
+ left: 0;
47
+ bottom: 0;
48
+ right: 0;
49
+ width: 100%;
50
+ height: 100%;
51
+ border: none;
52
+ }
53
+ </style>
54
+ </head>
55
+ <body class="bg-gray-100 font-sans">
56
+ <div class="container mx-auto px-4 py-6">
57
+ <!-- Header -->
58
+ <header class="bg-white rounded-lg shadow-md p-6 mb-6 flex justify-between items-center">
59
+ <div>
60
+ <h1 class="text-3xl font-bold text-gray-800">301 Tariffs Analysis Dashboard</h1>
61
+ <p class="text-gray-600 mt-2">Comprehensive overview of Section 301 tariffs imposed by the U.S.</p>
62
+ </div>
63
+ <div class="flex items-center space-x-4">
64
+ <div class="relative">
65
+ <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md py-2 pl-4 pr-8 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
66
+ <option>Last 12 Months</option>
67
+ <option>2023</option>
68
+ <option>2022</option>
69
+ <option>2021</option>
70
+ </select>
71
+ <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
72
+ <i class="fas fa-chevron-down"></i>
73
+ </div>
74
+ </div>
75
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md flex items-center">
76
+ <i class="fas fa-download mr-2"></i> Export
77
+ </button>
78
+ </div>
79
+ </header>
80
+
81
+ <!-- Summary Cards -->
82
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
83
+ <div class="dashboard-card bg-white rounded-lg p-6">
84
+ <div class="flex justify-between items-start">
85
+ <div>
86
+ <p class="text-gray-500 text-sm font-medium">Total Tariff Value</p>
87
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">$73.2B</h3>
88
+ </div>
89
+ <div class="bg-blue-100 p-2 rounded-full">
90
+ <i class="fas fa-dollar-sign text-blue-600"></i>
91
+ </div>
92
+ </div>
93
+ <div class="mt-4">
94
+ <div class="flex items-center text-sm">
95
+ <span class="text-green-500 mr-1"><i class="fas fa-arrow-up"></i> 12.4%</span>
96
+ <span class="text-gray-500">vs last year</span>
97
+ </div>
98
+ </div>
99
+ </div>
100
+
101
+ <div class="dashboard-card bg-white rounded-lg p-6">
102
+ <div class="flex justify-between items-start">
103
+ <div>
104
+ <p class="text-gray-500 text-sm font-medium">Affected Products</p>
105
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">5,745</h3>
106
+ </div>
107
+ <div class="bg-green-100 p-2 rounded-full">
108
+ <i class="fas fa-boxes text-green-600"></i>
109
+ </div>
110
+ </div>
111
+ <div class="mt-4">
112
+ <div class="flex items-center text-sm">
113
+ <span class="text-red-500 mr-1"><i class="fas fa-arrow-down"></i> 3.2%</span>
114
+ <span class="text-gray-500">vs last year</span>
115
+ </div>
116
+ </div>
117
+ </div>
118
+
119
+ <div class="dashboard-card bg-white rounded-lg p-6">
120
+ <div class="flex justify-between items-start">
121
+ <div>
122
+ <p class="text-gray-500 text-sm font-medium">Top Affected Sector</p>
123
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">Electronics</h3>
124
+ </div>
125
+ <div class="bg-purple-100 p-2 rounded-full">
126
+ <i class="fas fa-microchip text-purple-600"></i>
127
+ </div>
128
+ </div>
129
+ <div class="mt-4">
130
+ <div class="flex items-center text-sm">
131
+ <span class="text-green-500 mr-1"><i class="fas fa-arrow-up"></i> 18.7%</span>
132
+ <span class="text-gray-500">of total tariffs</span>
133
+ </div>
134
+ </div>
135
+ </div>
136
+
137
+ <div class="dashboard-card bg-white rounded-lg p-6">
138
+ <div class="flex justify-between items-start">
139
+ <div>
140
+ <p class="text-gray-500 text-sm font-medium">Main Target Country</p>
141
+ <h3 class="text-2xl font-bold text-gray-800 mt-1">China</h3>
142
+ </div>
143
+ <div class="bg-red-100 p-2 rounded-full">
144
+ <i class="fas fa-globe-asia text-red-600"></i>
145
+ </div>
146
+ </div>
147
+ <div class="mt-4">
148
+ <div class="flex items-center text-sm">
149
+ <span class="text-green-500 mr-1"><i class="fas fa-arrow-up"></i> 89.2%</span>
150
+ <span class="text-gray-500">of total tariffs</span>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+
156
+ <!-- Main Content -->
157
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
158
+ <!-- Left Column -->
159
+ <div class="lg:col-span-2 space-y-6">
160
+ <!-- Tariff Trends Chart -->
161
+ <div class="dashboard-card bg-white rounded-lg p-6">
162
+ <div class="flex justify-between items-center mb-4">
163
+ <h2 class="text-xl font-semibold text-gray-800">Tariff Value Trends</h2>
164
+ <div class="flex space-x-2">
165
+ <button class="px-3 py-1 text-sm bg-blue-100 text-blue-600 rounded-md">Monthly</button>
166
+ <button class="px-3 py-1 text-sm bg-gray-100 text-gray-600 rounded-md">Quarterly</button>
167
+ <button class="px-3 py-1 text-sm bg-gray-100 text-gray-600 rounded-md">Yearly</button>
168
+ </div>
169
+ </div>
170
+ <div class="h-80">
171
+ <canvas id="tariffTrendsChart"></canvas>
172
+ </div>
173
+ </div>
174
+
175
+ <!-- Sector Breakdown -->
176
+ <div class="dashboard-card bg-white rounded-lg p-6">
177
+ <div class="flex justify-between items-center mb-4">
178
+ <h2 class="text-xl font-semibold text-gray-800">Sector Breakdown</h2>
179
+ <div class="relative">
180
+ <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md py-1 pl-3 pr-8 text-gray-700 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
181
+ <option>By Value</option>
182
+ <option>By Volume</option>
183
+ <option>By Product Count</option>
184
+ </select>
185
+ <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
186
+ <i class="fas fa-chevron-down text-xs"></i>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
191
+ <div class="h-64">
192
+ <canvas id="sectorPieChart"></canvas>
193
+ </div>
194
+ <div class="overflow-y-auto custom-scrollbar h-64">
195
+ <table class="min-w-full divide-y divide-gray-200">
196
+ <thead class="bg-gray-50">
197
+ <tr>
198
+ <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Sector</th>
199
+ <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Value ($B)</th>
200
+ <th class="px-4 py-2 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Share</th>
201
+ </tr>
202
+ </thead>
203
+ <tbody class="bg-white divide-y divide-gray-200">
204
+ <tr>
205
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Electronics</td>
206
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">13.7</td>
207
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">18.7%</td>
208
+ </tr>
209
+ <tr>
210
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Machinery</td>
211
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">12.3</td>
212
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">16.8%</td>
213
+ </tr>
214
+ <tr>
215
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Chemicals</td>
216
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">9.8</td>
217
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">13.4%</td>
218
+ </tr>
219
+ <tr>
220
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Metals</td>
221
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">8.5</td>
222
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">11.6%</td>
223
+ </tr>
224
+ <tr>
225
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Textiles</td>
226
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">6.2</td>
227
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">8.5%</td>
228
+ </tr>
229
+ <tr>
230
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Plastics</td>
231
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">5.7</td>
232
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">7.8%</td>
233
+ </tr>
234
+ <tr>
235
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Other</td>
236
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">17.0</td>
237
+ <td class="px-4 py-2 whitespace-nowrap text-sm text-right text-gray-500">23.2%</td>
238
+ </tr>
239
+ </tbody>
240
+ </table>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ </div>
245
+
246
+ <!-- Right Column -->
247
+ <div class="space-y-6">
248
+ <!-- Country Distribution -->
249
+ <div class="dashboard-card bg-white rounded-lg p-6">
250
+ <div class="flex justify-between items-center mb-4">
251
+ <h2 class="text-xl font-semibold text-gray-800">Country Distribution</h2>
252
+ <button class="text-blue-600 text-sm font-medium">View All</button>
253
+ </div>
254
+ <div class="h-64">
255
+ <canvas id="countryBarChart"></canvas>
256
+ </div>
257
+ </div>
258
+
259
+ <!-- Top Products Affected -->
260
+ <div class="dashboard-card bg-white rounded-lg p-6">
261
+ <div class="flex justify-between items-center mb-4">
262
+ <h2 class="text-xl font-semibold text-gray-800">Top Products Affected</h2>
263
+ <button class="text-blue-600 text-sm font-medium">View All</button>
264
+ </div>
265
+ <div class="overflow-y-auto custom-scrollbar h-64">
266
+ <div class="space-y-4">
267
+ <div class="flex items-start">
268
+ <div class="bg-blue-100 p-2 rounded-md mr-3">
269
+ <i class="fas fa-microchip text-blue-600"></i>
270
+ </div>
271
+ <div class="flex-1">
272
+ <h4 class="text-sm font-medium text-gray-800">Semiconductors</h4>
273
+ <p class="text-xs text-gray-500">HS Code: 8542.31.00</p>
274
+ <div class="mt-1 flex justify-between items-center">
275
+ <span class="text-xs font-medium text-gray-700">$4.2B</span>
276
+ <span class="text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded-full">25% tariff</span>
277
+ </div>
278
+ </div>
279
+ </div>
280
+ <div class="flex items-start">
281
+ <div class="bg-green-100 p-2 rounded-md mr-3">
282
+ <i class="fas fa-car text-green-600"></i>
283
+ </div>
284
+ <div class="flex-1">
285
+ <h4 class="text-sm font-medium text-gray-800">Auto Parts</h4>
286
+ <p class="text-xs text-gray-500">HS Code: 8708.99.80</p>
287
+ <div class="mt-1 flex justify-between items-center">
288
+ <span class="text-xs font-medium text-gray-700">$3.8B</span>
289
+ <span class="text-xs bg-green-100 text-green-800 px-2 py-0.5 rounded-full">20% tariff</span>
290
+ </div>
291
+ </div>
292
+ </div>
293
+ <div class="flex items-start">
294
+ <div class="bg-purple-100 p-2 rounded-md mr-3">
295
+ <i class="fas fa-bolt text-purple-600"></i>
296
+ </div>
297
+ <div class="flex-1">
298
+ <h4 class="text-sm font-medium text-gray-800">Electrical Machinery</h4>
299
+ <p class="text-xs text-gray-500">HS Code: 8504.40.95</p>
300
+ <div class="mt-1 flex justify-between items-center">
301
+ <span class="text-xs font-medium text-gray-700">$3.5B</span>
302
+ <span class="text-xs bg-purple-100 text-purple-800 px-2 py-0.5 rounded-full">25% tariff</span>
303
+ </div>
304
+ </div>
305
+ </div>
306
+ <div class="flex items-start">
307
+ <div class="bg-yellow-100 p-2 rounded-md mr-3">
308
+ <i class="fas fa-industry text-yellow-600"></i>
309
+ </div>
310
+ <div class="flex-1">
311
+ <h4 class="text-sm font-medium text-gray-800">Industrial Chemicals</h4>
312
+ <p class="text-xs text-gray-500">HS Code: 2903.19.10</p>
313
+ <div class="mt-1 flex justify-between items-center">
314
+ <span class="text-xs font-medium text-gray-700">$2.9B</span>
315
+ <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-0.5 rounded-full">15% tariff</span>
316
+ </div>
317
+ </div>
318
+ </div>
319
+ <div class="flex items-start">
320
+ <div class="bg-red-100 p-2 rounded-md mr-3">
321
+ <i class="fas fa-tshirt text-red-600"></i>
322
+ </div>
323
+ <div class="flex-1">
324
+ <h4 class="text-sm font-medium text-gray-800">Textile Products</h4>
325
+ <p class="text-xs text-gray-500">HS Code: 6307.90.98</p>
326
+ <div class="mt-1 flex justify-between items-center">
327
+ <span class="text-xs font-medium text-gray-700">$2.7B</span>
328
+ <span class="text-xs bg-red-100 text-red-800 px-2 py-0.5 rounded-full">10% tariff</span>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </div>
337
+
338
+ <!-- Bottom Section -->
339
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
340
+ <!-- Geographic Impact -->
341
+ <div class="dashboard-card bg-white rounded-lg p-6">
342
+ <div class="flex justify-between items-center mb-4">
343
+ <h2 class="text-xl font-semibold text-gray-800">Geographic Impact</h2>
344
+ <div class="flex space-x-2">
345
+ <button class="px-3 py-1 text-sm bg-blue-100 text-blue-600 rounded-md">Imports</button>
346
+ <button class="px-3 py-1 text-sm bg-gray-100 text-gray-600 rounded-md">Exports</button>
347
+ </div>
348
+ </div>
349
+ <div class="map-container">
350
+ <iframe class="map-iframe" src="https://www.google.com/maps/embed/v1/place?key=YOUR_API_KEY&q=China" allowfullscreen></iframe>
351
+ </div>
352
+ <div class="mt-4 text-sm text-gray-600">
353
+ <p>China accounts for 89.2% of all Section 301 tariffs, followed by Vietnam (3.1%), Taiwan (2.8%), and others (4.9%).</p>
354
+ </div>
355
+ </div>
356
+
357
+ <!-- Timeline of Tariff Actions -->
358
+ <div class="dashboard-card bg-white rounded-lg p-6">
359
+ <div class="flex justify-between items-center mb-4">
360
+ <h2 class="text-xl font-semibold text-gray-800">Timeline of Tariff Actions</h2>
361
+ <button class="text-blue-600 text-sm font-medium">View Full History</button>
362
+ </div>
363
+ <div class="overflow-y-auto custom-scrollbar h-80">
364
+ <div class="space-y-4">
365
+ <div class="flex">
366
+ <div class="flex flex-col items-center mr-4">
367
+ <div class="w-4 h-4 bg-blue-500 rounded-full"></div>
368
+ <div class="w-px h-full bg-gray-300"></div>
369
+ </div>
370
+ <div class="pb-4">
371
+ <p class="text-sm font-medium text-gray-800">July 6, 2018</p>
372
+ <p class="text-sm text-gray-600">First tranche of tariffs implemented on $34B of Chinese goods (25% tariff)</p>
373
+ </div>
374
+ </div>
375
+ <div class="flex">
376
+ <div class="flex flex-col items-center mr-4">
377
+ <div class="w-4 h-4 bg-blue-500 rounded-full"></div>
378
+ <div class="w-px h-full bg-gray-300"></div>
379
+ </div>
380
+ <div class="pb-4">
381
+ <p class="text-sm font-medium text-gray-800">August 23, 2018</p>
382
+ <p class="text-sm text-gray-600">Second tranche on $16B of goods (25% tariff)</p>
383
+ </div>
384
+ </div>
385
+ <div class="flex">
386
+ <div class="flex flex-col items-center mr-4">
387
+ <div class="w-4 h-4 bg-blue-500 rounded-full"></div>
388
+ <div class="w-px h-full bg-gray-300"></div>
389
+ </div>
390
+ <div class="pb-4">
391
+ <p class="text-sm font-medium text-gray-800">September 24, 2018</p>
392
+ <p class="text-sm text-gray-600">Third tranche on $200B of goods (10% tariff, increased to 25% in May 2019)</p>
393
+ </div>
394
+ </div>
395
+ <div class="flex">
396
+ <div class="flex flex-col items-center mr-4">
397
+ <div class="w-4 h-4 bg-blue-500 rounded-full"></div>
398
+ <div class="w-px h-full bg-gray-300"></div>
399
+ </div>
400
+ <div class="pb-4">
401
+ <p class="text-sm font-medium text-gray-800">September 1, 2019</p>
402
+ <p class="text-sm text-gray-600">Fourth tranche on $112B of goods (15% tariff, reduced to 7.5% in February 2020)</p>
403
+ </div>
404
+ </div>
405
+ <div class="flex">
406
+ <div class="flex flex-col items-center mr-4">
407
+ <div class="w-4 h-4 bg-blue-500 rounded-full"></div>
408
+ <div class="w-px h-full bg-gray-300"></div>
409
+ </div>
410
+ <div class="pb-4">
411
+ <p class="text-sm font-medium text-gray-800">January 15, 2020</p>
412
+ <p class="text-sm text-gray-600">Phase One trade agreement signed, some tariff reductions</p>
413
+ </div>
414
+ </div>
415
+ <div class="flex">
416
+ <div class="flex flex-col items-center mr-4">
417
+ <div class="w-4 h-4 bg-blue-500 rounded-full"></div>
418
+ <div class="w-px h-full bg-gray-300"></div>
419
+ </div>
420
+ <div class="pb-4">
421
+ <p class="text-sm font-medium text-gray-800">March 2021</p>
422
+ <p class="text-sm text-gray-600">USTR begins review of Section 301 tariffs</p>
423
+ </div>
424
+ </div>
425
+ <div class="flex">
426
+ <div class="flex flex-col items-center mr-4">
427
+ <div class="w-4 h-4 bg-blue-500 rounded-full"></div>
428
+ </div>
429
+ <div>
430
+ <p class="text-sm font-medium text-gray-800">May 2023</p>
431
+ <p class="text-sm text-gray-600">Latest tariff exclusions extended for certain products</p>
432
+ </div>
433
+ </div>
434
+ </div>
435
+ </div>
436
+ </div>
437
+ </div>
438
+
439
+ <!-- Footer -->
440
+ <footer class="bg-white rounded-lg shadow-md p-4 mt-6">
441
+ <div class="flex flex-col md:flex-row justify-between items-center">
442
+ <div class="text-sm text-gray-500 mb-2 md:mb-0">
443
+ <p>Data as of June 2023 | Source: U.S. Trade Representative, U.S. Census Bureau</p>
444
+ </div>
445
+ <div class="flex space-x-4">
446
+ <button class="text-gray-500 hover:text-gray-700">
447
+ <i class="fas fa-question-circle"></i>
448
+ </button>
449
+ <button class="text-gray-500 hover:text-gray-700">
450
+ <i class="fas fa-cog"></i>
451
+ </button>
452
+ <button class="text-gray-500 hover:text-gray-700">
453
+ <i class="fas fa-bell"></i>
454
+ </button>
455
+ </div>
456
+ </div>
457
+ </footer>
458
+ </div>
459
+
460
+ <script>
461
+ // Tariff Trends Chart
462
+ const tariffTrendsCtx = document.getElementById('tariffTrendsChart').getContext('2d');
463
+ const tariffTrendsChart = new Chart(tariffTrendsCtx, {
464
+ type: 'line',
465
+ data: {
466
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
467
+ datasets: [
468
+ {
469
+ label: '2023',
470
+ data: [5.2, 5.8, 6.1, 5.9, 6.5, 6.8, 7.2, 7.5, 7.1, 6.9, 6.7, 6.4],
471
+ borderColor: '#3b82f6',
472
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
473
+ borderWidth: 2,
474
+ tension: 0.3,
475
+ fill: true
476
+ },
477
+ {
478
+ label: '2022',
479
+ data: [4.8, 5.1, 5.3, 5.0, 5.6, 5.9, 6.2, 6.6, 6.4, 6.1, 5.8, 5.5],
480
+ borderColor: '#94a3b8',
481
+ backgroundColor: 'rgba(148, 163, 184, 0.1)',
482
+ borderWidth: 2,
483
+ borderDash: [5, 5],
484
+ tension: 0.3,
485
+ fill: true
486
+ }
487
+ ]
488
+ },
489
+ options: {
490
+ responsive: true,
491
+ maintainAspectRatio: false,
492
+ plugins: {
493
+ legend: {
494
+ position: 'top',
495
+ },
496
+ tooltip: {
497
+ callbacks: {
498
+ label: function(context) {
499
+ return context.dataset.label + ': $' + context.raw + 'B';
500
+ }
501
+ }
502
+ }
503
+ },
504
+ scales: {
505
+ y: {
506
+ beginAtZero: true,
507
+ title: {
508
+ display: true,
509
+ text: 'Tariff Value ($B)'
510
+ }
511
+ }
512
+ }
513
+ }
514
+ });
515
+
516
+ // Sector Pie Chart
517
+ const sectorPieCtx = document.getElementById('sectorPieChart').getContext('2d');
518
+ const sectorPieChart = new Chart(sectorPieCtx, {
519
+ type: 'doughnut',
520
+ data: {
521
+ labels: ['Electronics', 'Machinery', 'Chemicals', 'Metals', 'Textiles', 'Plastics', 'Other'],
522
+ datasets: [{
523
+ data: [18.7, 16.8, 13.4, 11.6, 8.5, 7.8, 23.2],
524
+ backgroundColor: [
525
+ '#3b82f6',
526
+ '#10b981',
527
+ '#f59e0b',
528
+ '#ef4444',
529
+ '#8b5cf6',
530
+ '#ec4899',
531
+ '#94a3b8'
532
+ ],
533
+ borderWidth: 0
534
+ }]
535
+ },
536
+ options: {
537
+ responsive: true,
538
+ maintainAspectRatio: false,
539
+ plugins: {
540
+ legend: {
541
+ position: 'right',
542
+ },
543
+ tooltip: {
544
+ callbacks: {
545
+ label: function(context) {
546
+ return context.label + ': ' + context.raw + '%';
547
+ }
548
+ }
549
+ }
550
+ },
551
+ cutout: '70%'
552
+ }
553
+ });
554
+
555
+ // Country Bar Chart
556
+ const countryBarCtx = document.getElementById('countryBarChart').getContext('2d');
557
+ const countryBarChart = new Chart(countryBarCtx, {
558
+ type: 'bar',
559
+ data: {
560
+ labels: ['China', 'Vietnam', 'Taiwan', 'Germany', 'Mexico', 'Others'],
561
+ datasets: [{
562
+ label: 'Tariff Value Share',
563
+ data: [89.2, 3.1, 2.8, 1.2, 0.8, 2.9],
564
+ backgroundColor: [
565
+ '#3b82f6',
566
+ '#10b981',
567
+ '#f59e0b',
568
+ '#ef4444',
569
+ '#8b5cf6',
570
+ '#94a3b8'
571
+ ],
572
+ borderWidth: 0
573
+ }]
574
+ },
575
+ options: {
576
+ responsive: true,
577
+ maintainAspectRatio: false,
578
+ plugins: {
579
+ legend: {
580
+ display: false
581
+ },
582
+ tooltip: {
583
+ callbacks: {
584
+ label: function(context) {
585
+ return context.raw + '%';
586
+ }
587
+ }
588
+ }
589
+ },
590
+ scales: {
591
+ y: {
592
+ beginAtZero: true,
593
+ title: {
594
+ display: true,
595
+ text: 'Share of Tariffs (%)'
596
+ }
597
+ }
598
+ }
599
+ }
600
+ });
601
+
602
+ // Interactive elements
603
+ document.querySelectorAll('.dashboard-card').forEach(card => {
604
+ card.addEventListener('click', function() {
605
+ // You could add more interactive functionality here
606
+ console.log('Card clicked:', this.querySelector('h2, h3').textContent);
607
+ });
608
+ });
609
+
610
+ // Tab switching functionality
611
+ document.querySelectorAll('button').forEach(btn => {
612
+ btn.addEventListener('click', function() {
613
+ if (this.parentElement.classList.contains('flex') &&
614
+ this.parentElement.parentElement.querySelector('h2').textContent.includes('Trends')) {
615
+ // For the trend period buttons
616
+ document.querySelectorAll('button').forEach(b => {
617
+ if (b.parentElement === this.parentElement) {
618
+ b.classList.remove('bg-blue-100', 'text-blue-600');
619
+ b.classList.add('bg-gray-100', 'text-gray-600');
620
+ }
621
+ });
622
+ this.classList.remove('bg-gray-100', 'text-gray-600');
623
+ this.classList.add('bg-blue-100', 'text-blue-600');
624
+
625
+ // Update chart data based on selection
626
+ const period = this.textContent;
627
+ console.log('Switching to:', period, 'view');
628
+ }
629
+ });
630
+ });
631
+ </script>
632
+ <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=anonymous111110987654321/301-tariffs-analysis-dashboard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
633
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ create a detailed interactive Power BI dashboard covering 301 Tariffs