commit b5d49346ccab8555fc089643876956f0b378234b
Author: root <root@hub.scroll.pub>
Date: 2024-12-30 23:01:25 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..6028608
--- /dev/null
+++ b/body.html
@@ -0,0 +1,58 @@
+<header>
+ <h1>ForexFolio</h1>
+ <nav>
+ <ul>
+ <li><a href="#overview">Overview</a></li>
+ <li><a href="#trades">Trades</a></li>
+ <li><a href="#analytics">Analytics</a></li>
+ <li><a href="#settings">Settings</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section id="overview">
+ <h2>Overview</h2>
+ <div class="stats-grid">
+ <div class="stat-card">
+ <h3>Total Trades</h3>
+ <p class="stat-value">0</p>
+ </div>
+ <div class="stat-card">
+ <h3>Win Rate</h3>
+ <p class="stat-value">0%</p>
+ </div>
+ <div class="stat-card">
+ <h3>Profit</h3>
+ <p class="stat-value">$0.00</p>
+ </div>
+ </div>
+ </section>
+
+ <section id="trades">
+ <h2>Trades</h2>
+ <div class="trade-table">
+ <div class="trade-header">
+ <span>Date</span>
+ <span>Pair</span>
+ <span>Direction</span>
+ <span>Entry</span>
+ <span>Exit</span>
+ <span>P/L</span>
+ </div>
+ <div class="trade-entries"></div>
+ </div>
+ <button class="add-trade-btn">Add Trade</button>
+ </section>
+
+ <section id="analytics">
+ <h2>Analytics</h2>
+ <div class="chart-container">
+ <canvas id="performanceChart"></canvas>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <p>ForexFolio - Track your trades, improve your strategy</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..26999fb
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://forexfolio.scroll.pub
+metaTags
+editButton /edit.html
+title ForexFolio - Your Forex Trading Journal
+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..0bd1dff
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "7d9845bc-3b14-4a77-ab53-622ed51756a5",
+ "object": "chat.completion",
+ "created": 1735599661,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nforexfolio.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://forexfolio.scroll.pub\nmetaTags\neditButton /edit.html\ntitle ForexFolio - Your Forex Trading Journal\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>ForexFolio</h1>\n <nav>\n <ul>\n <li><a href=\"#overview\">Overview</a></li>\n <li><a href=\"#trades\">Trades</a></li>\n <li><a href=\"#analytics\">Analytics</a></li>\n <li><a href=\"#settings\">Settings</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"overview\">\n <h2>Overview</h2>\n <div class=\"stats-grid\">\n <div class=\"stat-card\">\n <h3>Total Trades</h3>\n <p class=\"stat-value\">0</p>\n </div>\n <div class=\"stat-card\">\n <h3>Win Rate</h3>\n <p class=\"stat-value\">0%</p>\n </div>\n <div class=\"stat-card\">\n <h3>Profit</h3>\n <p class=\"stat-value\">$0.00</p>\n </div>\n </div>\n </section>\n\n <section id=\"trades\">\n <h2>Trades</h2>\n <div class=\"trade-table\">\n <div class=\"trade-header\">\n <span>Date</span>\n <span>Pair</span>\n <span>Direction</span>\n <span>Entry</span>\n <span>Exit</span>\n <span>P/L</span>\n </div>\n <div class=\"trade-entries\"></div>\n </div>\n <button class=\"add-trade-btn\">Add Trade</button>\n </section>\n\n <section id=\"analytics\">\n <h2>Analytics</h2>\n <div class=\"chart-container\">\n <canvas id=\"performanceChart\"></canvas>\n </div>\n </section>\n</main>\n\n<footer>\n <p>ForexFolio - Track your trades, improve your strategy</p>\n</footer>\n---style.css---\n:root {\n --primary: #00c9a7;\n --secondary: #845ec2;\n --background: #1a1a1a;\n --surface: #2d2d2d;\n --text: #ffffff;\n --text-secondary: #b3b3b3;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n background-color: var(--background);\n color: var(--text);\n line-height: 1.6;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background: var(--surface);\n padding: 1.5rem;\n text-align: center;\n}\n\nh1 {\n color: var(--primary);\n font-size: 2.5rem;\n}\n\nnav ul {\n list-style: none;\n display: flex;\n justify-content: center;\n gap: 2rem;\n margin-top: 1rem;\n}\n\nnav a {\n color: var(--text-secondary);\n text-decoration: none;\n transition: color 0.3s;\n}\n\nnav a:hover {\n color: var(--primary);\n}\n\nmain {\n flex: 1;\n padding: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n width: 100%;\n}\n\n.stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1.5rem;\n margin-top: 1.5rem;\n}\n\n.stat-card {\n background: var(--surface);\n padding: 1.5rem;\n border-radius: 8px;\n text-align: center;\n}\n\n.stat-value {\n font-size: 2rem;\n color: var(--primary);\n margin-top: 0.5rem;\n}\n\n.trade-table {\n background: var(--surface);\n border-radius: 8px;\n overflow: hidden;\n margin-top: 1.5rem;\n}\n\n.trade-header {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n padding: 1rem;\n background: var(--background);\n font-weight: bold;\n}\n\n.trade-entries {\n padding: 1rem;\n}\n\n.add-trade-btn {\n background: var(--primary);\n color: var(--background);\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 4px;\n margin-top: 1rem;\n cursor: pointer;\n transition: opacity 0.3s;\n}\n\n.add-trade-btn:hover {\n opacity: 0.9;\n}\n\n.chart-container {\n background: var(--surface);\n padding: 1.5rem;\n border-radius: 8px;\n margin-top: 1.5rem;\n}\n\nfooter {\n background: var(--surface);\n padding: 1rem;\n text-align: center;\n margin-top: auto;\n}\n\n@media (max-width: 768px) {\n .stats-grid {\n grid-template-columns: 1fr;\n }\n\n .trade-header {\n grid-template-columns: repeat(3, 1fr);\n }\n}\n---script.js---\n// Initialize chart\nconst ctx = document.getElementById('performanceChart').getContext('2d');\nconst chart = new Chart(ctx, {\n type: 'line',\n data: {\n labels: [],\n datasets: [{\n label: 'Profit/Loss',\n data: [],\n borderColor: '#00c9a7',\n fill: false\n }]\n },\n options: {\n responsive: true,\n maintainAspectRatio: false,\n scales: {\n y: {\n beginAtZero: true,\n grid: {\n color: '#444'\n }\n },\n x: {\n grid: {\n color: '#444'\n }\n }\n },\n plugins: {\n legend: {\n labels: {\n color: '#fff'\n }\n }\n }\n }\n});\n\n// Add trade functionality\nconst addTradeBtn = document.querySelector('.add-trade-btn');\nconst tradeEntries = document.querySelector('.trade-entries');\n\naddTradeBtn.addEventListener('click', () => {\n const newTrade = document.createElement('div');\n newTrade.className = 'trade-entry';\n newTrade.innerHTML = `\n <span>${new Date().toLocaleDateString()}</span>\n <span>EUR/USD</span>\n <span>Buy</span>\n <span>1.1200</span>\n <span>1.1250</span>\n <span class=\"profit\">+$50.00</span>\n `;\n tradeEntries.appendChild(newTrade);\n \n // Update chart\n const labels = chart.data.labels;\n const data = chart.data.datasets[0].data;\n \n labels.push(new Date().toLocaleDateString());\n data.push(50);\n \n chart.update();\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 252,
+ "completion_tokens": 1598,
+ "total_tokens": 1850,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 252
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..8f72945
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# forexfolio1.scroll.pub
+Website generated by DeepSeek from prompt: build a nice forex trading journal with nice visuals with dark theme and similar to tradersync.com
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..c23afd1
--- /dev/null
+++ b/script.js
@@ -0,0 +1,65 @@
+// Initialize chart
+const ctx = document.getElementById('performanceChart').getContext('2d');
+const chart = new Chart(ctx, {
+ type: 'line',
+ data: {
+ labels: [],
+ datasets: [{
+ label: 'Profit/Loss',
+ data: [],
+ borderColor: '#00c9a7',
+ fill: false
+ }]
+ },
+ options: {
+ responsive: true,
+ maintainAspectRatio: false,
+ scales: {
+ y: {
+ beginAtZero: true,
+ grid: {
+ color: '#444'
+ }
+ },
+ x: {
+ grid: {
+ color: '#444'
+ }
+ }
+ },
+ plugins: {
+ legend: {
+ labels: {
+ color: '#fff'
+ }
+ }
+ }
+ }
+});
+
+// Add trade functionality
+const addTradeBtn = document.querySelector('.add-trade-btn');
+const tradeEntries = document.querySelector('.trade-entries');
+
+addTradeBtn.addEventListener('click', () => {
+ const newTrade = document.createElement('div');
+ newTrade.className = 'trade-entry';
+ newTrade.innerHTML = `
+ <span>${new Date().toLocaleDateString()}</span>
+ <span>EUR/USD</span>
+ <span>Buy</span>
+ <span>1.1200</span>
+ <span>1.1250</span>
+ <span class="profit">+$50.00</span>
+ `;
+ tradeEntries.appendChild(newTrade);
+
+ // Update chart
+ const labels = chart.data.labels;
+ const data = chart.data.datasets[0].data;
+
+ labels.push(new Date().toLocaleDateString());
+ data.push(50);
+
+ chart.update();
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..a4b034a
--- /dev/null
+++ b/style.css
@@ -0,0 +1,139 @@
+:root {
+ --primary: #00c9a7;
+ --secondary: #845ec2;
+ --background: #1a1a1a;
+ --surface: #2d2d2d;
+ --text: #ffffff;
+ --text-secondary: #b3b3b3;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', sans-serif;
+ background-color: var(--background);
+ color: var(--text);
+ line-height: 1.6;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+}
+
+header {
+ background: var(--surface);
+ padding: 1.5rem;
+ text-align: center;
+}
+
+h1 {
+ color: var(--primary);
+ font-size: 2.5rem;
+}
+
+nav ul {
+ list-style: none;
+ display: flex;
+ justify-content: center;
+ gap: 2rem;
+ margin-top: 1rem;
+}
+
+nav a {
+ color: var(--text-secondary);
+ text-decoration: none;
+ transition: color 0.3s;
+}
+
+nav a:hover {
+ color: var(--primary);
+}
+
+main {
+ flex: 1;
+ padding: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+ width: 100%;
+}
+
+.stats-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 1.5rem;
+ margin-top: 1.5rem;
+}
+
+.stat-card {
+ background: var(--surface);
+ padding: 1.5rem;
+ border-radius: 8px;
+ text-align: center;
+}
+
+.stat-value {
+ font-size: 2rem;
+ color: var(--primary);
+ margin-top: 0.5rem;
+}
+
+.trade-table {
+ background: var(--surface);
+ border-radius: 8px;
+ overflow: hidden;
+ margin-top: 1.5rem;
+}
+
+.trade-header {
+ display: grid;
+ grid-template-columns: repeat(6, 1fr);
+ padding: 1rem;
+ background: var(--background);
+ font-weight: bold;
+}
+
+.trade-entries {
+ padding: 1rem;
+}
+
+.add-trade-btn {
+ background: var(--primary);
+ color: var(--background);
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: 4px;
+ margin-top: 1rem;
+ cursor: pointer;
+ transition: opacity 0.3s;
+}
+
+.add-trade-btn:hover {
+ opacity: 0.9;
+}
+
+.chart-container {
+ background: var(--surface);
+ padding: 1.5rem;
+ border-radius: 8px;
+ margin-top: 1.5rem;
+}
+
+footer {
+ background: var(--surface);
+ padding: 1rem;
+ text-align: center;
+ margin-top: auto;
+}
+
+@media (max-width: 768px) {
+ .stats-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .trade-header {
+ grid-template-columns: repeat(3, 1fr);
+ }
+}
\ No newline at end of file