commit 4093d74061afdcf37f4721c7debab24fd6ea6271
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 03:21:56 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..6e5cb24
--- /dev/null
+++ b/body.html
@@ -0,0 +1,23 @@
+<header>
+ <h1>PhotoScape</h1>
+ <p>Your personal photo gallery in the cloud</p>
+</header>
+
+<main>
+ <section class="upload-section">
+ <h2>Upload Photos</h2>
+ <input type="file" id="photo-upload" accept="image/*" multiple>
+ <button id="upload-btn">Upload Selected Photos</button>
+ </section>
+
+ <section class="gallery-section">
+ <h2>Your Gallery</h2>
+ <div class="gallery-grid" id="gallery">
+ <!-- Photos will be dynamically inserted here -->
+ </div>
+ </section>
+</main>
+
+<footer>
+ <p>PhotoScape - Simple, Secure, Stunning</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..0267a8f
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://photoscape.scroll.pub
+metaTags
+editButton /edit.html
+title PhotoScape - Upload, Download & Display Your Photos
+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..44ad310
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "b444ef62-a035-41f0-b35d-11e667a546c7",
+ "object": "chat.completion",
+ "created": 1735356100,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nphotoscape.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://photoscape.scroll.pub\nmetaTags\neditButton /edit.html\ntitle PhotoScape - Upload, Download & Display Your Photos\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>PhotoScape</h1>\n <p>Your personal photo gallery in the cloud</p>\n</header>\n\n<main>\n <section class=\"upload-section\">\n <h2>Upload Photos</h2>\n <input type=\"file\" id=\"photo-upload\" accept=\"image/*\" multiple>\n <button id=\"upload-btn\">Upload Selected Photos</button>\n </section>\n\n <section class=\"gallery-section\">\n <h2>Your Gallery</h2>\n <div class=\"gallery-grid\" id=\"gallery\">\n <!-- Photos will be dynamically inserted here -->\n </div>\n </section>\n</main>\n\n<footer>\n <p>PhotoScape - Simple, Secure, Stunning</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #50e3c2;\n --background-color: #f5f5f5;\n --text-color: #333;\n --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n}\n\nheader {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nh1 {\n font-size: 2.5rem;\n margin: 0;\n}\n\np {\n margin: 0.5rem 0 0;\n}\n\nmain {\n padding: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.upload-section {\n background: white;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n margin-bottom: 2rem;\n}\n\n#photo-upload {\n display: block;\n margin: 1rem 0;\n}\n\n#upload-btn {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n#upload-btn:hover {\n background-color: #357abd;\n}\n\n.gallery-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));\n gap: 1.5rem;\n margin-top: 1rem;\n}\n\n.gallery-item {\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n transition: transform 0.3s ease;\n}\n\n.gallery-item:hover {\n transform: translateY(-5px);\n}\n\n.gallery-item img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n}\n\nfooter {\n text-align: center;\n padding: 1.5rem;\n background-color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2rem;\n }\n \n .gallery-grid {\n grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const uploadInput = document.getElementById('photo-upload');\n const uploadBtn = document.getElementById('upload-btn');\n const gallery = document.getElementById('gallery');\n\n uploadBtn.addEventListener('click', function() {\n const files = uploadInput.files;\n if (files.length > 0) {\n Array.from(files).forEach(file => {\n if (file.type.startsWith('image/')) {\n const reader = new FileReader();\n reader.onload = function(e) {\n const imgElement = document.createElement('div');\n imgElement.classList.add('gallery-item');\n imgElement.innerHTML = `<img src=\"${e.target.result}\" alt=\"${file.name}\">`;\n gallery.appendChild(imgElement);\n };\n reader.readAsDataURL(file);\n }\n });\n }\n });\n\n // Drag and drop functionality\n document.body.addEventListener('dragover', function(e) {\n e.preventDefault();\n document.body.classList.add('dragover');\n });\n\n document.body.addEventListener('dragleave', function() {\n document.body.classList.remove('dragover');\n });\n\n document.body.addEventListener('drop', function(e) {\n e.preventDefault();\n document.body.classList.remove('dragover');\n uploadInput.files = e.dataTransfer.files;\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 252,
+ "completion_tokens": 1116,
+ "total_tokens": 1368,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 252
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..7eb7f34
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# photoscape1.scroll.pub
+Website generated by DeepSeek from prompt: I want to create a websit that could upload&dowload and display my photos
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..b6c5344
--- /dev/null
+++ b/script.js
@@ -0,0 +1,39 @@
+document.addEventListener('DOMContentLoaded', function() {
+ const uploadInput = document.getElementById('photo-upload');
+ const uploadBtn = document.getElementById('upload-btn');
+ const gallery = document.getElementById('gallery');
+
+ uploadBtn.addEventListener('click', function() {
+ const files = uploadInput.files;
+ if (files.length > 0) {
+ Array.from(files).forEach(file => {
+ if (file.type.startsWith('image/')) {
+ const reader = new FileReader();
+ reader.onload = function(e) {
+ const imgElement = document.createElement('div');
+ imgElement.classList.add('gallery-item');
+ imgElement.innerHTML = `<img src="${e.target.result}" alt="${file.name}">`;
+ gallery.appendChild(imgElement);
+ };
+ reader.readAsDataURL(file);
+ }
+ });
+ }
+ });
+
+ // Drag and drop functionality
+ document.body.addEventListener('dragover', function(e) {
+ e.preventDefault();
+ document.body.classList.add('dragover');
+ });
+
+ document.body.addEventListener('dragleave', function() {
+ document.body.classList.remove('dragover');
+ });
+
+ document.body.addEventListener('drop', function(e) {
+ e.preventDefault();
+ document.body.classList.remove('dragover');
+ uploadInput.files = e.dataTransfer.files;
+ });
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..478a4a6
--- /dev/null
+++ b/style.css
@@ -0,0 +1,108 @@
+:root {
+ --primary-color: #4a90e2;
+ --secondary-color: #50e3c2;
+ --background-color: #f5f5f5;
+ --text-color: #333;
+ --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ margin: 0;
+ padding: 0;
+ background-color: var(--background-color);
+ color: var(--text-color);
+}
+
+header {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+ padding: 2rem;
+ text-align: center;
+}
+
+h1 {
+ font-size: 2.5rem;
+ margin: 0;
+}
+
+p {
+ margin: 0.5rem 0 0;
+}
+
+main {
+ padding: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.upload-section {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+ margin-bottom: 2rem;
+}
+
+#photo-upload {
+ display: block;
+ margin: 1rem 0;
+}
+
+#upload-btn {
+ background-color: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: 4px;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+#upload-btn:hover {
+ background-color: #357abd;
+}
+
+.gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
+ gap: 1.5rem;
+ margin-top: 1rem;
+}
+
+.gallery-item {
+ position: relative;
+ overflow: hidden;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+ transition: transform 0.3s ease;
+}
+
+.gallery-item:hover {
+ transform: translateY(-5px);
+}
+
+.gallery-item img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block;
+}
+
+footer {
+ text-align: center;
+ padding: 1.5rem;
+ background-color: white;
+ margin-top: 2rem;
+}
+
+@media (max-width: 768px) {
+ h1 {
+ font-size: 2rem;
+ }
+
+ .gallery-grid {
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
+ }
+}
\ No newline at end of file