commit bbe77643e805f3fe889973a389fbb0c1da878225
Author: root <root@hub.scroll.pub>
Date: 2025-01-02 02:14:59 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..52f7df3
--- /dev/null
+++ b/body.html
@@ -0,0 +1,44 @@
+<header>
+ <h1>SpiritStats</h1>
+ <p>Track and Celebrate Student Spirit</p>
+</header>
+
+<main>
+ <section id="intro">
+ <h2>Welcome to SpiritStats</h2>
+ <p>Join us in tracking and celebrating the spirit of students across the globe. Share your experiences, participate in challenges, and see how your school ranks!</p>
+ </section>
+
+ <section id="stats">
+ <h2>Current Statistics</h2>
+ <div class="stats-grid">
+ <div class="stat-card">
+ <h3>Total Participants</h3>
+ <p id="totalParticipants">0</p>
+ </div>
+ <div class="stat-card">
+ <h3>Schools Registered</h3>
+ <p id="totalSchools">0</p>
+ </div>
+ <div class="stat-card">
+ <h3>Events Completed</h3>
+ <p id="totalEvents">0</p>
+ </div>
+ </div>
+ </section>
+
+ <section id="join">
+ <h2>Join the Movement</h2>
+ <form id="joinForm">
+ <label for="name">Name:</label>
+ <input type="text" id="name" name="name" required>
+ <label for="school">School:</label>
+ <input type="text" id="school" name="school" required>
+ <button type="submit">Join Now</button>
+ </form>
+ </section>
+</main>
+
+<footer>
+ <p>SpiritStats - Empowering Student Spirit</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..114cd0e
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://spiritstats.scroll.pub
+metaTags
+editButton /edit.html
+title SpiritStats - Track and Celebrate Student Spirit
+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..518870f
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "ce3b16df-3ca5-4e43-98ff-993162f24208",
+ "object": "chat.completion",
+ "created": 1735784079,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nspiritstats.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://spiritstats.scroll.pub\nmetaTags\neditButton /edit.html\ntitle SpiritStats - Track and Celebrate Student Spirit\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>SpiritStats</h1>\n <p>Track and Celebrate Student Spirit</p>\n</header>\n\n<main>\n <section id=\"intro\">\n <h2>Welcome to SpiritStats</h2>\n <p>Join us in tracking and celebrating the spirit of students across the globe. Share your experiences, participate in challenges, and see how your school ranks!</p>\n </section>\n\n <section id=\"stats\">\n <h2>Current Statistics</h2>\n <div class=\"stats-grid\">\n <div class=\"stat-card\">\n <h3>Total Participants</h3>\n <p id=\"totalParticipants\">0</p>\n </div>\n <div class=\"stat-card\">\n <h3>Schools Registered</h3>\n <p id=\"totalSchools\">0</p>\n </div>\n <div class=\"stat-card\">\n <h3>Events Completed</h3>\n <p id=\"totalEvents\">0</p>\n </div>\n </div>\n </section>\n\n <section id=\"join\">\n <h2>Join the Movement</h2>\n <form id=\"joinForm\">\n <label for=\"name\">Name:</label>\n <input type=\"text\" id=\"name\" name=\"name\" required>\n <label for=\"school\">School:</label>\n <input type=\"text\" id=\"school\" name=\"school\" required>\n <button type=\"submit\">Join Now</button>\n </form>\n </section>\n</main>\n\n<footer>\n <p>SpiritStats - Empowering Student Spirit</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Arial', sans-serif;\n margin: 0;\n padding: 0;\n background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);\n color: #fff;\n line-height: 1.6;\n}\n\nheader {\n text-align: center;\n padding: 2rem;\n background: rgba(0, 0, 0, 0.7);\n}\n\nheader h1 {\n font-size: 3rem;\n margin: 0;\n}\n\nheader p {\n font-size: 1.2rem;\n margin: 0.5rem 0 0;\n}\n\nmain {\n padding: 2rem;\n}\n\nsection {\n margin-bottom: 2rem;\n}\n\nh2 {\n font-size: 2rem;\n margin-bottom: 1rem;\n}\n\n.stats-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1rem;\n}\n\n.stat-card {\n background: rgba(255, 255, 255, 0.1);\n padding: 1rem;\n border-radius: 8px;\n text-align: center;\n}\n\n.stat-card h3 {\n font-size: 1.5rem;\n margin: 0 0 0.5rem;\n}\n\n.stat-card p {\n font-size: 2rem;\n margin: 0;\n}\n\nform {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\nlabel {\n font-size: 1.2rem;\n}\n\ninput {\n padding: 0.5rem;\n font-size: 1rem;\n border: none;\n border-radius: 4px;\n}\n\nbutton {\n padding: 0.75rem;\n font-size: 1rem;\n background: #ff6f61;\n color: #fff;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n}\n\nbutton:hover {\n background: #ff3b2f;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: rgba(0, 0, 0, 0.7);\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n h2 {\n font-size: 1.5rem;\n }\n\n .stat-card h3 {\n font-size: 1.2rem;\n }\n\n .stat-card p {\n font-size: 1.5rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const totalParticipants = document.getElementById('totalParticipants');\n const totalSchools = document.getElementById('totalSchools');\n const totalEvents = document.getElementById('totalEvents');\n const joinForm = document.getElementById('joinForm');\n\n let participants = 0;\n let schools = new Set();\n let events = 0;\n\n function updateStats() {\n totalParticipants.textContent = participants;\n totalSchools.textContent = schools.size;\n totalEvents.textContent = events;\n }\n\n joinForm.addEventListener('submit', function(event) {\n event.preventDefault();\n const name = document.getElementById('name').value;\n const school = document.getElementById('school').value;\n\n participants++;\n schools.add(school);\n events++;\n\n updateStats();\n joinForm.reset();\n });\n\n updateStats();\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 239,
+ "completion_tokens": 1191,
+ "total_tokens": 1430,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 239
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..de039e6
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# spiritstats.scroll.pub
+Website generated by DeepSeek from prompt: 创建一个统计学生精神的网站
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..e66dba4
--- /dev/null
+++ b/script.js
@@ -0,0 +1,31 @@
+document.addEventListener('DOMContentLoaded', function() {
+ const totalParticipants = document.getElementById('totalParticipants');
+ const totalSchools = document.getElementById('totalSchools');
+ const totalEvents = document.getElementById('totalEvents');
+ const joinForm = document.getElementById('joinForm');
+
+ let participants = 0;
+ let schools = new Set();
+ let events = 0;
+
+ function updateStats() {
+ totalParticipants.textContent = participants;
+ totalSchools.textContent = schools.size;
+ totalEvents.textContent = events;
+ }
+
+ joinForm.addEventListener('submit', function(event) {
+ event.preventDefault();
+ const name = document.getElementById('name').value;
+ const school = document.getElementById('school').value;
+
+ participants++;
+ schools.add(school);
+ events++;
+
+ updateStats();
+ joinForm.reset();
+ });
+
+ updateStats();
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..42c012b
--- /dev/null
+++ b/style.css
@@ -0,0 +1,120 @@
+body {
+ font-family: 'Arial', sans-serif;
+ margin: 0;
+ padding: 0;
+ background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
+ color: #fff;
+ line-height: 1.6;
+}
+
+header {
+ text-align: center;
+ padding: 2rem;
+ background: rgba(0, 0, 0, 0.7);
+}
+
+header h1 {
+ font-size: 3rem;
+ margin: 0;
+}
+
+header p {
+ font-size: 1.2rem;
+ margin: 0.5rem 0 0;
+}
+
+main {
+ padding: 2rem;
+}
+
+section {
+ margin-bottom: 2rem;
+}
+
+h2 {
+ font-size: 2rem;
+ margin-bottom: 1rem;
+}
+
+.stats-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 1rem;
+}
+
+.stat-card {
+ background: rgba(255, 255, 255, 0.1);
+ padding: 1rem;
+ border-radius: 8px;
+ text-align: center;
+}
+
+.stat-card h3 {
+ font-size: 1.5rem;
+ margin: 0 0 0.5rem;
+}
+
+.stat-card p {
+ font-size: 2rem;
+ margin: 0;
+}
+
+form {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+}
+
+label {
+ font-size: 1.2rem;
+}
+
+input {
+ padding: 0.5rem;
+ font-size: 1rem;
+ border: none;
+ border-radius: 4px;
+}
+
+button {
+ padding: 0.75rem;
+ font-size: 1rem;
+ background: #ff6f61;
+ color: #fff;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+}
+
+button:hover {
+ background: #ff3b2f;
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background: rgba(0, 0, 0, 0.7);
+ margin-top: 2rem;
+}
+
+@media (max-width: 768px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ header p {
+ font-size: 1rem;
+ }
+
+ h2 {
+ font-size: 1.5rem;
+ }
+
+ .stat-card h3 {
+ font-size: 1.2rem;
+ }
+
+ .stat-card p {
+ font-size: 1.5rem;
+ }
+}
\ No newline at end of file