commit c227178de8f7db1e6717e4ef09816f65eb6e4837
Author: root <root@hub.scroll.pub> Date: 2024-12-28 09:38:58 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..7df87e7 --- /dev/null +++ b/body.html @@ -0,0 +1,56 @@ +<header> + <nav class="main-nav"> + <div class="logo">BakeHub</div> + <button class="mobile-menu" aria-label="Toggle menu"> + <span></span><span></span><span></span> + </button> + <ul class="nav-links"> + <li><a href="#recipes">Recipes</a></li> + <li><a href="#categories">Categories</a></li> + <li><a href="#submit">Submit Recipe</a></li> + </ul> + </nav> +</header> + +<main> + <section class="hero"> + <h1>Share Your Baking Magic</h1> + <p>Discover and share delicious recipes from our community of bakers</p> + </section> + + <section id="recipe-form" class="recipe-container"> + <h2>Submit Your Recipe</h2> + <form id="submitRecipe"> + <div class="form-group"> + <label for="recipeName">Recipe Name</label> + <input type="text" id="recipeName" required> + </div> + <div class="form-group"> + <label for="ingredients">Ingredients</label> + <textarea id="ingredients" required></textarea> + </div> + <div class="form-group"> + <label for="instructions">Instructions</label> + <textarea id="instructions" required></textarea> + </div> + <button type="submit" class="submit-btn">Share Recipe</button> + </form> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h3>BakeHub</h3> + <p>Connecting bakers worldwide</p> + </div> + <div class="footer-section"> + <h3>Quick Links</h3> + <ul> + <li><a href="#about">About</a></li> + <li><a href="#contact">Contact</a></li> + <li><a href="#privacy">Privacy Policy</a></li> + </ul> + </div> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..b050911 --- /dev/null +++ b/index.scroll @@ -0,0 +1,10 @@ +buildHtml +baseUrl https://bakehub.scroll.pub +metaTags + description Recipe sharing platform for delicious baked goods + keywords baking, recipes, desserts, pastries, homemade +editButton /edit.html +title BakeHub - Share Your Favorite Recipes +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..5f48303 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01VM5M4ZB2W1XNg3hvVDtW5B", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I apologize, but I notice there's no image provided in your request to base the recipe on. Without an image to reference, I'll create a general recipe website structure that can be adapted once an image is provided.\n\nHere's a recipe website with the requested specifications:\n\n---domain---\nbakehub.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://bakehub.scroll.pub\nmetaTags\n description Recipe sharing platform for delicious baked goods\n keywords baking, recipes, desserts, pastries, homemade\neditButton /edit.html\ntitle BakeHub - Share Your Favorite Recipes\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav class=\"main-nav\">\n <div class=\"logo\">BakeHub</div>\n <button class=\"mobile-menu\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#recipes\">Recipes</a></li>\n <li><a href=\"#categories\">Categories</a></li>\n <li><a href=\"#submit\">Submit Recipe</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Share Your Baking Magic</h1>\n <p>Discover and share delicious recipes from our community of bakers</p>\n </section>\n\n <section id=\"recipe-form\" class=\"recipe-container\">\n <h2>Submit Your Recipe</h2>\n <form id=\"submitRecipe\">\n <div class=\"form-group\">\n <label for=\"recipeName\">Recipe Name</label>\n <input type=\"text\" id=\"recipeName\" required>\n </div>\n <div class=\"form-group\">\n <label for=\"ingredients\">Ingredients</label>\n <textarea id=\"ingredients\" required></textarea>\n </div>\n <div class=\"form-group\">\n <label for=\"instructions\">Instructions</label>\n <textarea id=\"instructions\" required></textarea>\n </div>\n <button type=\"submit\" class=\"submit-btn\">Share Recipe</button>\n </form>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h3>BakeHub</h3>\n <p>Connecting bakers worldwide</p>\n </div>\n <div class=\"footer-section\">\n <h3>Quick Links</h3>\n <ul>\n <li><a href=\"#about\">About</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n <li><a href=\"#privacy\">Privacy Policy</a></li>\n </ul>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #ff6b6b;\n --secondary-color: #4ecdc4;\n --text-color: #2d3436;\n --background-color: #f9f9f9;\n --accent-color: #ffd93d;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n}\n\n.main-nav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 2rem;\n background: white;\n box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: var(--primary-color);\n}\n\n.nav-links {\n display: flex;\n gap: 2rem;\n list-style: none;\n}\n\n.nav-links a {\n text-decoration: none;\n color: var(--text-color);\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--primary-color);\n}\n\n.hero {\n text-align: center;\n padding: 4rem 2rem;\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\n.recipe-container {\n max-width: 800px;\n margin: 2rem auto;\n padding: 2rem;\n background: white;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\nlabel {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 600;\n}\n\ninput, textarea {\n width: 100%;\n padding: 0.8rem;\n border: 2px solid #eee;\n border-radius: 5px;\n transition: border-color 0.3s ease;\n}\n\ninput:focus, textarea:focus {\n border-color: var(--primary-color);\n outline: none;\n}\n\n.submit-btn {\n background: var(--primary-color);\n color: white;\n padding: 1rem 2rem;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n transition: transform 0.3s ease;\n}\n\n.submit-btn:hover {\n transform: translateY(-2px);\n}\n\n.mobile-menu {\n display: none;\n}\n\nfooter {\n background: var(--text-color);\n color: white;\n padding: 2rem;\n margin-top: 4rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n}\n\n.footer-section h3 {\n margin-bottom: 1rem;\n}\n\n.footer-section ul {\n list-style: none;\n}\n\n.footer-section a {\n color: white;\n text-decoration: none;\n}\n\n@media (max-width: 768px) {\n .mobile-menu {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n }\n\n .mobile-menu span {\n display: block;\n width: 25px;\n height: 3px;\n background: var(--text-color);\n margin: 5px 0;\n transition: 0.3s;\n }\n\n .nav-links {\n display: none;\n }\n\n .nav-links.active {\n display: flex;\n flex-direction: column;\n position: absolute;\n top: 70px;\n left: 0;\n right: 0;\n background: white;\n padding: 1rem;\n box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Mobile menu toggle\n const mobileMenu = document.querySelector('.mobile-menu');\n const navLinks = document.querySelector('.nav-links');\n\n mobileMenu.addEventListener('click', () => {\n navLinks.classList.toggle('active');\n });\n\n // Form submission\n const recipeForm = document.getElementById('submitRecipe');\n \n recipeForm.addEventListener('submit', (e) => {\n e.preventDefault();\n \n const recipeName = document.getElementById('recipeName').value;\n const ingredients = document.getElementById('ingredients').value;\n const instructions = document.getElementById('instructions').value;\n \n // Here you would typically send this data to a server\n console.log('Recipe submitted:', {\n name: recipeName,\n ingredients,\n instructions\n });\n \n // Clear form\n recipeForm.reset();\n \n // Show success message\n alert('Recipe submitted successfully!');\n });\n\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\n---end---\n\nThis creates a beautiful, responsive recipe sharing website with a clean design and smooth interactions. The color scheme is warm and inviting, perfect for a baking website. The site includes:\n\n- Mobile-responsive navigation\n- Hero section with gradient background\n- Clean recipe submission form\n- Smooth scrolling\n- Accessible form controls\n- Beautiful hover animations\n- Modern CSS Grid and Flexbox layouts\n- Semantic HTML structure\n- Mobile menu toggle functionality\n- Form validation and submission handling\n\nOnce you provide an image, we can adapt the content to show the specific recipe and its details." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 284, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2333 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..aa1b67a --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# bakehub.scroll.pub +Website generated by Claude from prompt: Providteste a recipe for the baked goods in the image \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..32bf394 --- /dev/null +++ b/script.js @@ -0,0 +1,43 @@ +document.addEventListener('DOMContentLoaded', function() { + // Mobile menu toggle + const mobileMenu = document.querySelector('.mobile-menu'); + const navLinks = document.querySelector('.nav-links'); + + mobileMenu.addEventListener('click', () => { + navLinks.classList.toggle('active'); + }); + + // Form submission + const recipeForm = document.getElementById('submitRecipe'); + + recipeForm.addEventListener('submit', (e) => { + e.preventDefault(); + + const recipeName = document.getElementById('recipeName').value; + const ingredients = document.getElementById('ingredients').value; + const instructions = document.getElementById('instructions').value; + + // Here you would typically send this data to a server + console.log('Recipe submitted:', { + name: recipeName, + ingredients, + instructions + }); + + // Clear form + recipeForm.reset(); + + // Show success message + alert('Recipe submitted successfully!'); + }); + + // 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' + }); + }); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..959660a --- /dev/null +++ b/style.css @@ -0,0 +1,175 @@ +:root { + --primary-color: #ff6b6b; + --secondary-color: #4ecdc4; + --text-color: #2d3436; + --background-color: #f9f9f9; + --accent-color: #ffd93d; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + color: var(--text-color); + background-color: var(--background-color); +} + +.main-nav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 2rem; + background: white; + box-shadow: 0 2px 5px rgba(0,0,0,0.1); +} + +.logo { + font-size: 1.5rem; + font-weight: bold; + color: var(--primary-color); +} + +.nav-links { + display: flex; + gap: 2rem; + list-style: none; +} + +.nav-links a { + text-decoration: none; + color: var(--text-color); + transition: color 0.3s ease; +} + +.nav-links a:hover { + color: var(--primary-color); +} + +.hero { + text-align: center; + padding: 4rem 2rem; + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + color: white; +} + +.hero h1 { + font-size: 3rem; + margin-bottom: 1rem; +} + +.recipe-container { + max-width: 800px; + margin: 2rem auto; + padding: 2rem; + background: white; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); +} + +.form-group { + margin-bottom: 1.5rem; +} + +label { + display: block; + margin-bottom: 0.5rem; + font-weight: 600; +} + +input, textarea { + width: 100%; + padding: 0.8rem; + border: 2px solid #eee; + border-radius: 5px; + transition: border-color 0.3s ease; +} + +input:focus, textarea:focus { + border-color: var(--primary-color); + outline: none; +} + +.submit-btn { + background: var(--primary-color); + color: white; + padding: 1rem 2rem; + border: none; + border-radius: 5px; + cursor: pointer; + transition: transform 0.3s ease; +} + +.submit-btn:hover { + transform: translateY(-2px); +} + +.mobile-menu { + display: none; +} + +footer { + background: var(--text-color); + color: white; + padding: 2rem; + margin-top: 4rem; +} + +.footer-content { + max-width: 1200px; + margin: 0 auto; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; +} + +.footer-section h3 { + margin-bottom: 1rem; +} + +.footer-section ul { + list-style: none; +} + +.footer-section a { + color: white; + text-decoration: none; +} + +@media (max-width: 768px) { + .mobile-menu { + display: block; + background: none; + border: none; + cursor: pointer; + } + + .mobile-menu span { + display: block; + width: 25px; + height: 3px; + background: var(--text-color); + margin: 5px 0; + transition: 0.3s; + } + + .nav-links { + display: none; + } + + .nav-links.active { + display: flex; + flex-direction: column; + position: absolute; + top: 70px; + left: 0; + right: 0; + background: white; + padding: 1rem; + box-shadow: 0 2px 5px rgba(0,0,0,0.1); + } +}