Changes to infocraft.scroll.pub

root
root
25 days ago
Initial commit
body.html
Changed around line 1
+
+

Infocraft

+

Your Online Infographic Editor

+
+
+
+
+
+

Your Infographic Title

+

Start creating your masterpiece here...

+
+
+
+
+
+
+
+
+
+
+

Choose a Template

+
+
+
+

Basic

+
+
+
+

Timeline

+
+
+
+

Comparison

+
+
+
+
+
+
+
+
+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://infocraft.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Infocraft - Create Stunning Infographics
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "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
\n

Infocraft

\n

Your Online Infographic Editor

\n
\n\n
\n
\n
\n

Your Infographic Title

\n

Start creating your masterpiece here...

\n
\n
\n \n \n \n \n
\n
\n\n
\n

Choose a Template

\n
\n
\n
\n

Basic

\n
\n
\n
\n

Timeline

\n
\n
\n
\n

Comparison

\n
\n
\n
\n
\n\n\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 = '

Basic Infographic

Start with this simple layout...

';\n break;\n case 'timeline':\n canvas.innerHTML = '

Timeline Infographic

';\n break;\n case 'comparison':\n canvas.innerHTML = '

Comparison Infographic

';\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"
+ }
readme.scroll
Changed around line 1
+ # infocraft.scroll.pub
+ Website generated by DeepSeek from prompt: infographic editor
script.js
Changed around line 1
+ 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 = '

Basic Infographic

Start with this simple layout...

';
+ break;
+ case 'timeline':
+ canvas.innerHTML = '

Timeline Infographic

';
+ break;
+ case 'comparison':
+ canvas.innerHTML = '

Comparison Infographic

';
+ break;
+ }
+ }
+ });
style.css
Changed around line 1
+ :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));
+ }
+ }