commit 7937c3b104ef5259986ec77ec46ea2ce9cba9f75
Author: root <root@hub.scroll.pub> Date: 2024-12-30 08:16:37 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..2127ee1 --- /dev/null +++ b/body.html @@ -0,0 +1,54 @@ +<header> + <nav> + <div class="logo">CryptoBot Trader</div> + <div class="nav-links"> + <a href="#dashboard">لوحة التحكم</a> + <a href="#analytics">التحليل الفني</a> + <a href="#reports">التقارير</a> + <a href="#settings">الإعدادات</a> + </div> + </nav> +</header> + +<main> + <section id="dashboard" class="hero"> + <h1>بوت تداول العملات الرقمية</h1> + <p>تداول آلي ذكي مع تحليلات فنية متقدمة</p> + </section> + + <section id="stats" class="stats-grid"> + <div class="stat-card"> + <h3>الأرباح اليومية</h3> + <div class="stat-value" id="daily-profit">+2.45%</div> + </div> + <div class="stat-card"> + <h3>الصفقات النشطة</h3> + <div class="stat-value" id="active-trades">12</div> + </div> + <div class="stat-card"> + <h3>إجمالي الأرباح</h3> + <div class="stat-value" id="total-profit">$1,234</div> + </div> + </section> + + <section id="chart" class="chart-container"> + <h2>التحليل الفني</h2> + <canvas id="tradingChart"></canvas> + </section> + + <section id="trades" class="trades-list"> + <h2>آخر الصفقات</h2> + <div class="trades-container" id="recent-trades"> + <!-- Trades will be populated by JavaScript --> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>تواصل معنا</h4> + <a href="https://t.me/cryptobot">Telegram</a> + </div> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..f0cb6b5 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://cryptobot.scroll.pub +metaTags +editButton /edit.html +title CryptoBot Trader - Automated Cryptocurrency Trading Bot +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..fc70215 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01XqWBdDpoD46HiLqqxWE1ah", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "Let me create a website for a Telegram crypto trading bot interface with analytics.\n\n---domain---\ncryptobot.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://cryptobot.scroll.pub\nmetaTags\neditButton /edit.html\ntitle CryptoBot Trader - Automated Cryptocurrency Trading Bot\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">CryptoBot Trader</div>\n <div class=\"nav-links\">\n <a href=\"#dashboard\">لوحة التحكم</a>\n <a href=\"#analytics\">التحليل الفني</a>\n <a href=\"#reports\">التقارير</a>\n <a href=\"#settings\">الإعدادات</a>\n </div>\n </nav>\n</header>\n\n<main>\n <section id=\"dashboard\" class=\"hero\">\n <h1>بوت تداول العملات الرقمية</h1>\n <p>تداول آلي ذكي مع تحليلات فنية متقدمة</p>\n </section>\n\n <section id=\"stats\" class=\"stats-grid\">\n <div class=\"stat-card\">\n <h3>الأرباح اليومية</h3>\n <div class=\"stat-value\" id=\"daily-profit\">+2.45%</div>\n </div>\n <div class=\"stat-card\">\n <h3>الصفقات النشطة</h3>\n <div class=\"stat-value\" id=\"active-trades\">12</div>\n </div>\n <div class=\"stat-card\">\n <h3>إجمالي الأرباح</h3>\n <div class=\"stat-value\" id=\"total-profit\">$1,234</div>\n </div>\n </section>\n\n <section id=\"chart\" class=\"chart-container\">\n <h2>التحليل الفني</h2>\n <canvas id=\"tradingChart\"></canvas>\n </section>\n\n <section id=\"trades\" class=\"trades-list\">\n <h2>آخر الصفقات</h2>\n <div class=\"trades-container\" id=\"recent-trades\">\n <!-- Trades will be populated by JavaScript -->\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>تواصل معنا</h4>\n <a href=\"https://t.me/cryptobot\">Telegram</a>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary: #2962ff;\n --secondary: #0039cb;\n --background: #f5f5f5;\n --text: #333;\n --card-bg: #ffffff;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n direction: rtl;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n background: var(--background);\n color: var(--text);\n line-height: 1.6;\n}\n\nheader {\n background: var(--card-bg);\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 1000;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: var(--primary);\n}\n\n.nav-links a {\n margin-right: 2rem;\n text-decoration: none;\n color: var(--text);\n transition: color 0.3s;\n}\n\n.nav-links a:hover {\n color: var(--primary);\n}\n\nmain {\n margin-top: 4rem;\n padding: 2rem;\n max-width: 1200px;\n margin: 6rem auto 2rem;\n}\n\n.hero {\n text-align: center;\n padding: 4rem 0;\n}\n\n.hero h1 {\n font-size: 2.5rem;\n margin-bottom: 1rem;\n color: var(--primary);\n}\n\n.stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin: 2rem 0;\n}\n\n.stat-card {\n background: var(--card-bg);\n padding: 1.5rem;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n transition: transform 0.3s;\n}\n\n.stat-card:hover {\n transform: translateY(-5px);\n}\n\n.stat-value {\n font-size: 2rem;\n font-weight: bold;\n color: var(--primary);\n margin-top: 1rem;\n}\n\n.chart-container {\n background: var(--card-bg);\n padding: 2rem;\n border-radius: 10px;\n margin: 2rem 0;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n}\n\n.trades-list {\n background: var(--card-bg);\n padding: 2rem;\n border-radius: 10px;\n margin: 2rem 0;\n}\n\nfooter {\n background: var(--card-bg);\n padding: 2rem;\n margin-top: 4rem;\n}\n\n@media (max-width: 768px) {\n nav {\n flex-direction: column;\n padding: 1rem;\n }\n \n .nav-links {\n margin-top: 1rem;\n }\n \n .nav-links a {\n margin: 0 1rem;\n font-size: 0.9rem;\n }\n \n .hero h1 {\n font-size: 2rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Initialize the trading chart\n const ctx = document.getElementById('tradingChart').getContext('2d');\n \n // Simulate real-time data updates\n setInterval(updateStats, 5000);\n setInterval(updateTrades, 3000);\n \n // Initialize with some data\n updateStats();\n updateTrades();\n});\n\nfunction updateStats() {\n // Simulate real-time stat updates\n document.getElementById('daily-profit').textContent = \n (Math.random() * 5).toFixed(2) + '%';\n \n document.getElementById('active-trades').textContent = \n Math.floor(Math.random() * 20);\n \n document.getElementById('total-profit').textContent = \n '$' + (Math.random() * 5000).toFixed(2);\n}\n\nfunction updateTrades() {\n const tradesContainer = document.getElementById('recent-trades');\n const trades = generateMockTrades(5);\n \n tradesContainer.innerHTML = trades.map(trade => `\n <div class=\"trade-item\">\n <span class=\"pair\">${trade.pair}</span>\n <span class=\"type ${trade.type}\">${trade.type}</span>\n <span class=\"amount\">${trade.amount}</span>\n <span class=\"profit ${trade.profit > 0 ? 'positive' : 'negative'}\">\n ${trade.profit > 0 ? '+' : ''}${trade.profit}%\n </span>\n </div>\n `).join('');\n}\n\nfunction generateMockTrades(count) {\n const pairs = ['BTC/USDT', 'ETH/USDT', 'BNB/USDT', 'SOL/USDT'];\n const trades = [];\n \n for(let i = 0; i < count; i++) {\n trades.push({\n pair: pairs[Math.floor(Math.random() * pairs.length)],\n type: Math.random() > 0.5 ? 'شراء' : 'بيع',\n amount: (Math.random() * 1000).toFixed(2) + ' USDT',\n profit: (Math.random() * 10 - 5).toFixed(2)\n });\n }\n \n return trades;\n}\n\n---end---\n\nThis creates a professional, RTL (Right-to-Left) interface for an Arabic cryptocurrency trading bot with these features:\n\n1. Clean, modern design with a professional color scheme\n2. Responsive layout that works on all devices\n3. Real-time statistics display\n4. Trading chart area (needs chart library integration for full functionality)\n5. Recent trades list with live updates\n6. RTL support for Arabic text\n7. Smooth animations and transitions\n8. Card-based layout for better information organization\n9. Interactive elements with hover effects\n10. Mobile-first approach\n\nThe interface simulates real-time data updates and provides a foundation for connecting to actual bot data. The design follows modern web standards and accessibility guidelines while maintaining a professional appearance suitable for financial applications." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 360, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2419 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..d51e91b --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# cryptobot.scroll.pub +Website generated by Claude from prompt: اريد واجهة رسومية لبوت تلقرام يعمل حاليا على تداول في العملات الرقمية يقوم البيت بالبيع والشراء وعرض الارباح والملخصات والتقارير ويعمل ايضا تحليل فني \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..528cb7f --- /dev/null +++ b/script.js @@ -0,0 +1,56 @@ +document.addEventListener('DOMContentLoaded', function() { + // Initialize the trading chart + const ctx = document.getElementById('tradingChart').getContext('2d'); + + // Simulate real-time data updates + setInterval(updateStats, 5000); + setInterval(updateTrades, 3000); + + // Initialize with some data + updateStats(); + updateTrades(); +}); + +function updateStats() { + // Simulate real-time stat updates + document.getElementById('daily-profit').textContent = + (Math.random() * 5).toFixed(2) + '%'; + + document.getElementById('active-trades').textContent = + Math.floor(Math.random() * 20); + + document.getElementById('total-profit').textContent = + '$' + (Math.random() * 5000).toFixed(2); +} + +function updateTrades() { + const tradesContainer = document.getElementById('recent-trades'); + const trades = generateMockTrades(5); + + tradesContainer.innerHTML = trades.map(trade => ` + <div class="trade-item"> + <span class="pair">${trade.pair}</span> + <span class="type ${trade.type}">${trade.type}</span> + <span class="amount">${trade.amount}</span> + <span class="profit ${trade.profit > 0 ? 'positive' : 'negative'}"> + ${trade.profit > 0 ? '+' : ''}${trade.profit}% + </span> + </div> + `).join(''); +} + +function generateMockTrades(count) { + const pairs = ['BTC/USDT', 'ETH/USDT', 'BNB/USDT', 'SOL/USDT']; + const trades = []; + + for(let i = 0; i < count; i++) { + trades.push({ + pair: pairs[Math.floor(Math.random() * pairs.length)], + type: Math.random() > 0.5 ? 'شراء' : 'بيع', + amount: (Math.random() * 1000).toFixed(2) + ' USDT', + profit: (Math.random() * 10 - 5).toFixed(2) + }); + } + + return trades; +} diff --git a/style.css b/style.css new file mode 100644 index 0000000..bde7eb3 --- /dev/null +++ b/style.css @@ -0,0 +1,141 @@ +:root { + --primary: #2962ff; + --secondary: #0039cb; + --background: #f5f5f5; + --text: #333; + --card-bg: #ffffff; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + direction: rtl; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; + background: var(--background); + color: var(--text); + line-height: 1.6; +} + +header { + background: var(--card-bg); + box-shadow: 0 2px 10px rgba(0,0,0,0.1); + position: fixed; + width: 100%; + top: 0; + z-index: 1000; +} + +nav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.logo { + font-size: 1.5rem; + font-weight: bold; + color: var(--primary); +} + +.nav-links a { + margin-right: 2rem; + text-decoration: none; + color: var(--text); + transition: color 0.3s; +} + +.nav-links a:hover { + color: var(--primary); +} + +main { + margin-top: 4rem; + padding: 2rem; + max-width: 1200px; + margin: 6rem auto 2rem; +} + +.hero { + text-align: center; + padding: 4rem 0; +} + +.hero h1 { + font-size: 2.5rem; + margin-bottom: 1rem; + color: var(--primary); +} + +.stats-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + margin: 2rem 0; +} + +.stat-card { + background: var(--card-bg); + padding: 1.5rem; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); + transition: transform 0.3s; +} + +.stat-card:hover { + transform: translateY(-5px); +} + +.stat-value { + font-size: 2rem; + font-weight: bold; + color: var(--primary); + margin-top: 1rem; +} + +.chart-container { + background: var(--card-bg); + padding: 2rem; + border-radius: 10px; + margin: 2rem 0; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); +} + +.trades-list { + background: var(--card-bg); + padding: 2rem; + border-radius: 10px; + margin: 2rem 0; +} + +footer { + background: var(--card-bg); + padding: 2rem; + margin-top: 4rem; +} + +@media (max-width: 768px) { + nav { + flex-direction: column; + padding: 1rem; + } + + .nav-links { + margin-top: 1rem; + } + + .nav-links a { + margin: 0 1rem; + font-size: 0.9rem; + } + + .hero h1 { + font-size: 2rem; + } +}