Spaces:
Running

File size: 8,368 Bytes
fab03ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ed2bd7f
 
fab03ee
 
ed2bd7f
fab03ee
 
 
 
 
 
 
 
ed2bd7f
 
fab03ee
 
ed2bd7f
fab03ee
 
 
 
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Synthetic Indices Trading Bot</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>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: {
                            50: '#eef2ff',
                            100: '#e0e7ff',
                            200: '#c7d2fe',
                            300: '#a5b4fc',
                            400: '#818cf8',
                            500: '#6366f1',
                            600: '#4f46e5',
                            700: '#4338ca',
                            800: '#3730a3',
                            900: '#312e81',
                        },
                        secondary: {
                            50: '#ecfdf5',
                            100: '#d1fae5',
                            200: '#a7f3d0',
                            300: '#6ee7b7',
                            400: '#34d399',
                            500: '#10b981',
                            600: '#059669',
                            700: '#047857',
                            800: '#065f46',
                            900: '#064e3b',
                        }
                    },
                    animation: {
                        'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
                        'glow': 'glow 2s ease-in-out infinite alternate',
                    },
                    keyframes: {
                        glow: {
                            '0%': { boxShadow: '0 0 5px #6366f1, 0 0 10px #6366f1' },
                            '100%': { boxShadow: '0 0 20px #6366f1, 0 0 30px #6366f1' }
                        }
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-slate-950 text-slate-100 font-sans antialiased overflow-x-hidden">
    <custom-navbar></custom-navbar>
    
    <main class="container mx-auto px-4 py-6 max-w-7xl">
        <!-- Header Stats -->
        <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
            <custom-stats-card 
                title="Account Balance" 
                value="$10,000.00" 
                icon="dollar-sign" 
                color="primary"
                id="balance-card">
            </custom-stats-card>
            <custom-stats-card 
                title="Win Rate" 
                value="0%" 
                icon="trending-up" 
                color="secondary"
                id="winrate-card">
            </custom-stats-card>
            <custom-stats-card 
                title="Active Trades" 
                value="0" 
                icon="activity" 
                color="blue"
                id="active-trades-card">
            </custom-stats-card>
            <custom-stats-card 
                title="Profit/Loss" 
                value="$0.00" 
                icon="bar-chart-2" 
                color="emerald"
                id="pnl-card">
            </custom-stats-card>
        </div>

        <!-- Main Trading Area -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
            <!-- Chart Section -->
            <div class="lg:col-span-2 space-y-4">
                <div class="bg-slate-900/50 backdrop-blur-xl border border-slate-800 rounded-2xl p-1 shadow-2xl">
                    <div class="flex items-center justify-between px-4 py-3 border-b border-slate-800">
                        <div class="flex items-center gap-3">
                            <span class="relative flex h-3 w-3">
                                <span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"></span>
                                <span class="relative inline-flex rounded-full h-3 w-3 bg-emerald-500"></span>
                            </span>
                            <h2 class="text-lg font-semibold text-slate-100">Volatility 75 Index</h2>
                            <span class="text-xs px-2 py-1 rounded-full bg-slate-800 text-slate-400">R_75</span>
                        </div>
                        <div class="flex gap-2">
                            <button class="p-2 hover:bg-slate-800 rounded-lg transition-colors" title="1m">
                                <span class="text-xs font-medium">1m</span>
                            </button>
                            <button class="p-2 hover:bg-slate-800 rounded-lg transition-colors bg-slate-800" title="5m">
                                <span class="text-xs font-medium text-primary-400">5m</span>
                            </button>
                            <button class="p-2 hover:bg-slate-800 rounded-lg transition-colors" title="15m">
                                <span class="text-xs font-medium">15m</span>
                            </button>
                        </div>
                    </div>
                    <custom-trading-chart id="main-chart"></custom-trading-chart>
                </div>

                <!-- Quick Trade Buttons -->
                <div class="grid grid-cols-2 gap-4">
                    <button id="rise-btn" class="group relative overflow-hidden bg-emerald-600 hover:bg-emerald-500 text-white font-bold py-4 px-6 rounded-xl transition-all duration-200 transform hover:scale-[1.02] active:scale-[0.98] shadow-lg shadow-emerald-900/20">
                        <div class="absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent translate-x-[-100%] group-hover:translate-x-[100%] transition-transform duration-1000"></div>
                        <div class="flex items-center justify-center gap-2">
                            <i data-feather="trending-up" class="w-5 h-5"></i>
                            <span class="text-lg">Rise</span>
                        </div>
                        <div class="text-xs opacity-80 mt-1">87% Payout</div>
                    </button>
                    <button id="fall-btn" class="group relative overflow-hidden bg-rose-600 hover:bg-rose-500 text-white font-bold py-4 px-6 rounded-xl transition-all duration-200 transform hover:scale-[1.02] active:scale-[0.98] shadow-lg shadow-rose-900/20">
                        <div class="absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent translate-x-[-100%] group-hover:translate-x-[100%] transition-transform duration-1000"></div>
                        <div class="flex items-center justify-center gap-2">
                            <i data-feather="trending-down" class="w-5 h-5"></i>
                            <span class="text-lg">Fall</span>
                        </div>
                        <div class="text-xs opacity-80 mt-1">87% Payout</div>
                    </button>
                </div>
            </div>
            <!-- Bot Controls & History -->
            <div class="space-y-4">
                <custom-bot-controls id="bot-controls"></custom-bot-controls>
                <custom-volatility-indicator id="volatility-indicator"></custom-volatility-indicator>
                <custom-volatility-comparison id="volatility-comparison"></custom-volatility-comparison>
                <custom-trade-history id="trade-history"></custom-trade-history>
            </div>
</div>
    </main>

    <custom-footer></custom-footer>
    <!-- Component Scripts -->
    <script src="components/navbar.js"></script>
    <script src="components/stats-card.js"></script>
    <script src="components/trading-chart.js"></script>
    <script src="components/bot-controls.js"></script>
    <script src="components/volatility-indicator.js"></script>
    <script src="components/volatility-comparison.js"></script>
    <script src="components/trade-history.js"></script>
    <script src="components/footer.js"></script>
<script src="script.js"></script>
    <script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>