commit 536aae694cd3c3e2f0d8b9d6d31ac65853e4c26c
Author: root <root@hub.scroll.pub> Date: 2024-12-27 15:15:35 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..b016e33 --- /dev/null +++ b/body.html @@ -0,0 +1,79 @@ +<header> + <h1>NoteShare</h1> + <nav> + <a href="#features">Features</a> + <a href="#upload">Upload</a> + <a href="#browse">Browse</a> + <a href="#login">Login</a> + <a href="#signup">Sign Up</a> + </nav> +</header> + +<main> + <section id="hero"> + <h2>Share and Discover Notes</h2> + <p>Join our community to upload, share, and explore notes on various topics.</p> + <a href="#signup" class="cta-button">Get Started</a> + </section> + + <section id="features"> + <h3>Features</h3> + <div class="feature-grid"> + <div class="feature"> + <h4>Easy Upload</h4> + <p>Quickly upload your notes in various formats.</p> + </div> + <div class="feature"> + <h4>Organized Categories</h4> + <p>Find notes by subject, topic, or keyword.</p> + </div> + <div class="feature"> + <h4>Community Driven</h4> + <p>Engage with other users and share knowledge.</p> + </div> + </div> + </section> + + <section id="upload"> + <h3>Upload Your Notes</h3> + <form id="uploadForm"> + <input type="text" id="noteTitle" placeholder="Note Title" required> + <textarea id="noteContent" placeholder="Note Content" required></textarea> + <input type="file" id="noteFile" accept=".pdf,.doc,.txt"> + <button type="submit">Upload Note</button> + </form> + </section> + + <section id="browse"> + <h3>Browse Notes</h3> + <div id="notesGrid"></div> + </section> + + <section id="login"> + <h3>Login</h3> + <form id="loginForm"> + <input type="email" id="loginEmail" placeholder="Email" required> + <input type="password" id="loginPassword" placeholder="Password" required> + <button type="submit">Login</button> + </form> + </section> + + <section id="signup"> + <h3>Sign Up</h3> + <form id="signupForm"> + <input type="text" id="signupName" placeholder="Full Name" required> + <input type="email" id="signupEmail" placeholder="Email" required> + <input type="password" id="signupPassword" placeholder="Password" required> + <button type="submit">Sign Up</button> + </form> + </section> +</main> + +<footer> + <p>Connect with us on social media</p> + <div class="social-links"> + <a href="#">Twitter</a> + <a href="#">Facebook</a> + <a href="#">Instagram</a> + </div> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..a8a6a70 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://noteshare.scroll.pub +metaTags +editButton /edit.html +title NoteShare - Share and Discover Notes +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..1539cd8 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "662280c7-7325-4356-85f9-598c072d20f7", + "object": "chat.completion", + "created": 1735312509, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nnoteshare.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://noteshare.scroll.pub\nmetaTags\neditButton /edit.html\ntitle NoteShare - Share and Discover Notes\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>NoteShare</h1>\n <nav>\n <a href=\"#features\">Features</a>\n <a href=\"#upload\">Upload</a>\n <a href=\"#browse\">Browse</a>\n <a href=\"#login\">Login</a>\n <a href=\"#signup\">Sign Up</a>\n </nav>\n</header>\n\n<main>\n <section id=\"hero\">\n <h2>Share and Discover Notes</h2>\n <p>Join our community to upload, share, and explore notes on various topics.</p>\n <a href=\"#signup\" class=\"cta-button\">Get Started</a>\n </section>\n\n <section id=\"features\">\n <h3>Features</h3>\n <div class=\"feature-grid\">\n <div class=\"feature\">\n <h4>Easy Upload</h4>\n <p>Quickly upload your notes in various formats.</p>\n </div>\n <div class=\"feature\">\n <h4>Organized Categories</h4>\n <p>Find notes by subject, topic, or keyword.</p>\n </div>\n <div class=\"feature\">\n <h4>Community Driven</h4>\n <p>Engage with other users and share knowledge.</p>\n </div>\n </div>\n </section>\n\n <section id=\"upload\">\n <h3>Upload Your Notes</h3>\n <form id=\"uploadForm\">\n <input type=\"text\" id=\"noteTitle\" placeholder=\"Note Title\" required>\n <textarea id=\"noteContent\" placeholder=\"Note Content\" required></textarea>\n <input type=\"file\" id=\"noteFile\" accept=\".pdf,.doc,.txt\">\n <button type=\"submit\">Upload Note</button>\n </form>\n </section>\n\n <section id=\"browse\">\n <h3>Browse Notes</h3>\n <div id=\"notesGrid\"></div>\n </section>\n\n <section id=\"login\">\n <h3>Login</h3>\n <form id=\"loginForm\">\n <input type=\"email\" id=\"loginEmail\" placeholder=\"Email\" required>\n <input type=\"password\" id=\"loginPassword\" placeholder=\"Password\" required>\n <button type=\"submit\">Login</button>\n </form>\n </section>\n\n <section id=\"signup\">\n <h3>Sign Up</h3>\n <form id=\"signupForm\">\n <input type=\"text\" id=\"signupName\" placeholder=\"Full Name\" required>\n <input type=\"email\" id=\"signupEmail\" placeholder=\"Email\" required>\n <input type=\"password\" id=\"signupPassword\" placeholder=\"Password\" required>\n <button type=\"submit\">Sign Up</button>\n </form>\n </section>\n</main>\n\n<footer>\n <p>Connect with us on social media</p>\n <div class=\"social-links\">\n <a href=\"#\">Twitter</a>\n <a href=\"#\">Facebook</a>\n <a href=\"#\">Instagram</a>\n </div>\n</footer>\n---style.css---\n:root {\n --primary-color: #4CAF50;\n --secondary-color: #2196F3;\n --background-color: #f5f5f5;\n --text-color: #333;\n --white: #fff;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n}\n\nheader {\n background-color: var(--primary-color);\n color: var(--white);\n padding: 1rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n}\n\nnav {\n display: flex;\n justify-content: center;\n gap: 1rem;\n margin-top: 1rem;\n}\n\nnav a {\n color: var(--white);\n text-decoration: none;\n font-weight: bold;\n}\n\nmain {\n padding: 2rem;\n}\n\nsection {\n margin-bottom: 2rem;\n}\n\nh2, h3 {\n color: var(--primary-color);\n}\n\n.cta-button {\n background-color: var(--secondary-color);\n color: var(--white);\n padding: 0.5rem 1rem;\n text-decoration: none;\n border-radius: 5px;\n display: inline-block;\n margin-top: 1rem;\n}\n\n.feature-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1rem;\n}\n\n.feature {\n background-color: var(--white);\n padding: 1rem;\n border-radius: 5px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\nform {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\ninput, textarea, button {\n padding: 0.5rem;\n border: 1px solid #ccc;\n border-radius: 5px;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: var(--white);\n border: none;\n cursor: pointer;\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\n#notesGrid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 1rem;\n}\n\nfooter {\n background-color: var(--primary-color);\n color: var(--white);\n text-align: center;\n padding: 1rem;\n margin-top: 2rem;\n}\n\n.social-links {\n display: flex;\n justify-content: center;\n gap: 1rem;\n}\n\n.social-links a {\n color: var(--white);\n text-decoration: none;\n}\n\n@media (max-width: 768px) {\n nav {\n flex-direction: column;\n align-items: center;\n }\n\n .feature-grid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const uploadForm = document.getElementById('uploadForm');\n const loginForm = document.getElementById('loginForm');\n const signupForm = document.getElementById('signupForm');\n const notesGrid = document.getElementById('notesGrid');\n\n uploadForm.addEventListener('submit', function(event) {\n event.preventDefault();\n const noteTitle = document.getElementById('noteTitle').value;\n const noteContent = document.getElementById('noteContent').value;\n const noteFile = document.getElementById('noteFile').files[0];\n\n if (noteTitle && noteContent) {\n const noteElement = document.createElement('div');\n noteElement.className = 'note';\n noteElement.innerHTML = `\n <h4>${noteTitle}</h4>\n <p>${noteContent}</p>\n `;\n notesGrid.appendChild(noteElement);\n uploadForm.reset();\n }\n });\n\n loginForm.addEventListener('submit', function(event) {\n event.preventDefault();\n const email = document.getElementById('loginEmail').value;\n const password = document.getElementById('loginPassword').value;\n\n if (email && password) {\n alert('Login successful!');\n loginForm.reset();\n }\n });\n\n signupForm.addEventListener('submit', function(event) {\n event.preventDefault();\n const name = document.getElementById('signupName').value;\n const email = document.getElementById('signupEmail').value;\n const password = document.getElementById('signupPassword').value;\n\n if (name && email && password) {\n alert('Sign up successful!');\n signupForm.reset();\n }\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 248, + "completion_tokens": 1744, + "total_tokens": 1992, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 248 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..42c514a --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# noteshare.scroll.pub +Website generated by DeepSeek from prompt: make an web application for notes sharing and user create account and upload notes \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..b86112e --- /dev/null +++ b/script.js @@ -0,0 +1,47 @@ +document.addEventListener('DOMContentLoaded', function() { + const uploadForm = document.getElementById('uploadForm'); + const loginForm = document.getElementById('loginForm'); + const signupForm = document.getElementById('signupForm'); + const notesGrid = document.getElementById('notesGrid'); + + uploadForm.addEventListener('submit', function(event) { + event.preventDefault(); + const noteTitle = document.getElementById('noteTitle').value; + const noteContent = document.getElementById('noteContent').value; + const noteFile = document.getElementById('noteFile').files[0]; + + if (noteTitle && noteContent) { + const noteElement = document.createElement('div'); + noteElement.className = 'note'; + noteElement.innerHTML = ` + <h4>${noteTitle}</h4> + <p>${noteContent}</p> + `; + notesGrid.appendChild(noteElement); + uploadForm.reset(); + } + }); + + loginForm.addEventListener('submit', function(event) { + event.preventDefault(); + const email = document.getElementById('loginEmail').value; + const password = document.getElementById('loginPassword').value; + + if (email && password) { + alert('Login successful!'); + loginForm.reset(); + } + }); + + signupForm.addEventListener('submit', function(event) { + event.preventDefault(); + const name = document.getElementById('signupName').value; + const email = document.getElementById('signupEmail').value; + const password = document.getElementById('signupPassword').value; + + if (name && email && password) { + alert('Sign up successful!'); + signupForm.reset(); + } + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..a1d6c30 --- /dev/null +++ b/style.css @@ -0,0 +1,133 @@ +:root { + --primary-color: #4CAF50; + --secondary-color: #2196F3; + --background-color: #f5f5f5; + --text-color: #333; + --white: #fff; +} + +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + margin: 0; + padding: 0; + background-color: var(--background-color); + color: var(--text-color); +} + +header { + background-color: var(--primary-color); + color: var(--white); + padding: 1rem; + text-align: center; +} + +header h1 { + margin: 0; +} + +nav { + display: flex; + justify-content: center; + gap: 1rem; + margin-top: 1rem; +} + +nav a { + color: var(--white); + text-decoration: none; + font-weight: bold; +} + +main { + padding: 2rem; +} + +section { + margin-bottom: 2rem; +} + +h2, h3 { + color: var(--primary-color); +} + +.cta-button { + background-color: var(--secondary-color); + color: var(--white); + padding: 0.5rem 1rem; + text-decoration: none; + border-radius: 5px; + display: inline-block; + margin-top: 1rem; +} + +.feature-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 1rem; +} + +.feature { + background-color: var(--white); + padding: 1rem; + border-radius: 5px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +form { + display: flex; + flex-direction: column; + gap: 1rem; +} + +input, textarea, button { + padding: 0.5rem; + border: 1px solid #ccc; + border-radius: 5px; +} + +button { + background-color: var(--primary-color); + color: var(--white); + border: none; + cursor: pointer; +} + +button:hover { + background-color: var(--secondary-color); +} + +#notesGrid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 1rem; +} + +footer { + background-color: var(--primary-color); + color: var(--white); + text-align: center; + padding: 1rem; + margin-top: 2rem; +} + +.social-links { + display: flex; + justify-content: center; + gap: 1rem; +} + +.social-links a { + color: var(--white); + text-decoration: none; +} + +@media (max-width: 768px) { + nav { + flex-direction: column; + align-items: center; + } + + .feature-grid { + grid-template-columns: 1fr; + } +} \ No newline at end of file