Changes to apiscroll.pub.scroll.pub

root
root
3 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://apiscroll.pub
+ metaTags
+ editButton /edit.html
+ title API Scroll | Test & Debug APIs
+ style.css
+ script.js
+
+ header
+ class hero
+ nav
+ div API Scroll
+ class logo
+ div
+ class nav-links
+ a Docs
+ href #docs
+ a Examples
+ href #examples
+ a Edit
+ href edit.html
+ div
+ class hero-content
+ h1 Test APIs with Elegance
+ p Send, receive and debug API calls with this beautiful interface
+ a Try Now
+ class primary-button
+ href #tester
+ main
+ section
+ id tester
+ class api-tester
+ h2 API Tester
+ div
+ class tester-container
+ div
+ class request-panel
+ div
+ class method-selector
+ select
+ id method
+ option GET
+ option POST
+ option PUT
+ option DELETE
+ option PATCH
+ input
+ id endpoint
+ type url
+ placeholder https://api.example.com/endpoint
+ div
+ class headers-section
+ h3 Headers
+ div
+ class headers-container
+ button
+ class add-header
+ + Add Header
+ div
+ class body-section
+ h3 Body
+ textarea
+ id request-body
+ placeholder {"key":"value"}
+ button
+ class send-button
+ Send Request
+ div
+ class response-panel
+ div
+ class status-bar
+ span Status:
+ span
+ id status-code
+ div
+ class response-headers
+ h3 Response Headers
+ pre
+ id response-headers
+ div
+ class response-body
+ h3 Response Body
+ pre
+ id response-body
+ section
+ id docs
+ class docs
+ h2 Documentation
+ div
+ class docs-grid
+ div
+ class docs-card
+ h3 Getting Started
+ p Simply enter your endpoint URL, select a method, add headers if needed, and hit Send.
+ div
+ class docs-card
+ h3 Request Body
+ p For POST/PUT/PATCH requests, enter your JSON body in the provided textarea.
+ div
+ class docs-card
+ h3 Headers
+ p Add custom headers like Authorization or Content-Type as needed.
+ div
+ class docs-card
+ h3 Response
+ p View status code, headers and formatted JSON response in the right panel.
+ section
+ id examples
+ class examples
+ h2 Example APIs
+ div
+ class examples-grid
+ div
+ class example-card
+ h3 JSONPlaceholder
+ p GET https://jsonplaceholder.typicode.com/todos/1
+ button
+ class example-button
+ data-endpoint https://jsonplaceholder.typicode.com/todos/1
+ Try It
+ div
+ class example-card
+ h3 Dog API
+ p GET https://dog.ceo/api/breeds/image/random
+ button
+ class example-button
+ data-endpoint https://dog.ceo/api/breeds/image/random
+ Try It
+ div
+ class example-card
+ h3 IP Geolocation
+ p GET https://ipapi.co/json/
+ button
+ class example-button
+ data-endpoint https://ipapi.co/json/
+ Try It
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a Documentation
+ href #docs
+ a Examples
+ href #examples
+ a Edit
+ href edit.html
+ p A beautiful way to test APIs.
prompt.json
Changed around line 1
+ {
+ "id": "bbcd469b-3b86-4080-b7c4-d07e757f28c9",
+ "object": "chat.completion",
+ "created": 1744811887,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "Here's my proposal for an API testing tool website:\n\n---domain---\napiscroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://apiscroll.pub\nmetaTags\neditButton /edit.html\ntitle API Scroll | Test & Debug APIs\nstyle.css\nscript.js\n\nheader\n class hero\n nav\n div API Scroll\n class logo\n div\n class nav-links\n a Docs\n href #docs\n a Examples\n href #examples\n a Edit\n href edit.html\n div\n class hero-content\n h1 Test APIs with Elegance\n p Send, receive and debug API calls with this beautiful interface\n a Try Now\n class primary-button\n href #tester\nmain\n section\n id tester\n class api-tester\n h2 API Tester\n div\n class tester-container\n div\n class request-panel\n div\n class method-selector\n select\n id method\n option GET\n option POST\n option PUT\n option DELETE\n option PATCH\n input\n id endpoint\n type url\n placeholder https://api.example.com/endpoint\n div\n class headers-section\n h3 Headers\n div\n class headers-container\n button\n class add-header\n + Add Header\n div\n class body-section\n h3 Body\n textarea\n id request-body\n placeholder {\"key\":\"value\"}\n button\n class send-button\n Send Request\n div\n class response-panel\n div\n class status-bar\n span Status:\n span\n id status-code\n div\n class response-headers\n h3 Response Headers\n pre\n id response-headers\n div\n class response-body\n h3 Response Body\n pre\n id response-body\n section\n id docs\n class docs\n h2 Documentation\n div\n class docs-grid\n div\n class docs-card\n h3 Getting Started\n p Simply enter your endpoint URL, select a method, add headers if needed, and hit Send.\n div\n class docs-card\n h3 Request Body\n p For POST/PUT/PATCH requests, enter your JSON body in the provided textarea.\n div\n class docs-card\n h3 Headers\n p Add custom headers like Authorization or Content-Type as needed.\n div\n class docs-card\n h3 Response\n p View status code, headers and formatted JSON response in the right panel.\n section\n id examples\n class examples\n h2 Example APIs\n div\n class examples-grid\n div\n class example-card\n h3 JSONPlaceholder\n p GET https://jsonplaceholder.typicode.com/todos/1\n button\n class example-button\n data-endpoint https://jsonplaceholder.typicode.com/todos/1\n Try It\n div\n class example-card\n h3 Dog API\n p GET https://dog.ceo/api/breeds/image/random\n button\n class example-button\n data-endpoint https://dog.ceo/api/breeds/image/random\n Try It\n div\n class example-card\n h3 IP Geolocation\n p GET https://ipapi.co/json/\n button\n class example-button\n data-endpoint https://ipapi.co/json/\n Try It\nfooter\n div\n class footer-content\n div\n class footer-links\n a Documentation\n href #docs\n a Examples\n href #examples\n a Edit\n href edit.html\n p A beautiful way to test APIs.\n\n---style.css---\n:root {\n --primary: #6366f1;\n --primary-dark: #4f46e5;\n --text: #1e293b;\n --text-light: #64748b;\n --bg: #f8fafc;\n --card-bg: #ffffff;\n --border: #e2e8f0;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;\n color: var(--text);\n background-color: var(--bg);\n line-height: 1.5;\n}\n\nheader.hero {\n background: linear-gradient(135deg, var(--primary), var(--primary-dark));\n color: white;\n padding: 2rem 1rem;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: 700;\n}\n\n.nav-links {\n display: flex;\n gap: 1.5rem;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n font-weight: 500;\n}\n\n.hero-content {\n max-width: 1200px;\n margin: 4rem auto 2rem;\n padding: 0 1rem;\n text-align: center;\n}\n\n.hero-content h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\n.hero-content p {\n font-size: 1.25rem;\n max-width: 700px;\n margin: 0 auto 2rem;\n opacity: 0.9;\n}\n\n.primary-button {\n display: inline-block;\n background: white;\n color: var(--primary);\n padding: 0.75rem 1.5rem;\n border-radius: 0.5rem;\n text-decoration: none;\n font-weight: 600;\n transition: all 0.2s;\n}\n\n.primary-button:hover {\n transform: translateY(-2px);\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nmain {\n max-width: 1200px;\n margin: 0 auto;\n padding: 2rem 1rem;\n}\n\nsection {\n margin-bottom: 4rem;\n}\n\nh2 {\n font-size: 2rem;\n margin-bottom: 2rem;\n text-align: center;\n}\n\n.api-tester {\n background: var(--card-bg);\n border-radius: 1rem;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);\n overflow: hidden;\n margin-top: -3rem;\n}\n\n.tester-container {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 1px;\n background: var(--border);\n}\n\n@media (max-width: 768px) {\n .tester-container {\n grid-template-columns: 1fr;\n }\n}\n\n.request-panel, .response-panel {\n background: var(--card-bg);\n padding: 1.5rem;\n}\n\n.method-selector {\n margin-bottom: 1rem;\n}\n\n.method-selector select {\n padding: 0.5rem;\n border-radius: 0.25rem;\n border: 1px solid var(--border);\n}\n\n#endpoint {\n width: 100%;\n padding: 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n margin-bottom: 1rem;\n font-family: monospace;\n}\n\n.headers-section, .body-section {\n margin-bottom: 1.5rem;\n}\n\n.headers-container {\n margin-top: 0.5rem;\n}\n\n.add-header {\n background: var(--primary);\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: 0.25rem;\n cursor: pointer;\n font-weight: 500;\n margin-bottom: 1rem;\n}\n\n#request-body {\n width: 100%;\n min-height: 150px;\n padding: 0.75rem;\n border: 1px solid var(--border);\n border-radius: 0.5rem;\n font-family: monospace;\n resize: vertical;\n}\n\n.send-button {\n background: var(--primary);\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 0.5rem;\n cursor: pointer;\n font-weight: 600;\n width: 100%;\n transition: background 0.2s;\n}\n\n.send-button:hover {\n background: var(--primary-dark);\n}\n\n.status-bar {\n display: flex;\n gap: 0.5rem;\n margin-bottom: 1rem;\n font-weight: 500;\n}\n\n#status-code {\n font-weight: 700;\n}\n\n#response-headers, #response-body {\n background: #f8f8f8;\n padding: 1rem;\n border-radius: 0.5rem;\n overflow-x: auto;\n font-family: monospace;\n white-space: pre-wrap;\n}\n\n.docs-grid, .examples-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 1.5rem;\n margin-top: 2rem;\n}\n\n.docs-card, .example-card {\n background: var(--card-bg);\n padding: 1.5rem;\n border-radius: 0.5rem;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.docs-card h3, .example-card h3 {\n margin-bottom: 0.5rem;\n color: var(--primary);\n}\n\n.docs-card p {\n color: var(--text-light);\n margin-bottom: 1rem;\n}\n\n.example-card p {\n font-family: monospace;\n background: #f8f8f8;\n padding: 0.5rem;\n border-radius: 0.25rem;\n margin-bottom: 1rem;\n overflow-x: auto;\n}\n\n.example-button {\n background: var(--primary);\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: 0.25rem;\n cursor: pointer;\n font-weight: 500;\n}\n\nfooter {\n background: var(--card-bg);\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.footer-links {\n display: flex;\n justify-content: center;\n gap: 2rem;\n margin-bottom: 1rem;\n}\n\n.footer-links a {\n color: var(--primary);\n text-decoration: none;\n font-weight: 500;\n}\n\nfooter p {\n color: var(--text-light);\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // DOM elements\n const sendButton = document.querySelector('.send-button');\n const methodSelect = document.getElementById('method');\n const endpointInput = document.getElementById('endpoint');\n const requestBody = document.getElementById('request-body');\n const statusCode = document.getElementById('status-code');\n const responseHeaders = document.getElementById('response-headers');\n const responseBody = document.getElementById('response-body');\n const headersContainer = document.querySelector('.headers-container');\n const addHeaderButton = document.querySelector('.add-header');\n const exampleButtons = document.querySelectorAll('.example-button');\n\n // Add header row\n function addHeaderRow(key = '', value = '') {\n const headerRow = document.createElement('div');\n headerRow.className = 'header-row';\n headerRow.innerHTML = `\n \n \n \n `;\n headersContainer.appendChild(headerRow);\n \n // Add remove header functionality\n headerRow.querySelector('.remove-header').addEventListener('click', function() {\n headerRow.remove();\n });\n }\n\n // Initialize with one empty header row\n addHeaderRow();\n\n // Add header button click handler\n addHeaderButton.addEventListener('click', function() {\n addHeaderRow();\n });\n\n // Example button click handlers\n exampleButtons.forEach(button => {\n button.addEventListener('click', function() {\n endpointInput.value = button.dataset.endpoint;\n methodSelect.value = 'GET';\n requestBody.value = '';\n \n // Clear headers and add one empty\n headersContainer.innerHTML = '';\n addHeaderRow();\n });\n });\n\n // Send request\n sendButton.addEventListener('click', async function() {\n const method = methodSelect.value;\n const endpoint = endpointInput.value.trim();\n \n if (!endpoint) {\n alert('Please enter an endpoint URL');\n return;\n }\n\n // Collect headers\n const headers = {};\n const headerRows = document.querySelectorAll('.header-row');\n headerRows.forEach(row => {\n const key = row.querySelector('.header-key').value.trim();\n const value = row.querySelector('.header-value').value.trim();\n if (key && value) {\n headers[key] = value;\n }\n });\n\n // Prepare request options\n const options = {\n method: method,\n headers: headers\n };\n\n // Add body for methods that typically have one\n if (['POST', 'PUT', 'PATCH'].includes(method) && requestBody.value.trim()) {\n try {\n JSON.parse(requestBody.value); // Validate JSON\n options.body = requestBody.value;\n if (!headers['Content-Type']) {\n options.headers['Content-Type'] = 'application/json';\n }\n } catch (e) {\n alert('Invalid JSON in request body');\n return;\n }\n }\n\n try {\n sendButton.disabled = true;\n sendButton.textContent = 'Sending...';\n \n const response = await fetch(endpoint, options);\n \n // Update status\n statusCode.textContent = `${response.status} ${response.statusText}`;\n statusCode.style.color = response.ok ? 'green' : 'red';\n \n // Update headers\n const headersObj = {};\n response.headers.forEach((value, key) => {\n headersObj[key] = value;\n });\n responseHeaders.textContent = JSON.stringify(headersObj, null, 2);\n \n // Update body\n try {\n const data = await response.json();\n responseBody.textContent = JSON.stringify(data, null, 2);\n } catch {\n const text = await response.text();\n responseBody.textContent = text;\n }\n } catch (error) {\n statusCode.textContent = 'Error';\n statusCode.style.color = 'red';\n responseHeaders.textContent = '';\n responseBody.textContent = error.message;\n } finally {\n sendButton.disabled = false;\n sendButton.textContent = 'Send Request';\n }\n });\n\n // Pretty print JSON when pasted into request body\n requestBody.addEventListener('paste', function(e) {\n setTimeout(() => {\n try {\n const json = JSON.parse(requestBody.value);\n requestBody.value = JSON.stringify(json, null, 2);\n } catch (e) {\n // Not JSON, leave as is\n }\n }, 10);\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 724,
+ "completion_tokens": 3375,
+ "total_tokens": 4099,
+ "prompt_tokens_details": {
+ "cached_tokens": 0
+ },
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 724
+ },
+ "system_fingerprint": "fp_3d5141a69a_prod0225"
+ }
readme.scroll
Changed around line 1
+ # apiscroll.pub.scroll.pub
+
+ Prompt: website
+ Agent: deepseek
+ Model: deepseek-chat
+
+ ## User prompt
+ A website to send and receive api calls
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "A website to send and receive api calls"
+
+ 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() {
+ // DOM elements
+ const sendButton = document.querySelector('.send-button');
+ const methodSelect = document.getElementById('method');
+ const endpointInput = document.getElementById('endpoint');
+ const requestBody = document.getElementById('request-body');
+ const statusCode = document.getElementById('status-code');
+ const responseHeaders = document.getElementById('response-headers');
+ const responseBody = document.getElementById('response-body');
+ const headersContainer = document.querySelector('.headers-container');
+ const addHeaderButton = document.querySelector('.add-header');
+ const exampleButtons = document.querySelectorAll('.example-button');
+
+ // Add header row
+ function addHeaderRow(key = '', value = '') {
+ const headerRow = document.createElement('div');
+ headerRow.className = 'header-row';
+ headerRow.innerHTML = `
+
+
+
+ `;
+ headersContainer.appendChild(headerRow);
+
+ // Add remove header functionality
+ headerRow.querySelector('.remove-header').addEventListener('click', function() {
+ headerRow.remove();
+ });
+ }
+
+ // Initialize with one empty header row
+ addHeaderRow();
+
+ // Add header button click handler
+ addHeaderButton.addEventListener('click', function() {
+ addHeaderRow();
+ });
+
+ // Example button click handlers
+ exampleButtons.forEach(button => {
+ button.addEventListener('click', function() {
+ endpointInput.value = button.dataset.endpoint;
+ methodSelect.value = 'GET';
+ requestBody.value = '';
+
+ // Clear headers and add one empty
+ headersContainer.innerHTML = '';
+ addHeaderRow();
+ });
+ });
+
+ // Send request
+ sendButton.addEventListener('click', async function() {
+ const method = methodSelect.value;
+ const endpoint = endpointInput.value.trim();
+
+ if (!endpoint) {
+ alert('Please enter an endpoint URL');
+ return;
+ }
+
+ // Collect headers
+ const headers = {};
+ const headerRows = document.querySelectorAll('.header-row');
+ headerRows.forEach(row => {
+ const key = row.querySelector('.header-key').value.trim();
+ const value = row.querySelector('.header-value').value.trim();
+ if (key && value) {
+ headers[key] = value;
+ }
+ });
+
+ // Prepare request options
+ const options = {
+ method: method,
+ headers: headers
+ };
+
+ // Add body for methods that typically have one
+ if (['POST', 'PUT', 'PATCH'].includes(method) && requestBody.value.trim()) {
+ try {
+ JSON.parse(requestBody.value); // Validate JSON
+ options.body = requestBody.value;
+ if (!headers['Content-Type']) {
+ options.headers['Content-Type'] = 'application/json';
+ }
+ } catch (e) {
+ alert('Invalid JSON in request body');
+ return;
+ }
+ }
+
+ try {
+ sendButton.disabled = true;
+ sendButton.textContent = 'Sending...';
+
+ const response = await fetch(endpoint, options);
+
+ // Update status
+ statusCode.textContent = `${response.status} ${response.statusText}`;
+ statusCode.style.color = response.ok ? 'green' : 'red';
+
+ // Update headers
+ const headersObj = {};
+ response.headers.forEach((value, key) => {
+ headersObj[key] = value;
+ });
+ responseHeaders.textContent = JSON.stringify(headersObj, null, 2);
+
+ // Update body
+ try {
+ const data = await response.json();
+ responseBody.textContent = JSON.stringify(data, null, 2);
+ } catch {
+ const text = await response.text();
+ responseBody.textContent = text;
+ }
+ } catch (error) {
+ statusCode.textContent = 'Error';
+ statusCode.style.color = 'red';
+ responseHeaders.textContent = '';
+ responseBody.textContent = error.message;
+ } finally {
+ sendButton.disabled = false;
+ sendButton.textContent = 'Send Request';
+ }
+ });
+
+ // Pretty print JSON when pasted into request body
+ requestBody.addEventListener('paste', function(e) {
+ setTimeout(() => {
+ try {
+ const json = JSON.parse(requestBody.value);
+ requestBody.value = JSON.stringify(json, null, 2);
+ } catch (e) {
+ // Not JSON, leave as is
+ }
+ }, 10);
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #6366f1;
+ --primary-dark: #4f46e5;
+ --text: #1e293b;
+ --text-light: #64748b;
+ --bg: #f8fafc;
+ --card-bg: #ffffff;
+ --border: #e2e8f0;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
+ color: var(--text);
+ background-color: var(--bg);
+ line-height: 1.5;
+ }
+
+ header.hero {
+ background: linear-gradient(135deg, var(--primary), var(--primary-dark));
+ color: white;
+ padding: 2rem 1rem;
+ }
+
+ nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 0 1rem;
+ }
+
+ .logo {
+ font-size: 1.5rem;
+ font-weight: 700;
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 1.5rem;
+ }
+
+ .nav-links a {
+ color: white;
+ text-decoration: none;
+ font-weight: 500;
+ }
+
+ .hero-content {
+ max-width: 1200px;
+ margin: 4rem auto 2rem;
+ padding: 0 1rem;
+ text-align: center;
+ }
+
+ .hero-content h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+ }
+
+ .hero-content p {
+ font-size: 1.25rem;
+ max-width: 700px;
+ margin: 0 auto 2rem;
+ opacity: 0.9;
+ }
+
+ .primary-button {
+ display: inline-block;
+ background: white;
+ color: var(--primary);
+ padding: 0.75rem 1.5rem;
+ border-radius: 0.5rem;
+ text-decoration: none;
+ font-weight: 600;
+ transition: all 0.2s;
+ }
+
+ .primary-button:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ }
+
+ main {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 2rem 1rem;
+ }
+
+ section {
+ margin-bottom: 4rem;
+ }
+
+ h2 {
+ font-size: 2rem;
+ margin-bottom: 2rem;
+ text-align: center;
+ }
+
+ .api-tester {
+ background: var(--card-bg);
+ border-radius: 1rem;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
+ overflow: hidden;
+ margin-top: -3rem;
+ }
+
+ .tester-container {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 1px;
+ background: var(--border);
+ }
+
+ @media (max-width: 768px) {
+ .tester-container {
+ grid-template-columns: 1fr;
+ }
+ }
+
+ .request-panel, .response-panel {
+ background: var(--card-bg);
+ padding: 1.5rem;
+ }
+
+ .method-selector {
+ margin-bottom: 1rem;
+ }
+
+ .method-selector select {
+ padding: 0.5rem;
+ border-radius: 0.25rem;
+ border: 1px solid var(--border);
+ }
+
+ #endpoint {
+ width: 100%;
+ padding: 0.75rem;
+ border: 1px solid var(--border);
+ border-radius: 0.5rem;
+ margin-bottom: 1rem;
+ font-family: monospace;
+ }
+
+ .headers-section, .body-section {
+ margin-bottom: 1.5rem;
+ }
+
+ .headers-container {
+ margin-top: 0.5rem;
+ }
+
+ .add-header {
+ background: var(--primary);
+ color: white;
+ border: none;
+ padding: 0.5rem 1rem;
+ border-radius: 0.25rem;
+ cursor: pointer;
+ font-weight: 500;
+ margin-bottom: 1rem;
+ }
+
+ #request-body {
+ width: 100%;
+ min-height: 150px;
+ padding: 0.75rem;
+ border: 1px solid var(--border);
+ border-radius: 0.5rem;
+ font-family: monospace;
+ resize: vertical;
+ }
+
+ .send-button {
+ background: var(--primary);
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: 0.5rem;
+ cursor: pointer;
+ font-weight: 600;
+ width: 100%;
+ transition: background 0.2s;
+ }
+
+ .send-button:hover {
+ background: var(--primary-dark);
+ }
+
+ .status-bar {
+ display: flex;
+ gap: 0.5rem;
+ margin-bottom: 1rem;
+ font-weight: 500;
+ }
+
+ #status-code {
+ font-weight: 700;
+ }
+
+ #response-headers, #response-body {
+ background: #f8f8f8;
+ padding: 1rem;
+ border-radius: 0.5rem;
+ overflow-x: auto;
+ font-family: monospace;
+ white-space: pre-wrap;
+ }
+
+ .docs-grid, .examples-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 1.5rem;
+ margin-top: 2rem;
+ }
+
+ .docs-card, .example-card {
+ background: var(--card-bg);
+ padding: 1.5rem;
+ border-radius: 0.5rem;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+ }
+
+ .docs-card h3, .example-card h3 {
+ margin-bottom: 0.5rem;
+ color: var(--primary);
+ }
+
+ .docs-card p {
+ color: var(--text-light);
+ margin-bottom: 1rem;
+ }
+
+ .example-card p {
+ font-family: monospace;
+ background: #f8f8f8;
+ padding: 0.5rem;
+ border-radius: 0.25rem;
+ margin-bottom: 1rem;
+ overflow-x: auto;
+ }
+
+ .example-button {
+ background: var(--primary);
+ color: white;
+ border: none;
+ padding: 0.5rem 1rem;
+ border-radius: 0.25rem;
+ cursor: pointer;
+ font-weight: 500;
+ }
+
+ footer {
+ background: var(--card-bg);
+ padding: 2rem 1rem;
+ text-align: center;
+ }
+
+ .footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ .footer-links {
+ display: flex;
+ justify-content: center;
+ gap: 2rem;
+ margin-bottom: 1rem;
+ }
+
+ .footer-links a {
+ color: var(--primary);
+ text-decoration: none;
+ font-weight: 500;
+ }
+
+ footer p {
+ color: var(--text-light);
+ }