Changes to search.scroll.pub

ScrollHub
ScrollHub
8 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://search.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Scroll Search
+ style.css
+ header
+ class hero
+ div
+ class hero-content
+ h1 Scroll Search
+ p A beautiful, minimalist search experience
+ main
+ section
+ class search-section
+ div
+ class search-container
+ form
+ id search-form
+ div
+ class search-box
+ input
+ type text
+ id search-input
+ placeholder Search the web...
+ aria-label Search input
+ button
+ type submit
+ id search-button
+ aria-label Search
+ div 🔍
+ class search-icon
+ div
+ class search-suggestions
+ id suggestions
+ section
+ class results-section
+ div
+ class results-container
+ id results
+ footer
+ div
+ class footer-content
+ p A simple search engine built with Scroll
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "a71fe667-1522-4407-80fd-67772a91bee3",
+ "object": "chat.completion",
+ "created": 1749330374,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "I'll create a beautiful, minimalist search engine website using Scroll. For the domain, I suggest:\n\n---domain---\nsearch.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://search.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Scroll Search\nstyle.css\nheader\n class hero\n div\n class hero-content\n h1 Scroll Search\n p A beautiful, minimalist search experience\nmain\n section\n class search-section\n div\n class search-container\n form\n id search-form\n div\n class search-box\n input\n type text\n id search-input\n placeholder Search the web...\n aria-label Search input\n button\n type submit\n id search-button\n aria-label Search\n div 🔍\n class search-icon\n div\n class search-suggestions\n id suggestions\n section\n class results-section\n div\n class results-container\n id results\nfooter\n div\n class footer-content\n p A simple search engine built with Scroll\nscript.js\n---style.css---\n:root {\n --primary: #4285f4;\n --secondary: #34a853;\n --accent: #ea4335;\n --light: #f8f9fa;\n --dark: #202124;\n --gray: #5f6368;\n --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;\n}\n\nbody {\n background-color: var(--light);\n color: var(--dark);\n line-height: 1.6;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader.hero {\n background: linear-gradient(135deg, var(--primary), var(--secondary));\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n box-shadow: var(--shadow);\n}\n\n.hero-content {\n max-width: 800px;\n margin: 0 auto;\n}\n\n.hero-content h1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n font-weight: 500;\n}\n\n.hero-content p {\n font-size: 1.1rem;\n opacity: 0.9;\n}\n\nmain {\n flex: 1;\n padding: 2rem 1rem;\n}\n\n.search-section {\n max-width: 800px;\n margin: 0 auto 3rem;\n}\n\n.search-container {\n background: white;\n border-radius: 8px;\n box-shadow: var(--shadow);\n padding: 1.5rem;\n}\n\n.search-box {\n display: flex;\n border: 1px solid #dfe1e5;\n border-radius: 24px;\n overflow: hidden;\n transition: box-shadow 0.3s;\n}\n\n.search-box:hover, .search-box:focus-within {\n box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);\n}\n\n#search-input {\n flex: 1;\n border: none;\n padding: 0.8rem 1.2rem;\n font-size: 1rem;\n outline: none;\n}\n\n#search-button {\n background: none;\n border: none;\n padding: 0 1.2rem;\n cursor: pointer;\n color: var(--gray);\n transition: color 0.2s;\n}\n\n#search-button:hover {\n color: var(--primary);\n}\n\n.search-icon {\n font-size: 1.2rem;\n}\n\n.search-suggestions {\n margin-top: 1rem;\n display: none;\n}\n\n.results-container {\n max-width: 800px;\n margin: 0 auto;\n}\n\n.result-card {\n background: white;\n border-radius: 8px;\n padding: 1.5rem;\n margin-bottom: 1rem;\n box-shadow: var(--shadow);\n transition: transform 0.2s;\n}\n\n.result-card:hover {\n transform: translateY(-2px);\n}\n\n.result-title {\n color: var(--primary);\n font-size: 1.2rem;\n margin-bottom: 0.5rem;\n text-decoration: none;\n display: inline-block;\n}\n\n.result-url {\n color: var(--secondary);\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n display: block;\n}\n\n.result-snippet {\n color: var(--gray);\n}\n\nfooter {\n background: var(--dark);\n color: white;\n text-align: center;\n padding: 1.5rem;\n}\n\n.footer-content {\n max-width: 800px;\n margin: 0 auto;\n}\n\n@media (max-width: 600px) {\n .hero-content h1 {\n font-size: 2rem;\n }\n \n .search-box {\n flex-direction: column;\n border-radius: 8px;\n }\n \n #search-input {\n padding: 1rem;\n }\n \n #search-button {\n padding: 0.5rem;\n border-top: 1px solid #dfe1e5;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const searchForm = document.getElementById('search-form');\n const searchInput = document.getElementById('search-input');\n const suggestions = document.getElementById('suggestions');\n const results = document.getElementById('results');\n \n // Sample search function\n searchForm.addEventListener('submit', function(e) {\n e.preventDefault();\n const query = searchInput.value.trim();\n if (query) {\n performSearch(query);\n }\n });\n \n // Search input event listeners\n searchInput.addEventListener('input', function() {\n const query = searchInput.value.trim();\n if (query.length > 2) {\n showSuggestions(query);\n } else {\n suggestions.style.display = 'none';\n }\n });\n \n // Sample search function\n function performSearch(query) {\n // In a real app, this would fetch from a search API\n results.innerHTML = '';\n suggestions.style.display = 'none';\n \n // Sample results\n const sampleResults = [\n {\n title: \"Scroll Documentation\",\n url: \"https://scroll.pub/docs\",\n snippet: \"Official documentation for the Scroll markup language. Learn how to write beautiful documents with Scroll's simple syntax.\"\n },\n {\n title: \"Getting Started with Scroll\",\n url: \"https://scroll.pub/tutorial\",\n snippet: \"A beginner's guide to using Scroll. Learn the basics of the syntax and how to create your first document.\"\n },\n {\n title: \"Scroll GitHub Repository\",\n url: \"https://github.com/breck7/scroll\",\n snippet: \"The official GitHub repository for Scroll. Contribute to the project or report issues.\"\n }\n ];\n \n // Display results\n sampleResults.forEach(result => {\n const card = document.createElement('div');\n card.className = 'result-card';\n card.innerHTML = `\n ${result.title}\n ${result.url}\n

