commit 58636eeb5259b2b1f772d6cf673c663a654f4408
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 01:57:29 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..f5c028e
--- /dev/null
+++ b/body.html
@@ -0,0 +1,45 @@
+<header>
+ <h1>Infocraft</h1>
+ <p>Your Online Infographic Editor</p>
+</header>
+
+<main>
+ <section class="editor">
+ <div class="canvas" contenteditable="true">
+ <h2>Your Infographic Title</h2>
+ <p>Start creating your masterpiece here...</p>
+ </div>
+ <div class="tools">
+ <button class="tool-btn" data-tool="text">Add Text</button>
+ <button class="tool-btn" data-tool="shape">Add Shape</button>
+ <button class="tool-btn" data-tool="image">Add Image</button>
+ <button class="tool-btn" data-tool="color">Change Color</button>
+ </div>
+ </section>
+
+ <section class="templates">
+ <h3>Choose a Template</h3>
+ <div class="template-grid">
+ <div class="template" data-template="basic">
+ <div class="preview"></div>
+ <p>Basic</p>
+ </div>
+ <div class="template" data-template="timeline">
+ <div class="preview"></div>
+ <p>Timeline</p>
+ </div>
+ <div class="template" data-template="comparison">
+ <div class="preview"></div>
+ <p>Comparison</p>
+ </div>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <nav>
+ <a href="/about">About</a>
+ <a href="/help">Help</a>
+ <a href="/contact">Contact</a>
+ </nav>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..6e1a2e9
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://infocraft.scroll.pub
+metaTags
+editButton /edit.html
+title Infocraft - Create Stunning Infographics
+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..f3ac7b4
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "3825771d-60ca-4308-8128-937364fbf29b",
+ "object": "chat.completion",
+ "created": 1735351028,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\ninfocraft.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://infocraft.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Infocraft - Create Stunning Infographics\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Infocraft</h1>\n <p>Your Online Infographic Editor</p>\n</header>\n\n<main>\n <section class=\"editor\">\n <div class=\"canvas\" contenteditable=\"true\">\n <h2>Your Infographic Title</h2>\n <p>Start creating your masterpiece here...</p>\n </div>\n <div class=\"tools\">\n <button class=\"tool-btn\" data-tool=\"text\">Add Text</button>\n <button class=\"tool-btn\" data-tool=\"shape\">Add Shape</button>\n <button class=\"tool-btn\" data-tool=\"image\">Add Image</button>\n <button class=\"tool-btn\" data-tool=\"color\">Change Color</button>\n </div>\n </section>\n\n <section class=\"templates\">\n <h3>Choose a Template</h3>\n <div class=\"template-grid\">\n <div class=\"template\" data-template=\"basic\">\n <div class=\"preview\"></div>\n <p>Basic</p>\n </div>\n <div class=\"template\" data-template=\"timeline\">\n <div class=\"preview\"></div>\n <p>Timeline</p>\n </div>\n <div class=\"template\" data-template=\"comparison\">\n <div class=\"preview\"></div>\n <p>Comparison</p>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <nav>\n <a href=\"/about\">About</a>\n <a href=\"/help\">Help</a>\n <a href=\"/contact\">Contact</a>\n </nav>\n</footer>\n---style.css---\n:root {\n --primary-color: #4CAF50;\n --secondary-color: #2196F3;\n --background-color: #f5f5f5;\n --text-color: #333;\n --shadow: 0 2px 5px rgba(0,0,0,0.1);\n}\n\nbody {\n font-family: 'Segoe 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: white;\n padding: 2rem;\n text-align: center;\n box-shadow: var(--shadow);\n}\n\nh1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\n.editor {\n max-width: 1200px;\n margin: 2rem auto;\n background: white;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--shadow);\n}\n\n.canvas {\n min-height: 400px;\n border: 2px dashed var(--secondary-color);\n padding: 1rem;\n margin-bottom: 1rem;\n}\n\n.tools {\n display: flex;\n gap: 1rem;\n justify-content: center;\n}\n\n.tool-btn {\n padding: 0.5rem 1rem;\n background: var(--secondary-color);\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n transition: background 0.3s;\n}\n\n.tool-btn:hover {\n background: #1976D2;\n}\n\n.templates {\n max-width: 1200px;\n margin: 2rem auto;\n}\n\n.template-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1rem;\n}\n\n.template {\n background: white;\n padding: 1rem;\n border-radius: 8px;\n box-shadow: var(--shadow);\n text-align: center;\n cursor: pointer;\n transition: transform 0.3s;\n}\n\n.template:hover {\n transform: translateY(-5px);\n}\n\n.preview {\n height: 150px;\n background: var(--background-color);\n margin-bottom: 1rem;\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n padding: 1rem;\n text-align: center;\n}\n\nfooter nav {\n display: flex;\n justify-content: center;\n gap: 1rem;\n}\n\nfooter a {\n color: white;\n text-decoration: none;\n}\n\n@media (max-width: 768px) {\n .editor {\n padding: 1rem;\n }\n \n .tools {\n flex-wrap: wrap;\n }\n \n .template-grid {\n grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const canvas = document.querySelector('.canvas');\n const toolButtons = document.querySelectorAll('.tool-btn');\n const templates = document.querySelectorAll('.template');\n\n toolButtons.forEach(button => {\n button.addEventListener('click', function() {\n const tool = this.dataset.tool;\n handleToolSelection(tool);\n });\n });\n\n templates.forEach(template => {\n template.addEventListener('click', function() {\n const templateType = this.dataset.template;\n applyTemplate(templateType);\n });\n });\n\n function handleToolSelection(tool) {\n switch(tool) {\n case 'text':\n addTextElement();\n break;\n case 'shape':\n addShapeElement();\n break;\n case 'image':\n addImageElement();\n break;\n case 'color':\n changeColor();\n break;\n }\n }\n\n function addTextElement() {\n const textElement = document.createElement('p');\n textElement.contentEditable = true;\n textElement.textContent = 'New Text';\n canvas.appendChild(textElement);\n }\n\n function addShapeElement() {\n const shapeElement = document.createElement('div');\n shapeElement.style.width = '100px';\n shapeElement.style.height = '100px';\n shapeElement.style.backgroundColor = '#ddd';\n canvas.appendChild(shapeElement);\n }\n\n function addImageElement() {\n const imageElement = document.createElement('img');\n imageElement.src = 'placeholder.jpg';\n imageElement.alt = 'Image';\n imageElement.style.maxWidth = '100%';\n canvas.appendChild(imageElement);\n }\n\n function changeColor() {\n const randomColor = '#' + Math.floor(Math.random()*16777215).toString(16);\n canvas.style.backgroundColor = randomColor;\n }\n\n function applyTemplate(templateType) {\n canvas.innerHTML = '';\n switch(templateType) {\n case 'basic':\n canvas.innerHTML = '<h2>Basic Infographic</h2><p>Start with this simple layout...</p>';\n break;\n case 'timeline':\n canvas.innerHTML = '<h2>Timeline Infographic</h2><div class=\"timeline\"></div>';\n break;\n case 'comparison':\n canvas.innerHTML = '<h2>Comparison Infographic</h2><div class=\"comparison\"></div>';\n break;\n }\n }\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 238,
+ "completion_tokens": 1588,
+ "total_tokens": 1826,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 238
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..ff91ae7
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# infocraft.scroll.pub
+Website generated by DeepSeek from prompt: infographic editor
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..5c3fc29
--- /dev/null
+++ b/script.js
@@ -0,0 +1,79 @@
+document.addEventListener('DOMContentLoaded', function() {
+ const canvas = document.querySelector('.canvas');
+ const toolButtons = document.querySelectorAll('.tool-btn');
+ const templates = document.querySelectorAll('.template');
+
+ toolButtons.forEach(button => {
+ button.addEventListener('click', function() {
+ const tool = this.dataset.tool;
+ handleToolSelection(tool);
+ });
+ });
+
+ templates.forEach(template => {
+ template.addEventListener('click', function() {
+ const templateType = this.dataset.template;
+ applyTemplate(templateType);
+ });
+ });
+
+ function handleToolSelection(tool) {
+ switch(tool) {
+ case 'text':
+ addTextElement();
+ break;
+ case 'shape':
+ addShapeElement();
+ break;
+ case 'image':
+ addImageElement();
+ break;
+ case 'color':
+ changeColor();
+ break;
+ }
+ }
+
+ function addTextElement() {
+ const textElement = document.createElement('p');
+ textElement.contentEditable = true;
+ textElement.textContent = 'New Text';
+ canvas.appendChild(textElement);
+ }
+
+ function addShapeElement() {
+ const shapeElement = document.createElement('div');
+ shapeElement.style.width = '100px';
+ shapeElement.style.height = '100px';
+ shapeElement.style.backgroundColor = '#ddd';
+ canvas.appendChild(shapeElement);
+ }
+
+ function addImageElement() {
+ const imageElement = document.createElement('img');
+ imageElement.src = 'placeholder.jpg';
+ imageElement.alt = 'Image';
+ imageElement.style.maxWidth = '100%';
+ canvas.appendChild(imageElement);
+ }
+
+ function changeColor() {
+ const randomColor = '#' + Math.floor(Math.random()*16777215).toString(16);
+ canvas.style.backgroundColor = randomColor;
+ }
+
+ function applyTemplate(templateType) {
+ canvas.innerHTML = '';
+ switch(templateType) {
+ case 'basic':
+ canvas.innerHTML = '<h2>Basic Infographic</h2><p>Start with this simple layout...</p>';
+ break;
+ case 'timeline':
+ canvas.innerHTML = '<h2>Timeline Infographic</h2><div class="timeline"></div>';
+ break;
+ case 'comparison':
+ canvas.innerHTML = '<h2>Comparison Infographic</h2><div class="comparison"></div>';
+ break;
+ }
+ }
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..36be5be
--- /dev/null
+++ b/style.css
@@ -0,0 +1,128 @@
+:root {
+ --primary-color: #4CAF50;
+ --secondary-color: #2196F3;
+ --background-color: #f5f5f5;
+ --text-color: #333;
+ --shadow: 0 2px 5px rgba(0,0,0,0.1);
+}
+
+body {
+ font-family: 'Segoe 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: white;
+ padding: 2rem;
+ text-align: center;
+ box-shadow: var(--shadow);
+}
+
+h1 {
+ margin: 0;
+ font-size: 2.5rem;
+}
+
+.editor {
+ max-width: 1200px;
+ margin: 2rem auto;
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: var(--shadow);
+}
+
+.canvas {
+ min-height: 400px;
+ border: 2px dashed var(--secondary-color);
+ padding: 1rem;
+ margin-bottom: 1rem;
+}
+
+.tools {
+ display: flex;
+ gap: 1rem;
+ justify-content: center;
+}
+
+.tool-btn {
+ padding: 0.5rem 1rem;
+ background: var(--secondary-color);
+ color: white;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+ transition: background 0.3s;
+}
+
+.tool-btn:hover {
+ background: #1976D2;
+}
+
+.templates {
+ max-width: 1200px;
+ margin: 2rem auto;
+}
+
+.template-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 1rem;
+}
+
+.template {
+ background: white;
+ padding: 1rem;
+ border-radius: 8px;
+ box-shadow: var(--shadow);
+ text-align: center;
+ cursor: pointer;
+ transition: transform 0.3s;
+}
+
+.template:hover {
+ transform: translateY(-5px);
+}
+
+.preview {
+ height: 150px;
+ background: var(--background-color);
+ margin-bottom: 1rem;
+}
+
+footer {
+ background: var(--primary-color);
+ color: white;
+ padding: 1rem;
+ text-align: center;
+}
+
+footer nav {
+ display: flex;
+ justify-content: center;
+ gap: 1rem;
+}
+
+footer a {
+ color: white;
+ text-decoration: none;
+}
+
+@media (max-width: 768px) {
+ .editor {
+ padding: 1rem;
+ }
+
+ .tools {
+ flex-wrap: wrap;
+ }
+
+ .template-grid {
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
+ }
+}
\ No newline at end of file