File size: 4,819 Bytes
9b1fe6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EconoPulse Predictor | Economic Sentiment Dashboard</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script src="components/navbar.js"></script>
    <script src="components/footer.js"></script>
</head>
<body class="bg-gray-50 dark:bg-gray-900 transition-colors duration-300">
    <custom-navbar></custom-navbar>

    <main class="container mx-auto px-4 py-8">
        <!-- Hero Section -->
        <section class="mb-16">
            <div class="text-center">
                <h1 class="text-4xl md:text-6xl font-bold text-gray-800 dark:text-white mb-4">
                    Economic <span class="text-indigo-600">Sentiment</span> Intelligence
                </h1>
                <p class="text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto">
                    Real-time economic sentiment analysis and forecasting powered by AI and social data
                </p>
            </div>
        </section>

        <!-- Dashboard Overview -->
        <section class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-12">
            <!-- Sentiment Card -->
            <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-gray-700 dark:text-gray-200">Current Sentiment</h3>
                    <i data-feather="activity" class="text-indigo-500"></i>
                </div>
                <div id="sentimentGauge" class="h-40 mb-4"></div>
                <p class="text-gray-600 dark:text-gray-300 text-sm" id="sentimentText">Loading sentiment data...</p>
            </div>

            <!-- Inflation Card -->
            <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-gray-700 dark:text-gray-200">Inflation Forecast</h3>
                    <i data-feather="trending-up" class="text-red-500"></i>
                </div>
                <div class="h-40 mb-4">
                    <canvas id="inflationChart"></canvas>
                </div>
                <p class="text-gray-600 dark:text-gray-300 text-sm" id="inflationText">Loading inflation data...</p>
            </div>

            <!-- GDP Card -->
            <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-gray-700 dark:text-gray-200">GDP Growth</h3>
                    <i data-feather="dollar-sign" class="text-green-500"></i>
                </div>
                <div class="h-40 mb-4">
                    <canvas id="gdpChart"></canvas>
                </div>
                <p class="text-gray-600 dark:text-gray-300 text-sm" id="gdpText">Loading GDP data...</p>
            </div>
        </section>

        <!-- Detailed Charts Section -->
        <section class="mb-12">
            <div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6">
                <h2 class="text-xl font-semibold text-gray-700 dark:text-gray-200 mb-6">Economic Indicators Timeline</h2>
                <div class="h-96">
                    <canvas id="fullChart"></canvas>
                </div>
            </div>
        </section>

        <!-- News Feed Section -->
        <section>
            <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-6">Latest Economic Headlines</h2>
            <div id="newsFeed" class="space-y-4">
                <!-- News items will be loaded here -->
                <div class="animate-pulse flex space-x-4">
                    <div class="flex-1 space-y-4 py-1">
                        <div class="h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4"></div>
                        <div class="space-y-2">
                            <div class="h-4 bg-gray-200 dark:bg-gray-700 rounded"></div>
                            <div class="h-4 bg-gray-200 dark:bg-gray-700 rounded w-5/6"></div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <custom-footer></custom-footer>

    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>