${result.snippet}

\n `;\n results.appendChild(card);\n });\n }\n \n // Sample suggestions\n function showSuggestions(query) {\n // In a real app, this would fetch suggestions from an API\n const sampleSuggestions = [\n \"scroll documentation\",\n \"scroll tutorial\",\n \"scroll examples\",\n \"scroll syntax\",\n \"scroll github\"\n ];\n \n suggestions.innerHTML = '';\n sampleSuggestions\n .filter(s => s.includes(query.toLowerCase()))\n .forEach(suggestion => {\n const div = document.createElement('div');\n div.className = 'suggestion-item';\n div.textContent = suggestion;\n div.addEventListener('click', function() {\n searchInput.value = suggestion;\n performSearch(suggestion);\n });\n suggestions.appendChild(div);\n });\n \n suggestions.style.display = 'block';\n }\n \n // Close suggestions when clicking outside\n document.addEventListener('click', function(e) {\n if (!searchForm.contains(e.target)) {\n suggestions.style.display = 'none';\n }\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 718,
+ "completion_tokens": 1829,
+ "total_tokens": 2547,
+ "prompt_tokens_details": {
+ "cached_tokens": 0
+ },
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 718
+ },
+ "system_fingerprint": "fp_8802369eaa_prod0425fp8"
+ }
readme.scroll
Changed around line 1
+ # search.scroll.pub
+
+ Prompt: website
+ Agent: deepseek
+ Model: deepseek-chat
+
+ ## User prompt
+ search engine
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "search engine"
+
+ Requirements:
+ - Use only Scroll, CSS, and JavaScript (NO frameworks, NO external dependencies)
+ - Create clean, semantic HTML5
+ - Make it mobile-responsive
+ - Follow modern best practices and accessibility guidelines
+ - Keep it simple but professional
+ - Use only relative links and no external resources
+ - Do not put a copyright symbol or all rights reserved in the footer.
+ - Make it beautiful. Dazzling. Advanced used of CSS.
+
+ As a refresher, for doing the html body, Scroll is a whitespace based language that uses a single indented space to mark a line (aka particle) as a subparticle of a parent line.
+
+ For example:
+
+ header
+ class hero
+ nav
+ div Scroll
+ class logo
+ div
+ class nav-links
+ a Features
+ href #features
+ a Examples
+ href #examples
+ a Edit
+ href edit.html
+ a GitHub
+ class cta-button
+ href https://github.com/breck7/scroll
+ div
+ class hero-content
+ h1 Write Better with Scroll
+ p The extendible markup language that makes source beautiful and compiles to anything
+ a Get Started
+ class primary-button
+ href https://hub.scroll.pub/
+ main
+ section
+ id features
+ class features
+ h2 Why Scroll?
+ div
+ class feature-grid
+ div
+ class feature-card
+ div ⚡
+ class feature-icon
+ h3 Simple Syntax
+ p Like Markdown, but more powerful. No parentheses needed.
+ div
+ class feature-card
+ div 🧩
+ class feature-icon
+ h3 Extendible
+ p Build your own custom parsers.
+ div
+ class feature-card
+ div 🎨
+ class feature-icon
+ h3 Beautiful Output
+ p Create stunning documents with minimal effort.
+ div
+ class feature-card
+ div 🚀
+ class feature-icon
+ h3 Fast & Light
+ p Built on the efficient PPS Stack.
+ section
+ id examples
+ class code-demo
+ h2 See It In Action
+ div
+ class code-container
+ pre
+ class code-example
+ div
+ class code-output
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a Documentation
+ href https://scroll.pub/tutorial.html
+ a Community
+ href https://www.reddit.com/r/WorldWideScroll/
+ a Blog
+ href https://scroll.pub/blog
+ p Started by Breck Yunits. Evolved by a community.
+ https://twitter.com/breckyunits Breck Yunits
+ https://github.com/breck7/scroll/graphs/contributors community
+
+
+ First suggest a short, memorable domain name ending in scroll.pub that represents this website. Then provide the website files. Use this exact format:
+
+ ---domain---
+ (domainscroll.pub here)
+ ---index.scroll---
+ buildHtml
+ baseUrl https://(domainscroll.pub here)
+ metaTags
+ editButton /edit.html
+ title (Title here)
+ style.css
+
+ (body content here. no blank lines please.)
+
+ script.js
+ ---style.css---
+ (CSS content here)
+ ---script.js---
+ (JavaScript content here)
+ ---end---
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', function() {
+ const searchForm = document.getElementById('search-form');
+ const searchInput = document.getElementById('search-input');
+ const suggestions = document.getElementById('suggestions');
+ const results = document.getElementById('results');
+
+ // Sample search function
+ searchForm.addEventListener('submit', function(e) {
+ e.preventDefault();
+ const query = searchInput.value.trim();
+ if (query) {
+ performSearch(query);
+ }
+ });
+
+ // Search input event listeners
+ searchInput.addEventListener('input', function() {
+ const query = searchInput.value.trim();
+ if (query.length > 2) {
+ showSuggestions(query);
+ } else {
+ suggestions.style.display = 'none';
+ }
+ });
+
+ // Sample search function
+ function performSearch(query) {
+ // In a real app, this would fetch from a search API
+ results.innerHTML = '';
+ suggestions.style.display = 'none';
+
+ // Sample results
+ const sampleResults = [
+ {
+ title: "Scroll Documentation",
+ url: "https://scroll.pub/docs",
+ snippet: "Official documentation for the Scroll markup language. Learn how to write beautiful documents with Scroll's simple syntax."
+ },
+ {
+ title: "Getting Started with Scroll",
+ url: "https://scroll.pub/tutorial",
+ snippet: "A beginner's guide to using Scroll. Learn the basics of the syntax and how to create your first document."
+ },
+ {
+ title: "Scroll GitHub Repository",
+ url: "https://github.com/breck7/scroll",
+ snippet: "The official GitHub repository for Scroll. Contribute to the project or report issues."
+ }
+ ];
+
+ // Display results
+ sampleResults.forEach(result => {
+ const card = document.createElement('div');
+ card.className = 'result-card';
+ card.innerHTML = `
+ ${result.url}
+

