commit 46c202e0dcf2a852731cbf518806f8fe4df54dea
Author: root <root@hub.scroll.pub> Date: 2024-12-30 12:36:04 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..953ab5f --- /dev/null +++ b/body.html @@ -0,0 +1,40 @@ +<header> + <h1>محفظة التداول</h1> + <nav> + <ul> + <li><a href="#dashboard">لوحة التحكم</a></li> + <li><a href="#trades">الصفقات</a></li> + <li><a href="#history">السجل</a></li> + </ul> + </nav> +</header> + +<main> + <section id="dashboard" class="card"> + <h2>الرصيد والنمو</h2> + <div class="balance-container"> + <div class="balance"> + <span class="label">الرصيد الحالي</span> + <span class="amount" id="currentBalance">0.00</span> + </div> + <div class="growth"> + <span class="label">معدل النمو</span> + <span class="rate" id="growthRate">0%</span> + </div> + </div> + </section> + + <section id="trades" class="card"> + <h2>الصفقات الحالية</h2> + <div class="trades-grid" id="currentTrades"></div> + </section> + + <section id="history" class="card"> + <h2>السجل السابق</h2> + <div class="history-list" id="tradeHistory"></div> + </section> +</main> + +<footer> + <p>محفظة التداول - منصة تداول آمنة وموثوقة</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..a0c24cf --- /dev/null +++ b/index.scroll @@ -0,0 +1,10 @@ +buildHtml +baseUrl https://trade-wallet.scroll.pub +metaTags + description "Digital trading wallet dashboard showing balance, trades, and growth metrics" + keywords "trading wallet, financial dashboard, trade tracking, portfolio growth" +editButton /edit.html +title Trading Wallet Dashboard +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..e15aaf4 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01QE2c6rbyq5VB2HyCTujiDn", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a trading wallet interface website with balance, current/past trades, and growth rate display.\n\nSuggested domain: trade-wallet.scroll.pub\n\n---domain---\ntrade-wallet.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://trade-wallet.scroll.pub\nmetaTags\n description \"Digital trading wallet dashboard showing balance, trades, and growth metrics\"\n keywords \"trading wallet, financial dashboard, trade tracking, portfolio growth\"\neditButton /edit.html\ntitle Trading Wallet Dashboard\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>محفظة التداول</h1>\n <nav>\n <ul>\n <li><a href=\"#dashboard\">لوحة التحكم</a></li>\n <li><a href=\"#trades\">الصفقات</a></li>\n <li><a href=\"#history\">السجل</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"dashboard\" class=\"card\">\n <h2>الرصيد والنمو</h2>\n <div class=\"balance-container\">\n <div class=\"balance\">\n <span class=\"label\">الرصيد الحالي</span>\n <span class=\"amount\" id=\"currentBalance\">0.00</span>\n </div>\n <div class=\"growth\">\n <span class=\"label\">معدل النمو</span>\n <span class=\"rate\" id=\"growthRate\">0%</span>\n </div>\n </div>\n </section>\n\n <section id=\"trades\" class=\"card\">\n <h2>الصفقات الحالية</h2>\n <div class=\"trades-grid\" id=\"currentTrades\"></div>\n </section>\n\n <section id=\"history\" class=\"card\">\n <h2>السجل السابق</h2>\n <div class=\"history-list\" id=\"tradeHistory\"></div>\n </section>\n</main>\n\n<footer>\n <p>محفظة التداول - منصة تداول آمنة وموثوقة</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --accent-color: #3498db;\n --bg-color: #f5f6fa;\n --card-bg: #ffffff;\n --text-color: #2c3e50;\n --success-color: #2ecc71;\n --danger-color: #e74c3c;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n direction: rtl;\n}\n\nbody {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n background-color: var(--bg-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 1rem 2rem;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n}\n\nnav ul {\n display: flex;\n gap: 2rem;\n list-style: none;\n}\n\nnav a {\n color: white;\n text-decoration: none;\n transition: color 0.3s ease;\n}\n\nnav a:hover {\n color: var(--accent-color);\n}\n\nmain {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.card {\n background: var(--card-bg);\n border-radius: 10px;\n padding: 2rem;\n margin-bottom: 2rem;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n transition: transform 0.3s ease;\n}\n\n.card:hover {\n transform: translateY(-5px);\n}\n\n.balance-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 1rem;\n}\n\n.balance, .growth {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 1.5rem;\n border-radius: 8px;\n background: linear-gradient(135deg, var(--primary-color), var(--accent-color));\n color: white;\n}\n\n.label {\n font-size: 0.9rem;\n opacity: 0.9;\n}\n\n.amount, .rate {\n font-size: 2rem;\n font-weight: bold;\n margin-top: 0.5rem;\n}\n\n.trades-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n gap: 1.5rem;\n margin-top: 1rem;\n}\n\n.history-list {\n margin-top: 1rem;\n}\n\n@media (max-width: 768px) {\n nav ul {\n flex-direction: column;\n gap: 1rem;\n }\n \n .balance-container {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Sample data - replace with real data from backend\n const wallet = {\n balance: 50000.00,\n growthRate: 12.5,\n currentTrades: [\n { id: 1, asset: \"AAPL\", amount: 1000, profit: 50 },\n { id: 2, asset: \"GOOGL\", amount: 2000, profit: -30 },\n { id: 3, asset: \"MSFT\", amount: 1500, profit: 75 }\n ],\n tradeHistory: [\n { id: 1, asset: \"TSLA\", amount: 3000, profit: 150, date: \"2023-01-01\" },\n { id: 2, asset: \"AMZN\", amount: 2500, profit: -80, date: \"2023-01-02\" }\n ]\n };\n\n // Update dashboard\n document.getElementById('currentBalance').textContent = \n new Intl.NumberFormat('ar-SA', { style: 'currency', currency: 'SAR' })\n .format(wallet.balance);\n \n document.getElementById('growthRate').textContent = \n `${wallet.growthRate}%`;\n\n // Render current trades\n const tradesContainer = document.getElementById('currentTrades');\n wallet.currentTrades.forEach(trade => {\n const tradeEl = document.createElement('div');\n tradeEl.className = `trade-card ${trade.profit >= 0 ? 'profit' : 'loss'}`;\n tradeEl.innerHTML = `\n <h3>${trade.asset}</h3>\n <p>المبلغ: ${trade.amount}</p>\n <p>الربح: ${trade.profit}%</p>\n `;\n tradesContainer.appendChild(tradeEl);\n });\n\n // Render trade history\n const historyContainer = document.getElementById('tradeHistory');\n wallet.tradeHistory.forEach(trade => {\n const historyEl = document.createElement('div');\n historyEl.className = 'history-item';\n historyEl.innerHTML = `\n <h4>${trade.asset}</h4>\n <p>المبلغ: ${trade.amount}</p>\n <p>الربح: ${trade.profit}%</p>\n <p>التاريخ: ${trade.date}</p>\n `;\n historyContainer.appendChild(historyEl);\n });\n});\n---end---\n\nThis creates a modern, responsive trading wallet interface with:\n- RTL layout for Arabic content\n- Clean, card-based design\n- Balance and growth rate display\n- Current trades section with profit/loss indicators\n- Trade history section\n- Smooth animations and hover effects\n- Mobile-responsive layout\n- Gradient backgrounds and modern shadows\n- Clear typography and spacing\n\nThe JavaScript includes sample data that can be replaced with real backend data. The interface updates dynamically and formats numbers appropriately for Arabic locale." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 344, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2131 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..ca2afcb --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# trade-wallet.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..315b21e --- /dev/null +++ b/script.js @@ -0,0 +1,51 @@ +document.addEventListener('DOMContentLoaded', () => { + // Sample data - replace with real data from backend + const wallet = { + balance: 50000.00, + growthRate: 12.5, + currentTrades: [ + { id: 1, asset: "AAPL", amount: 1000, profit: 50 }, + { id: 2, asset: "GOOGL", amount: 2000, profit: -30 }, + { id: 3, asset: "MSFT", amount: 1500, profit: 75 } + ], + tradeHistory: [ + { id: 1, asset: "TSLA", amount: 3000, profit: 150, date: "2023-01-01" }, + { id: 2, asset: "AMZN", amount: 2500, profit: -80, date: "2023-01-02" } + ] + }; + + // Update dashboard + document.getElementById('currentBalance').textContent = + new Intl.NumberFormat('ar-SA', { style: 'currency', currency: 'SAR' }) + .format(wallet.balance); + + document.getElementById('growthRate').textContent = + `${wallet.growthRate}%`; + + // Render current trades + const tradesContainer = document.getElementById('currentTrades'); + wallet.currentTrades.forEach(trade => { + const tradeEl = document.createElement('div'); + tradeEl.className = `trade-card ${trade.profit >= 0 ? 'profit' : 'loss'}`; + tradeEl.innerHTML = ` + <h3>${trade.asset}</h3> + <p>المبلغ: ${trade.amount}</p> + <p>الربح: ${trade.profit}%</p> + `; + tradesContainer.appendChild(tradeEl); + }); + + // Render trade history + const historyContainer = document.getElementById('tradeHistory'); + wallet.tradeHistory.forEach(trade => { + const historyEl = document.createElement('div'); + historyEl.className = 'history-item'; + historyEl.innerHTML = ` + <h4>${trade.asset}</h4> + <p>المبلغ: ${trade.amount}</p> + <p>الربح: ${trade.profit}%</p> + <p>التاريخ: ${trade.date}</p> + `; + historyContainer.appendChild(historyEl); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..ffaafdb --- /dev/null +++ b/style.css @@ -0,0 +1,115 @@ +:root { + --primary-color: #2c3e50; + --accent-color: #3498db; + --bg-color: #f5f6fa; + --card-bg: #ffffff; + --text-color: #2c3e50; + --success-color: #2ecc71; + --danger-color: #e74c3c; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + direction: rtl; +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + background-color: var(--bg-color); + color: var(--text-color); + line-height: 1.6; +} + +header { + background: var(--primary-color); + color: white; + padding: 1rem 2rem; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); +} + +nav ul { + display: flex; + gap: 2rem; + list-style: none; +} + +nav a { + color: white; + text-decoration: none; + transition: color 0.3s ease; +} + +nav a:hover { + color: var(--accent-color); +} + +main { + max-width: 1200px; + margin: 2rem auto; + padding: 0 1rem; +} + +.card { + background: var(--card-bg); + border-radius: 10px; + padding: 2rem; + margin-bottom: 2rem; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); + transition: transform 0.3s ease; +} + +.card:hover { + transform: translateY(-5px); +} + +.balance-container { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + margin-top: 1rem; +} + +.balance, .growth { + display: flex; + flex-direction: column; + align-items: center; + padding: 1.5rem; + border-radius: 8px; + background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); + color: white; +} + +.label { + font-size: 0.9rem; + opacity: 0.9; +} + +.amount, .rate { + font-size: 2rem; + font-weight: bold; + margin-top: 0.5rem; +} + +.trades-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + gap: 1.5rem; + margin-top: 1rem; +} + +.history-list { + margin-top: 1rem; +} + +@media (max-width: 768px) { + nav ul { + flex-direction: column; + gap: 1rem; + } + + .balance-container { + grid-template-columns: 1fr; + } +} \ No newline at end of file