commit dfa6afa7c291447927878e52e56d47189442bfe3
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 13:05:38 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..f177b02
--- /dev/null
+++ b/body.html
@@ -0,0 +1,47 @@
+<header class="header">
+ <div class="header-content">
+ <h1>Solana Analytics</h1>
+ <div class="chain-data">
+ <div class="data-item">
+ <span class="label">Price</span>
+ <span class="value">$24.56</span>
+ </div>
+ <div class="data-item">
+ <span class="label">Circulating Supply</span>
+ <span class="value">420M</span>
+ </div>
+ <div class="data-item">
+ <span class="label">Market Cap</span>
+ <span class="value">$10.3B</span>
+ </div>
+ </div>
+ <button class="connect-wallet">Connect Wallet</button>
+ </div>
+</header>
+
+<main class="main-content">
+ <section class="chart-section">
+ <h2>Transaction Volume Trend</h2>
+ <div class="chart-container">
+ <canvas id="transactionChart"></canvas>
+ </div>
+ </section>
+
+ <section class="chart-section">
+ <h2>Token Holder Growth</h2>
+ <div class="chart-container">
+ <canvas id="holderChart"></canvas>
+ </div>
+ </section>
+
+ <section class="chart-section">
+ <h2>Network Activity</h2>
+ <div class="chart-container">
+ <canvas id="activityChart"></canvas>
+ </div>
+ </section>
+</main>
+
+<footer class="footer">
+ <p>Solana Analytics - Real-time On-chain Data Insights</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..1c78ba0
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://solanalytics.scroll.pub
+metaTags
+editButton /edit.html
+title Solana Analytics - Real-time On-chain Data
+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..52fd23e
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "36b1e6c6-b027-4956-826b-1f92f4c4d604",
+ "object": "chat.completion",
+ "created": 1735391117,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nsolanalytics.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://solanalytics.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Solana Analytics - Real-time On-chain Data\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header class=\"header\">\n <div class=\"header-content\">\n <h1>Solana Analytics</h1>\n <div class=\"chain-data\">\n <div class=\"data-item\">\n <span class=\"label\">Price</span>\n <span class=\"value\">$24.56</span>\n </div>\n <div class=\"data-item\">\n <span class=\"label\">Circulating Supply</span>\n <span class=\"value\">420M</span>\n </div>\n <div class=\"data-item\">\n <span class=\"label\">Market Cap</span>\n <span class=\"value\">$10.3B</span>\n </div>\n </div>\n <button class=\"connect-wallet\">Connect Wallet</button>\n </div>\n</header>\n\n<main class=\"main-content\">\n <section class=\"chart-section\">\n <h2>Transaction Volume Trend</h2>\n <div class=\"chart-container\">\n <canvas id=\"transactionChart\"></canvas>\n </div>\n </section>\n\n <section class=\"chart-section\">\n <h2>Token Holder Growth</h2>\n <div class=\"chart-container\">\n <canvas id=\"holderChart\"></canvas>\n </div>\n </section>\n\n <section class=\"chart-section\">\n <h2>Network Activity</h2>\n <div class=\"chart-container\">\n <canvas id=\"activityChart\"></canvas>\n </div>\n </section>\n</main>\n\n<footer class=\"footer\">\n <p>Solana Analytics - Real-time On-chain Data Insights</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #14f195;\n --secondary-color: #9945ff;\n --background-color: #0a0a0a;\n --text-color: #ffffff;\n --card-bg: #1a1a1a;\n --border-radius: 8px;\n --spacing-unit: 16px;\n}\n\nbody {\n margin: 0;\n font-family: 'Inter', sans-serif;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\n.header {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n padding: var(--spacing-unit) 0;\n}\n\n.header-content {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 var(--spacing-unit);\n}\n\n.chain-data {\n display: flex;\n gap: var(--spacing-unit);\n}\n\n.data-item {\n background: var(--card-bg);\n padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);\n border-radius: var(--border-radius);\n text-align: center;\n}\n\n.label {\n font-size: 0.9em;\n color: rgba(255, 255, 255, 0.7);\n}\n\n.value {\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.connect-wallet {\n background: var(--card-bg);\n color: var(--text-color);\n border: none;\n padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\n.connect-wallet:hover {\n background: rgba(255, 255, 255, 0.1);\n}\n\n.main-content {\n max-width: 1200px;\n margin: var(--spacing-unit) auto;\n padding: 0 var(--spacing-unit);\n}\n\n.chart-section {\n margin-bottom: calc(var(--spacing-unit) * 2);\n}\n\n.chart-container {\n background: var(--card-bg);\n padding: var(--spacing-unit);\n border-radius: var(--border-radius);\n height: 300px;\n}\n\n.footer {\n text-align: center;\n padding: var(--spacing-unit) 0;\n background: var(--card-bg);\n margin-top: calc(var(--spacing-unit) * 2);\n}\n\n@media (max-width: 768px) {\n .header-content {\n flex-direction: column;\n gap: var(--spacing-unit);\n }\n\n .chain-data {\n flex-wrap: wrap;\n justify-content: center;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const transactionCtx = document.getElementById('transactionChart').getContext('2d');\n const holderCtx = document.getElementById('holderChart').getContext('2d');\n const activityCtx = document.getElementById('activityChart').getContext('2d');\n\n new Chart(transactionCtx, {\n type: 'line',\n data: {\n labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],\n datasets: [{\n label: 'Transaction Volume',\n data: [12000, 19000, 3000, 5000, 2000, 30000],\n borderColor: '#14f195',\n fill: false\n }]\n },\n options: {\n responsive: true,\n maintainAspectRatio: false\n }\n });\n\n new Chart(holderCtx, {\n type: 'bar',\n data: {\n labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],\n datasets: [{\n label: 'Token Holders',\n data: [5000, 8000, 12000, 15000, 18000, 20000],\n backgroundColor: '#9945ff'\n }]\n },\n options: {\n responsive: true,\n maintainAspectRatio: false\n }\n });\n\n new Chart(activityCtx, {\n type: 'pie',\n data: {\n labels: ['Transactions', 'Smart Contracts', 'NFTs'],\n datasets: [{\n data: [300, 50, 150],\n backgroundColor: ['#14f195', '#9945ff', '#ffffff']\n }]\n },\n options: {\n responsive: true,\n maintainAspectRatio: false\n }\n });\n\n document.querySelector('.connect-wallet').addEventListener('click', function() {\n alert('Wallet connection functionality would be implemented here.');\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 319,
+ "completion_tokens": 1451,
+ "total_tokens": 1770,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 319
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..99cc775
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# solanalytics.scroll.pub
+Website generated by DeepSeek from prompt: 生成一个Solana链上项目的网页设计,顶部展示链上常见数据如价格、流通供应量等,右侧提供连接钱包的功能按钮。主体部分包含多个链上数据图表,如交易量趋势、代币持有者增长图等,使用占位符文本和示例数据展示图表内容。确保图表样式清晰且具有交互性,整体设计风格简洁现代。使用shadcn模块
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..8f44bae
--- /dev/null
+++ b/script.js
@@ -0,0 +1,57 @@
+document.addEventListener('DOMContentLoaded', function() {
+ const transactionCtx = document.getElementById('transactionChart').getContext('2d');
+ const holderCtx = document.getElementById('holderChart').getContext('2d');
+ const activityCtx = document.getElementById('activityChart').getContext('2d');
+
+ new Chart(transactionCtx, {
+ type: 'line',
+ data: {
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
+ datasets: [{
+ label: 'Transaction Volume',
+ data: [12000, 19000, 3000, 5000, 2000, 30000],
+ borderColor: '#14f195',
+ fill: false
+ }]
+ },
+ options: {
+ responsive: true,
+ maintainAspectRatio: false
+ }
+ });
+
+ new Chart(holderCtx, {
+ type: 'bar',
+ data: {
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
+ datasets: [{
+ label: 'Token Holders',
+ data: [5000, 8000, 12000, 15000, 18000, 20000],
+ backgroundColor: '#9945ff'
+ }]
+ },
+ options: {
+ responsive: true,
+ maintainAspectRatio: false
+ }
+ });
+
+ new Chart(activityCtx, {
+ type: 'pie',
+ data: {
+ labels: ['Transactions', 'Smart Contracts', 'NFTs'],
+ datasets: [{
+ data: [300, 50, 150],
+ backgroundColor: ['#14f195', '#9945ff', '#ffffff']
+ }]
+ },
+ options: {
+ responsive: true,
+ maintainAspectRatio: false
+ }
+ });
+
+ document.querySelector('.connect-wallet').addEventListener('click', function() {
+ alert('Wallet connection functionality would be implemented here.');
+ });
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..bc975cf
--- /dev/null
+++ b/style.css
@@ -0,0 +1,103 @@
+:root {
+ --primary-color: #14f195;
+ --secondary-color: #9945ff;
+ --background-color: #0a0a0a;
+ --text-color: #ffffff;
+ --card-bg: #1a1a1a;
+ --border-radius: 8px;
+ --spacing-unit: 16px;
+}
+
+body {
+ margin: 0;
+ font-family: 'Inter', sans-serif;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ line-height: 1.6;
+}
+
+.header {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ padding: var(--spacing-unit) 0;
+}
+
+.header-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 var(--spacing-unit);
+}
+
+.chain-data {
+ display: flex;
+ gap: var(--spacing-unit);
+}
+
+.data-item {
+ background: var(--card-bg);
+ padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
+ border-radius: var(--border-radius);
+ text-align: center;
+}
+
+.label {
+ font-size: 0.9em;
+ color: rgba(255, 255, 255, 0.7);
+}
+
+.value {
+ font-size: 1.2em;
+ font-weight: bold;
+}
+
+.connect-wallet {
+ background: var(--card-bg);
+ color: var(--text-color);
+ border: none;
+ padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
+ border-radius: var(--border-radius);
+ cursor: pointer;
+ transition: background 0.3s ease;
+}
+
+.connect-wallet:hover {
+ background: rgba(255, 255, 255, 0.1);
+}
+
+.main-content {
+ max-width: 1200px;
+ margin: var(--spacing-unit) auto;
+ padding: 0 var(--spacing-unit);
+}
+
+.chart-section {
+ margin-bottom: calc(var(--spacing-unit) * 2);
+}
+
+.chart-container {
+ background: var(--card-bg);
+ padding: var(--spacing-unit);
+ border-radius: var(--border-radius);
+ height: 300px;
+}
+
+.footer {
+ text-align: center;
+ padding: var(--spacing-unit) 0;
+ background: var(--card-bg);
+ margin-top: calc(var(--spacing-unit) * 2);
+}
+
+@media (max-width: 768px) {
+ .header-content {
+ flex-direction: column;
+ gap: var(--spacing-unit);
+ }
+
+ .chain-data {
+ flex-wrap: wrap;
+ justify-content: center;
+ }
+}
\ No newline at end of file