commit 499151224a3aff15cb3b4f397211cb1f838e8c1e
Author: root <root@hub.scroll.pub> Date: 2024-12-27 21:28:33 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..2a8b914 --- /dev/null +++ b/body.html @@ -0,0 +1,73 @@ +<header> + <h1>DRIPfolio</h1> + <p>Track Your Dividend Reinvestment Plan Portfolio</p> +</header> + +<main> + <section class="portfolio-summary"> + <h2>Portfolio Overview</h2> + <div class="stats-grid"> + <div class="stat-card"> + <h3>Total Value</h3> + <p class="stat-value">$25,000</p> + </div> + <div class="stat-card"> + <h3>Annual Dividends</h3> + <p class="stat-value">$1,200</p> + </div> + <div class="stat-card"> + <h3>DRIP Shares</h3> + <p class="stat-value">142</p> + </div> + </div> + </section> + + <section class="drip-shares"> + <h2>DRIP Share Accumulation</h2> + <div class="shares-chart"> + <div class="chart-bar" style="height: 70%"></div> + <div class="chart-labels"> + <span>0</span> + <span>142</span> + </div> + </div> + </section> + + <section class="holdings"> + <h2>Your Holdings</h2> + <table> + <thead> + <tr> + <th>Stock</th> + <th>Shares</th> + <th>DRIP Shares</th> + <th>Dividend Yield</th> + </tr> + </thead> + <tbody> + <tr> + <td>XYZ Corp</td> + <td>50</td> + <td>12</td> + <td>3.5%</td> + </tr> + <tr> + <td>ABC Inc</td> + <td>100</td> + <td>30</td> + <td>4.2%</td> + </tr> + <tr> + <td>DEF Ltd</td> + <td>75</td> + <td>20</td> + <td>2.8%</td> + </tr> + </tbody> + </table> + </section> +</main> + +<footer> + <p>Track your dividend growth with DRIPfolio</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..53d7864 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://dripfolio.scroll.pub +metaTags +editButton /edit.html +title DRIPfolio - Track Your Dividend DRIP Portfolio +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..45a9a11 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "833ac23a-634e-4c8a-9cdc-2c5de0e4afa4", + "object": "chat.completion", + "created": 1735334895, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\ndripfolio.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://dripfolio.scroll.pub\nmetaTags\neditButton /edit.html\ntitle DRIPfolio - Track Your Dividend DRIP Portfolio\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>DRIPfolio</h1>\n <p>Track Your Dividend Reinvestment Plan Portfolio</p>\n</header>\n\n<main>\n <section class=\"portfolio-summary\">\n <h2>Portfolio Overview</h2>\n <div class=\"stats-grid\">\n <div class=\"stat-card\">\n <h3>Total Value</h3>\n <p class=\"stat-value\">$25,000</p>\n </div>\n <div class=\"stat-card\">\n <h3>Annual Dividends</h3>\n <p class=\"stat-value\">$1,200</p>\n </div>\n <div class=\"stat-card\">\n <h3>DRIP Shares</h3>\n <p class=\"stat-value\">142</p>\n </div>\n </div>\n </section>\n\n <section class=\"drip-shares\">\n <h2>DRIP Share Accumulation</h2>\n <div class=\"shares-chart\">\n <div class=\"chart-bar\" style=\"height: 70%\"></div>\n <div class=\"chart-labels\">\n <span>0</span>\n <span>142</span>\n </div>\n </div>\n </section>\n\n <section class=\"holdings\">\n <h2>Your Holdings</h2>\n <table>\n <thead>\n <tr>\n <th>Stock</th>\n <th>Shares</th>\n <th>DRIP Shares</th>\n <th>Dividend Yield</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>XYZ Corp</td>\n <td>50</td>\n <td>12</td>\n <td>3.5%</td>\n </tr>\n <tr>\n <td>ABC Inc</td>\n <td>100</td>\n <td>30</td>\n <td>4.2%</td>\n </tr>\n <tr>\n <td>DEF Ltd</td>\n <td>75</td>\n <td>20</td>\n <td>2.8%</td>\n </tr>\n </tbody>\n </table>\n </section>\n</main>\n\n<footer>\n <p>Track your dividend growth with DRIPfolio</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --accent-color: #e67e22;\n --background-color: #f5f6fa;\n --text-color: #2c3e50;\n --white: #ffffff;\n --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n margin: 0;\n padding: 0;\n}\n\nheader {\n background: var(--primary-color);\n color: var(--white);\n padding: 2rem;\n text-align: center;\n}\n\nh1 {\n font-size: 2.5rem;\n margin: 0;\n}\n\nh2 {\n color: var(--primary-color);\n margin-bottom: 1.5rem;\n}\n\nmain {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1.5rem;\n margin-bottom: 3rem;\n}\n\n.stat-card {\n background: var(--white);\n padding: 1.5rem;\n border-radius: 8px;\n box-shadow: var(--shadow);\n text-align: center;\n}\n\n.stat-value {\n font-size: 2rem;\n color: var(--secondary-color);\n margin: 0.5rem 0;\n}\n\n.shares-chart {\n background: var(--white);\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--shadow);\n margin-bottom: 3rem;\n}\n\n.chart-bar {\n background: var(--accent-color);\n width: 100%;\n border-radius: 4px;\n transition: height 0.3s ease;\n}\n\n.chart-labels {\n display: flex;\n justify-content: space-between;\n margin-top: 0.5rem;\n color: var(--text-color);\n}\n\ntable {\n width: 100%;\n border-collapse: collapse;\n background: var(--white);\n box-shadow: var(--shadow);\n border-radius: 8px;\n overflow: hidden;\n}\n\nth, td {\n padding: 1rem;\n text-align: left;\n}\n\nth {\n background: var(--primary-color);\n color: var(--white);\n}\n\ntr:nth-child(even) {\n background: var(--background-color);\n}\n\nfooter {\n text-align: center;\n padding: 1.5rem;\n background: var(--primary-color);\n color: var(--white);\n margin-top: 3rem;\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2rem;\n }\n \n .stats-grid {\n grid-template-columns: 1fr;\n }\n \n table {\n display: block;\n overflow-x: auto;\n }\n}\n---script.js---\n// Initialize chart animation\ndocument.addEventListener('DOMContentLoaded', () => {\n const chartBar = document.querySelector('.chart-bar');\n chartBar.style.height = '0';\n setTimeout(() => {\n chartBar.style.height = '70%';\n }, 300);\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 268, + "completion_tokens": 1347, + "total_tokens": 1615, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 268 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..554b733 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# dripfolio.scroll.pub +Website generated by DeepSeek from prompt: create me a dividend DRIP portfolio tracking website. it should show statistics about an investing portfolio with a place highlighting how many "DRIP shares" of stock you have accumulated \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..1a064aa --- /dev/null +++ b/script.js @@ -0,0 +1,8 @@ +// Initialize chart animation +document.addEventListener('DOMContentLoaded', () => { + const chartBar = document.querySelector('.chart-bar'); + chartBar.style.height = '0'; + setTimeout(() => { + chartBar.style.height = '70%'; + }, 300); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..bc97f6e --- /dev/null +++ b/style.css @@ -0,0 +1,130 @@ +:root { + --primary-color: #2c3e50; + --secondary-color: #3498db; + --accent-color: #e67e22; + --background-color: #f5f6fa; + --text-color: #2c3e50; + --white: #ffffff; + --shadow: 0 2px 10px rgba(0, 0, 0, 0.1); +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + color: var(--text-color); + background-color: var(--background-color); + margin: 0; + padding: 0; +} + +header { + background: var(--primary-color); + color: var(--white); + padding: 2rem; + text-align: center; +} + +h1 { + font-size: 2.5rem; + margin: 0; +} + +h2 { + color: var(--primary-color); + margin-bottom: 1.5rem; +} + +main { + max-width: 1200px; + margin: 2rem auto; + padding: 0 1rem; +} + +.stats-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 1.5rem; + margin-bottom: 3rem; +} + +.stat-card { + background: var(--white); + padding: 1.5rem; + border-radius: 8px; + box-shadow: var(--shadow); + text-align: center; +} + +.stat-value { + font-size: 2rem; + color: var(--secondary-color); + margin: 0.5rem 0; +} + +.shares-chart { + background: var(--white); + padding: 2rem; + border-radius: 8px; + box-shadow: var(--shadow); + margin-bottom: 3rem; +} + +.chart-bar { + background: var(--accent-color); + width: 100%; + border-radius: 4px; + transition: height 0.3s ease; +} + +.chart-labels { + display: flex; + justify-content: space-between; + margin-top: 0.5rem; + color: var(--text-color); +} + +table { + width: 100%; + border-collapse: collapse; + background: var(--white); + box-shadow: var(--shadow); + border-radius: 8px; + overflow: hidden; +} + +th, td { + padding: 1rem; + text-align: left; +} + +th { + background: var(--primary-color); + color: var(--white); +} + +tr:nth-child(even) { + background: var(--background-color); +} + +footer { + text-align: center; + padding: 1.5rem; + background: var(--primary-color); + color: var(--white); + margin-top: 3rem; +} + +@media (max-width: 768px) { + h1 { + font-size: 2rem; + } + + .stats-grid { + grid-template-columns: 1fr; + } + + table { + display: block; + overflow-x: auto; + } +} \ No newline at end of file