commit 655d17f22d0cfcd825b35e3b8590a31fb8368ae7
Author: root <root@hub.scroll.pub> Date: 2024-12-27 23:11:36 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..b43227c --- /dev/null +++ b/body.html @@ -0,0 +1,49 @@ +<header class="top-bar"> + <nav> + <ul> + <li><a href="#about">About</a></li> + <li><a href="#blog">Blog</a></li> + <li><a href="#resume">Resume</a></li> + <li><a href="#contact">Contact</a></li> + </ul> + </nav> +</header> + +<main> + <section id="about" class="section"> + <h1>About Me</h1> + <p>Hello! I'm Jordan, a passionate writer and web developer. This is my personal space to share my thoughts, projects, and professional journey.</p> + </section> + + <section id="blog" class="section"> + <h1>Blog</h1> + <div id="blog-posts"> + <!-- Blog posts will be dynamically inserted here --> + </div> + <a href="/admin.html" class="admin-link">Admin: Write New Post</a> + </section> + + <section id="resume" class="section"> + <h1>Resume</h1> + <p>Download my resume: <a href="/resume.pdf" download>Resume.pdf</a></p> + </section> + + <section id="contact" class="section"> + <h1>Contact</h1> + <form id="contact-form"> + <input type="text" id="name" placeholder="Your Name" required> + <input type="email" id="email" placeholder="Your Email" required> + <textarea id="message" placeholder="Your Message" required></textarea> + <button type="submit">Send Message</button> + </form> + </section> +</main> + +<footer> + <p>Connect with me on social media:</p> + <ul class="social-links"> + <li><a href="#">Twitter</a></li> + <li><a href="#">LinkedIn</a></li> + <li><a href="#">GitHub</a></li> + </ul> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..0e82b1a --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://jordanwrites.scroll.pub +metaTags +editButton /edit.html +title Jordan Writes - Personal Website +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..f4dd52e --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "5e0cba49-02b4-4b95-8a2c-e05e0a93ced0", + "object": "chat.completion", + "created": 1735341077, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\njordanwrites.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://jordanwrites.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Jordan Writes - Personal Website\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header class=\"top-bar\">\n <nav>\n <ul>\n <li><a href=\"#about\">About</a></li>\n <li><a href=\"#blog\">Blog</a></li>\n <li><a href=\"#resume\">Resume</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"about\" class=\"section\">\n <h1>About Me</h1>\n <p>Hello! I'm Jordan, a passionate writer and web developer. This is my personal space to share my thoughts, projects, and professional journey.</p>\n </section>\n\n <section id=\"blog\" class=\"section\">\n <h1>Blog</h1>\n <div id=\"blog-posts\">\n <!-- Blog posts will be dynamically inserted here -->\n </div>\n <a href=\"/admin.html\" class=\"admin-link\">Admin: Write New Post</a>\n </section>\n\n <section id=\"resume\" class=\"section\">\n <h1>Resume</h1>\n <p>Download my resume: <a href=\"/resume.pdf\" download>Resume.pdf</a></p>\n </section>\n\n <section id=\"contact\" class=\"section\">\n <h1>Contact</h1>\n <form id=\"contact-form\">\n <input type=\"text\" id=\"name\" placeholder=\"Your Name\" required>\n <input type=\"email\" id=\"email\" placeholder=\"Your Email\" required>\n <textarea id=\"message\" placeholder=\"Your Message\" required></textarea>\n <button type=\"submit\">Send Message</button>\n </form>\n </section>\n</main>\n\n<footer>\n <p>Connect with me on social media:</p>\n <ul class=\"social-links\">\n <li><a href=\"#\">Twitter</a></li>\n <li><a href=\"#\">LinkedIn</a></li>\n <li><a href=\"#\">GitHub</a></li>\n </ul>\n</footer>\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --background-color: #f5f5f5;\n --text-color: #333;\n --link-color: #2980b9;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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\n.top-bar {\n background-color: var(--primary-color);\n color: white;\n padding: 1rem;\n position: sticky;\n top: 0;\n z-index: 1000;\n}\n\n.top-bar nav ul {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n justify-content: space-around;\n}\n\n.top-bar nav ul li a {\n color: white;\n text-decoration: none;\n font-weight: bold;\n transition: color 0.3s ease;\n}\n\n.top-bar nav ul li a:hover {\n color: var(--secondary-color);\n}\n\n.section {\n padding: 2rem;\n margin: 1rem;\n background-color: white;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\nh1 {\n color: var(--primary-color);\n margin-bottom: 1rem;\n}\n\n#contact-form {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\n#contact-form input,\n#contact-form textarea {\n padding: 0.5rem;\n border: 1px solid #ddd;\n border-radius: 4px;\n}\n\n#contact-form button {\n background-color: var(--secondary-color);\n color: white;\n padding: 0.5rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\n#contact-form button:hover {\n background-color: var(--primary-color);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n}\n\n.social-links {\n list-style: none;\n padding: 0;\n display: flex;\n justify-content: center;\n gap: 1rem;\n}\n\n.social-links a {\n color: white;\n text-decoration: none;\n transition: color 0.3s ease;\n}\n\n.social-links a:hover {\n color: var(--secondary-color);\n}\n\n@media (max-width: 768px) {\n .top-bar nav ul {\n flex-direction: column;\n align-items: center;\n }\n\n .section {\n margin: 0.5rem;\n padding: 1rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Smooth scrolling for anchor links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function(e) {\n e.preventDefault();\n document.querySelector(this.getAttribute('href')).scrollIntoView({\n behavior: 'smooth'\n });\n });\n });\n\n // Form submission handling\n const contactForm = document.getElementById('contact-form');\n if (contactForm) {\n contactForm.addEventListener('submit', function(e) {\n e.preventDefault();\n const formData = new FormData(this);\n // Here you would typically send the form data to a server\n alert('Thank you for your message!');\n this.reset();\n });\n }\n\n // Load blog posts (this would typically be replaced with actual data fetching)\n const blogPosts = [\n { title: 'My First Blog Post', content: 'This is the content of my first blog post.' },\n { title: 'Web Development Tips', content: 'Here are some tips for modern web development.' }\n ];\n\n const blogPostsContainer = document.getElementById('blog-posts');\n if (blogPostsContainer) {\n blogPosts.forEach(post => {\n const postElement = document.createElement('article');\n postElement.innerHTML = `\n <h2>${post.title}</h2>\n <p>${post.content}</p>\n `;\n blogPostsContainer.appendChild(postElement);\n });\n }\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 267, + "completion_tokens": 1466, + "total_tokens": 1733, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 267 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..56dbfeb --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# jordanwrites.scroll.pub +Website generated by DeepSeek from prompt: I want to create a personal website with a top bar that has pages for about, contact, a page for me to write and post blog as an adminand resume \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..af0d7b2 --- /dev/null +++ b/script.js @@ -0,0 +1,41 @@ +document.addEventListener('DOMContentLoaded', function() { + // Smooth scrolling for anchor links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function(e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); + + // Form submission handling + const contactForm = document.getElementById('contact-form'); + if (contactForm) { + contactForm.addEventListener('submit', function(e) { + e.preventDefault(); + const formData = new FormData(this); + // Here you would typically send the form data to a server + alert('Thank you for your message!'); + this.reset(); + }); + } + + // Load blog posts (this would typically be replaced with actual data fetching) + const blogPosts = [ + { title: 'My First Blog Post', content: 'This is the content of my first blog post.' }, + { title: 'Web Development Tips', content: 'Here are some tips for modern web development.' } + ]; + + const blogPostsContainer = document.getElementById('blog-posts'); + if (blogPostsContainer) { + blogPosts.forEach(post => { + const postElement = document.createElement('article'); + postElement.innerHTML = ` + <h2>${post.title}</h2> + <p>${post.content}</p> + `; + blogPostsContainer.appendChild(postElement); + }); + } +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..886af24 --- /dev/null +++ b/style.css @@ -0,0 +1,121 @@ +:root { + --primary-color: #2c3e50; + --secondary-color: #3498db; + --background-color: #f5f5f5; + --text-color: #333; + --link-color: #2980b9; +} + +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + line-height: 1.6; + margin: 0; + padding: 0; + background-color: var(--background-color); + color: var(--text-color); +} + +.top-bar { + background-color: var(--primary-color); + color: white; + padding: 1rem; + position: sticky; + top: 0; + z-index: 1000; +} + +.top-bar nav ul { + list-style: none; + margin: 0; + padding: 0; + display: flex; + justify-content: space-around; +} + +.top-bar nav ul li a { + color: white; + text-decoration: none; + font-weight: bold; + transition: color 0.3s ease; +} + +.top-bar nav ul li a:hover { + color: var(--secondary-color); +} + +.section { + padding: 2rem; + margin: 1rem; + background-color: white; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +h1 { + color: var(--primary-color); + margin-bottom: 1rem; +} + +#contact-form { + display: flex; + flex-direction: column; + gap: 1rem; +} + +#contact-form input, +#contact-form textarea { + padding: 0.5rem; + border: 1px solid #ddd; + border-radius: 4px; +} + +#contact-form button { + background-color: var(--secondary-color); + color: white; + padding: 0.5rem; + border: none; + border-radius: 4px; + cursor: pointer; + transition: background-color 0.3s ease; +} + +#contact-form button:hover { + background-color: var(--primary-color); +} + +footer { + text-align: center; + padding: 1rem; + background-color: var(--primary-color); + color: white; +} + +.social-links { + list-style: none; + padding: 0; + display: flex; + justify-content: center; + gap: 1rem; +} + +.social-links a { + color: white; + text-decoration: none; + transition: color 0.3s ease; +} + +.social-links a:hover { + color: var(--secondary-color); +} + +@media (max-width: 768px) { + .top-bar nav ul { + flex-direction: column; + align-items: center; + } + + .section { + margin: 0.5rem; + padding: 1rem; + } +} \ No newline at end of file