${result.snippet}

+ `;
+ results.appendChild(card);
+ });
+ }
+
+ // Sample suggestions
+ function showSuggestions(query) {
+ // In a real app, this would fetch suggestions from an API
+ const sampleSuggestions = [
+ "scroll documentation",
+ "scroll tutorial",
+ "scroll examples",
+ "scroll syntax",
+ "scroll github"
+ ];
+
+ suggestions.innerHTML = '';
+ sampleSuggestions
+ .filter(s => s.includes(query.toLowerCase()))
+ .forEach(suggestion => {
+ const div = document.createElement('div');
+ div.className = 'suggestion-item';
+ div.textContent = suggestion;
+ div.addEventListener('click', function() {
+ searchInput.value = suggestion;
+ performSearch(suggestion);
+ });
+ suggestions.appendChild(div);
+ });
+
+ suggestions.style.display = 'block';
+ }
+
+ // Close suggestions when clicking outside
+ document.addEventListener('click', function(e) {
+ if (!searchForm.contains(e.target)) {
+ suggestions.style.display = 'none';
+ }
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #4285f4;
+ --secondary: #34a853;
+ --accent: #ea4335;
+ --light: #f8f9fa;
+ --dark: #202124;
+ --gray: #5f6368;
+ --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
+ }
+
+ body {
+ background-color: var(--light);
+ color: var(--dark);
+ line-height: 1.6;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ header.hero {
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
+ color: white;
+ padding: 2rem 1rem;
+ text-align: center;
+ box-shadow: var(--shadow);
+ }
+
+ .hero-content {
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ .hero-content h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+ font-weight: 500;
+ }
+
+ .hero-content p {
+ font-size: 1.1rem;
+ opacity: 0.9;
+ }
+
+ main {
+ flex: 1;
+ padding: 2rem 1rem;
+ }
+
+ .search-section {
+ max-width: 800px;
+ margin: 0 auto 3rem;
+ }
+
+ .search-container {
+ background: white;
+ border-radius: 8px;
+ box-shadow: var(--shadow);
+ padding: 1.5rem;
+ }
+
+ .search-box {
+ display: flex;
+ border: 1px solid #dfe1e5;
+ border-radius: 24px;
+ overflow: hidden;
+ transition: box-shadow 0.3s;
+ }
+
+ .search-box:hover, .search-box:focus-within {
+ box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
+ }
+
+ #search-input {
+ flex: 1;
+ border: none;
+ padding: 0.8rem 1.2rem;
+ font-size: 1rem;
+ outline: none;
+ }
+
+ #search-button {
+ background: none;
+ border: none;
+ padding: 0 1.2rem;
+ cursor: pointer;
+ color: var(--gray);
+ transition: color 0.2s;
+ }
+
+ #search-button:hover {
+ color: var(--primary);
+ }
+
+ .search-icon {
+ font-size: 1.2rem;
+ }
+
+ .search-suggestions {
+ margin-top: 1rem;
+ display: none;
+ }
+
+ .results-container {
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ .result-card {
+ background: white;
+ border-radius: 8px;
+ padding: 1.5rem;
+ margin-bottom: 1rem;
+ box-shadow: var(--shadow);
+ transition: transform 0.2s;
+ }
+
+ .result-card:hover {
+ transform: translateY(-2px);
+ }
+
+ .result-title {
+ color: var(--primary);
+ font-size: 1.2rem;
+ margin-bottom: 0.5rem;
+ text-decoration: none;
+ display: inline-block;
+ }
+
+ .result-url {
+ color: var(--secondary);
+ font-size: 0.9rem;
+ margin-bottom: 0.5rem;
+ display: block;
+ }
+
+ .result-snippet {
+ color: var(--gray);
+ }
+
+ footer {
+ background: var(--dark);
+ color: white;
+ text-align: center;
+ padding: 1.5rem;
+ }
+
+ .footer-content {
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ @media (max-width: 600px) {
+ .hero-content h1 {
+ font-size: 2rem;
+ }
+
+ .search-box {
+ flex-direction: column;
+ border-radius: 8px;
+ }
+
+ #search-input {
+ padding: 1rem;
+ }
+
+ #search-button {
+ padding: 0.5rem;
+ border-top: 1px solid #dfe1e5;
+ }
+ }