commit c5655b4cc43cc502b07c50892469ea7471dba4f6
Author: root <root@hub.scroll.pub> Date: 2024-12-30 12:55:02 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..d61f001 --- /dev/null +++ b/body.html @@ -0,0 +1,42 @@ +<header> + <nav> + <h1>محفظة التداول</h1> + </nav> +</header> + +<main> + <section class="wallet-summary"> + <div class="balance-card"> + <h2>الرصيد الحالي</h2> + <p class="balance" id="balance">٥٠,٠٠٠ ريال</p> + <div class="growth-rate"> + <span>معدل النمو:</span> + <span class="positive" id="growth-rate">+١٥٪</span> + </div> + </div> + </section> + + <section class="trades"> + <h2>التداولات الأخيرة</h2> + <div class="trades-list" id="trades-container"> + <div class="trade-item"> + <div class="trade-details"> + <span class="trade-type buy">شراء</span> + <span class="trade-name">سهم الراجحي</span> + </div> + <div class="trade-amount positive">+٢,٥٠٠ ريال</div> + </div> + <div class="trade-item"> + <div class="trade-details"> + <span class="trade-type sell">بيع</span> + <span class="trade-name">سهم سابك</span> + </div> + <div class="trade-amount negative">-١,٨٠٠ ريال</div> + </div> + </div> + </section> +</main> + +<footer> + <p>محفظة التداول الرقمية</p> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..6de0c77 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://tradewallet.scroll.pub +metaTags +editButton /edit.html +title محفظة التداول الرقمية +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..7f2a579 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01FVA5tMw1RPNF9NVA71foZ6", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a digital trading wallet interface in Arabic. For the domain, I suggest:\n\n---domain---\ntradewallet.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://tradewallet.scroll.pub\nmetaTags\neditButton /edit.html\ntitle محفظة التداول الرقمية\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <h1>محفظة التداول</h1>\n </nav>\n</header>\n\n<main>\n <section class=\"wallet-summary\">\n <div class=\"balance-card\">\n <h2>الرصيد الحالي</h2>\n <p class=\"balance\" id=\"balance\">٥٠,٠٠٠ ريال</p>\n <div class=\"growth-rate\">\n <span>معدل النمو:</span>\n <span class=\"positive\" id=\"growth-rate\">+١٥٪</span>\n </div>\n </div>\n </section>\n\n <section class=\"trades\">\n <h2>التداولات الأخيرة</h2>\n <div class=\"trades-list\" id=\"trades-container\">\n <div class=\"trade-item\">\n <div class=\"trade-details\">\n <span class=\"trade-type buy\">شراء</span>\n <span class=\"trade-name\">سهم الراجحي</span>\n </div>\n <div class=\"trade-amount positive\">+٢,٥٠٠ ريال</div>\n </div>\n <div class=\"trade-item\">\n <div class=\"trade-details\">\n <span class=\"trade-type sell\">بيع</span>\n <span class=\"trade-name\">سهم سابك</span>\n </div>\n <div class=\"trade-amount negative\">-١,٨٠٠ ريال</div>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <p>محفظة التداول الرقمية</p>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --accent-color: #3498db;\n --success-color: #2ecc71;\n --danger-color: #e74c3c;\n --background-color: #f9f9f9;\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', sans-serif;\n background-color: var(--background-color);\n color: var(--primary-color);\n line-height: 1.6;\n}\n\nheader {\n background: linear-gradient(135deg, var(--primary-color), var(--accent-color));\n color: white;\n padding: 1.5rem;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n}\n\nh1 {\n font-size: 1.8rem;\n text-align: center;\n}\n\nmain {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.wallet-summary {\n margin-bottom: 2rem;\n}\n\n.balance-card {\n background: white;\n border-radius: 15px;\n padding: 2rem;\n box-shadow: 0 4px 20px rgba(0,0,0,0.08);\n text-align: center;\n}\n\n.balance {\n font-size: 3rem;\n font-weight: bold;\n color: var(--primary-color);\n margin: 1rem 0;\n}\n\n.growth-rate {\n font-size: 1.2rem;\n}\n\n.positive {\n color: var(--success-color);\n}\n\n.negative {\n color: var(--danger-color);\n}\n\n.trades {\n background: white;\n border-radius: 15px;\n padding: 2rem;\n box-shadow: 0 4px 20px rgba(0,0,0,0.08);\n}\n\n.trade-item {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem;\n border-bottom: 1px solid #eee;\n}\n\n.trade-item:last-child {\n border-bottom: none;\n}\n\n.trade-type {\n padding: 0.3rem 0.8rem;\n border-radius: 20px;\n font-size: 0.9rem;\n margin-left: 1rem;\n}\n\n.buy {\n background: rgba(46, 204, 113, 0.1);\n color: var(--success-color);\n}\n\n.sell {\n background: rgba(231, 76, 60, 0.1);\n color: var(--danger-color);\n}\n\nfooter {\n text-align: center;\n padding: 2rem;\n background: var(--primary-color);\n color: white;\n}\n\n@media (max-width: 768px) {\n .balance {\n font-size: 2rem;\n }\n \n .trade-item {\n flex-direction: column;\n text-align: center;\n }\n \n .trade-amount {\n margin-top: 0.5rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Animate balance number on load\n const balanceElement = document.getElementById('balance');\n const targetBalance = 50000;\n let currentBalance = 0;\n \n const balanceAnimation = setInterval(() => {\n currentBalance += 1000;\n balanceElement.textContent = currentBalance.toLocaleString('ar-SA') + ' ريال';\n \n if (currentBalance >= targetBalance) {\n clearInterval(balanceAnimation);\n }\n }, 50);\n\n // Add hover effect to trade items\n const tradeItems = document.querySelectorAll('.trade-item');\n tradeItems.forEach(item => {\n item.addEventListener('mouseenter', () => {\n item.style.transform = 'translateX(-5px)';\n item.style.transition = 'transform 0.3s ease';\n });\n \n item.addEventListener('mouseleave', () => {\n item.style.transform = 'translateX(0)';\n });\n });\n});\n\n---end---\n\nThis creates a beautiful, responsive digital trading wallet interface in Arabic with:\n1. A prominent balance display with animation\n2. Growth rate indicator\n3. Recent trades list with visual indicators for buy/sell\n4. Smooth animations and transitions\n5. Mobile-responsive design\n6. Clean, semantic HTML\n7. Modern CSS with variables and gradients\n8. Interactive JavaScript elements\n\nThe design uses a professional color scheme and follows accessibility guidelines. The layout is right-to-left (RTL) for Arabic content, and all numbers are displayed in Arabic numerals." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 328, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 1822 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..d890f6a --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# tradewallet.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..5d378fe --- /dev/null +++ b/script.js @@ -0,0 +1,28 @@ +document.addEventListener('DOMContentLoaded', function() { + // Animate balance number on load + const balanceElement = document.getElementById('balance'); + const targetBalance = 50000; + let currentBalance = 0; + + const balanceAnimation = setInterval(() => { + currentBalance += 1000; + balanceElement.textContent = currentBalance.toLocaleString('ar-SA') + ' ريال'; + + if (currentBalance >= targetBalance) { + clearInterval(balanceAnimation); + } + }, 50); + + // Add hover effect to trade items + const tradeItems = document.querySelectorAll('.trade-item'); + tradeItems.forEach(item => { + item.addEventListener('mouseenter', () => { + item.style.transform = 'translateX(-5px)'; + item.style.transition = 'transform 0.3s ease'; + }); + + item.addEventListener('mouseleave', () => { + item.style.transform = 'translateX(0)'; + }); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..af0cb40 --- /dev/null +++ b/style.css @@ -0,0 +1,128 @@ +:root { + --primary-color: #2c3e50; + --accent-color: #3498db; + --success-color: #2ecc71; + --danger-color: #e74c3c; + --background-color: #f9f9f9; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + direction: rtl; +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + background-color: var(--background-color); + color: var(--primary-color); + line-height: 1.6; +} + +header { + background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); + color: white; + padding: 1.5rem; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); +} + +h1 { + font-size: 1.8rem; + text-align: center; +} + +main { + max-width: 1200px; + margin: 2rem auto; + padding: 0 1rem; +} + +.wallet-summary { + margin-bottom: 2rem; +} + +.balance-card { + background: white; + border-radius: 15px; + padding: 2rem; + box-shadow: 0 4px 20px rgba(0,0,0,0.08); + text-align: center; +} + +.balance { + font-size: 3rem; + font-weight: bold; + color: var(--primary-color); + margin: 1rem 0; +} + +.growth-rate { + font-size: 1.2rem; +} + +.positive { + color: var(--success-color); +} + +.negative { + color: var(--danger-color); +} + +.trades { + background: white; + border-radius: 15px; + padding: 2rem; + box-shadow: 0 4px 20px rgba(0,0,0,0.08); +} + +.trade-item { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem; + border-bottom: 1px solid #eee; +} + +.trade-item:last-child { + border-bottom: none; +} + +.trade-type { + padding: 0.3rem 0.8rem; + border-radius: 20px; + font-size: 0.9rem; + margin-left: 1rem; +} + +.buy { + background: rgba(46, 204, 113, 0.1); + color: var(--success-color); +} + +.sell { + background: rgba(231, 76, 60, 0.1); + color: var(--danger-color); +} + +footer { + text-align: center; + padding: 2rem; + background: var(--primary-color); + color: white; +} + +@media (max-width: 768px) { + .balance { + font-size: 2rem; + } + + .trade-item { + flex-direction: column; + text-align: center; + } + + .trade-amount { + margin-top: 0.5rem; + } +}