commit 4f73c5fdaac0d854ddffdbca2a6982f45396d3d7
Author: root <root@hub.scroll.pub> Date: 2024-12-27 23:13:04 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..0b21b3f --- /dev/null +++ b/body.html @@ -0,0 +1,25 @@ +<header> + <nav> + <a href="/">Home</a> + <a href="/about">About</a> + <a href="/blog">Blog</a> + <a href="/resume">Resume</a> + <a href="/contact">Contact</a> + </nav> +</header> + +<main> + <section id="intro"> + <h1>Welcome to My Thoughts</h1> + <p>Exploring ideas, sharing insights, and documenting my journey.</p> + </section> + + <section id="recent-posts"> + <h2>Recent Posts</h2> + <div id="posts-container"></div> + </section> +</main> + +<footer> + <p>Connect with me on <a href="/contact">Contact</a></p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..3be07ce --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://thoughts.scroll.pub +metaTags +editButton /edit.html +title Thoughts by [Your Name] +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..55ff36e --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "c747fb5f-22a5-4ae9-9822-64cb370882b6", + "object": "chat.completion", + "created": 1735341173, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nthoughts.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://thoughts.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Thoughts by [Your Name]\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <nav>\n <a href=\"/\">Home</a>\n <a href=\"/about\">About</a>\n <a href=\"/blog\">Blog</a>\n <a href=\"/resume\">Resume</a>\n <a href=\"/contact\">Contact</a>\n </nav>\n</header>\n\n<main>\n <section id=\"intro\">\n <h1>Welcome to My Thoughts</h1>\n <p>Exploring ideas, sharing insights, and documenting my journey.</p>\n </section>\n\n <section id=\"recent-posts\">\n <h2>Recent Posts</h2>\n <div id=\"posts-container\"></div>\n </section>\n</main>\n\n<footer>\n <p>Connect with me on <a href=\"/contact\">Contact</a></p>\n</footer>\n---style.css---\n:root {\n --primary-color: #1a1a1a;\n --secondary-color: #333;\n --accent-color: #0077cc;\n --text-color: #f5f5f5;\n --background-color: #ffffff;\n --font-family: 'Georgia', serif;\n}\n\nbody {\n font-family: var(--font-family);\n color: var(--primary-color);\n background-color: var(--background-color);\n margin: 0;\n padding: 0;\n line-height: 1.6;\n}\n\nheader {\n background-color: var(--primary-color);\n color: var(--text-color);\n padding: 1rem 0;\n text-align: center;\n}\n\nheader nav {\n display: flex;\n justify-content: center;\n gap: 1rem;\n}\n\nheader nav a {\n color: var(--text-color);\n text-decoration: none;\n font-weight: bold;\n}\n\nheader nav a:hover {\n color: var(--accent-color);\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\nh1, h2 {\n color: var(--secondary-color);\n}\n\n#intro {\n text-align: center;\n margin-bottom: 2rem;\n}\n\n#recent-posts {\n margin-top: 2rem;\n}\n\n#posts-container {\n display: grid;\n gap: 1rem;\n}\n\nfooter {\n text-align: center;\n padding: 1rem 0;\n background-color: var(--primary-color);\n color: var(--text-color);\n margin-top: 2rem;\n}\n\nfooter a {\n color: var(--accent-color);\n text-decoration: none;\n}\n\n@media (max-width: 600px) {\n header nav {\n flex-direction: column;\n gap: 0.5rem;\n }\n\n main {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Example function to load recent posts\n const postsContainer = document.getElementById('posts-container');\n const posts = [\n { title: 'First Post', date: '2023-10-01', link: '/blog/first-post' },\n { title: 'Second Post', date: '2023-10-05', link: '/blog/second-post' }\n ];\n\n posts.forEach(post => {\n const postElement = document.createElement('div');\n postElement.innerHTML = `\n <h3><a href=\"${post.link}\">${post.title}</a></h3>\n <p>${post.date}</p>\n `;\n postsContainer.appendChild(postElement);\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 282, + "completion_tokens": 814, + "total_tokens": 1096, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 282 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..1925685 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# thoughts.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, and a page for me to write and post blogs as an admin and a resume page. It will be similar to paul graham's website \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..fe0fca7 --- /dev/null +++ b/script.js @@ -0,0 +1,17 @@ +document.addEventListener('DOMContentLoaded', function() { + // Example function to load recent posts + const postsContainer = document.getElementById('posts-container'); + const posts = [ + { title: 'First Post', date: '2023-10-01', link: '/blog/first-post' }, + { title: 'Second Post', date: '2023-10-05', link: '/blog/second-post' } + ]; + + posts.forEach(post => { + const postElement = document.createElement('div'); + postElement.innerHTML = ` + <h3><a href="${post.link}">${post.title}</a></h3> + <p>${post.date}</p> + `; + postsContainer.appendChild(postElement); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..0dfe1cd --- /dev/null +++ b/style.css @@ -0,0 +1,88 @@ +:root { + --primary-color: #1a1a1a; + --secondary-color: #333; + --accent-color: #0077cc; + --text-color: #f5f5f5; + --background-color: #ffffff; + --font-family: 'Georgia', serif; +} + +body { + font-family: var(--font-family); + color: var(--primary-color); + background-color: var(--background-color); + margin: 0; + padding: 0; + line-height: 1.6; +} + +header { + background-color: var(--primary-color); + color: var(--text-color); + padding: 1rem 0; + text-align: center; +} + +header nav { + display: flex; + justify-content: center; + gap: 1rem; +} + +header nav a { + color: var(--text-color); + text-decoration: none; + font-weight: bold; +} + +header nav a:hover { + color: var(--accent-color); +} + +main { + padding: 2rem; + max-width: 800px; + margin: 0 auto; +} + +h1, h2 { + color: var(--secondary-color); +} + +#intro { + text-align: center; + margin-bottom: 2rem; +} + +#recent-posts { + margin-top: 2rem; +} + +#posts-container { + display: grid; + gap: 1rem; +} + +footer { + text-align: center; + padding: 1rem 0; + background-color: var(--primary-color); + color: var(--text-color); + margin-top: 2rem; +} + +footer a { + color: var(--accent-color); + text-decoration: none; +} + +@media (max-width: 600px) { + header nav { + flex-direction: column; + gap: 0.5rem; + } + + main { + padding: 1rem; + } +} \ No newline at end of file