commit 23cd0692601c9f60c0e25401933cdaa51a4795ad
Author: root <root@hub.scroll.pub> Date: 2024-12-28 11:36:41 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..a97ce6a --- /dev/null +++ b/body.html @@ -0,0 +1,51 @@ +<header> + <div class="container"> + <h1>Welcome to PlayCafe</h1> + <p>Where fun meets flavor!</p> + </div> +</header> + +<section class="about"> + <div class="container"> + <h2>About Us</h2> + <p>PlayCafe is a unique space combining a vibrant playhouse for kids and a cozy café for parents. Enjoy our delicious drinks and snacks while your kids have the time of their lives!</p> + </div> +</section> + +<section class="calculator"> + <div class="container"> + <h2>Hourly Rate Calculator</h2> + <form id="rateCalculator"> + <label for="hours">Number of Hours:</label> + <input type="number" id="hours" name="hours" min="1" required> + <button type="submit">Calculate</button> + </form> + <p id="result"></p> + </div> +</section> + +<section class="menu"> + <div class="container"> + <h2>Our Menu</h2> + <div class="menu-items"> + <div class="item"> + <h3>Coffee</h3> + <p>Rich and aromatic</p> + </div> + <div class="item"> + <h3>Pastries</h3> + <p>Freshly baked daily</p> + </div> + <div class="item"> + <h3>Snacks</h3> + <p>Healthy and tasty</p> + </div> + </div> + </div> +</section> + +<footer> + <div class="container"> + <p>Visit us today and experience the joy of PlayCafe!</p> + </div> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..1f4b811 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://playcafe.scroll.pub +metaTags +editButton /edit.html +title PlayCafe - Fun, Food, and Play +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..27f9b51 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "13e70cd6-bbaa-4edb-8852-73ce93c3fe4d", + "object": "chat.completion", + "created": 1735385783, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nplaycafe.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://playcafe.scroll.pub\nmetaTags\neditButton /edit.html\ntitle PlayCafe - Fun, Food, and Play\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <div class=\"container\">\n <h1>Welcome to PlayCafe</h1>\n <p>Where fun meets flavor!</p>\n </div>\n</header>\n\n<section class=\"about\">\n <div class=\"container\">\n <h2>About Us</h2>\n <p>PlayCafe is a unique space combining a vibrant playhouse for kids and a cozy café for parents. Enjoy our delicious drinks and snacks while your kids have the time of their lives!</p>\n </div>\n</section>\n\n<section class=\"calculator\">\n <div class=\"container\">\n <h2>Hourly Rate Calculator</h2>\n <form id=\"rateCalculator\">\n <label for=\"hours\">Number of Hours:</label>\n <input type=\"number\" id=\"hours\" name=\"hours\" min=\"1\" required>\n <button type=\"submit\">Calculate</button>\n </form>\n <p id=\"result\"></p>\n </div>\n</section>\n\n<section class=\"menu\">\n <div class=\"container\">\n <h2>Our Menu</h2>\n <div class=\"menu-items\">\n <div class=\"item\">\n <h3>Coffee</h3>\n <p>Rich and aromatic</p>\n </div>\n <div class=\"item\">\n <h3>Pastries</h3>\n <p>Freshly baked daily</p>\n </div>\n <div class=\"item\">\n <h3>Snacks</h3>\n <p>Healthy and tasty</p>\n </div>\n </div>\n </div>\n</section>\n\n<footer>\n <div class=\"container\">\n <p>Visit us today and experience the joy of PlayCafe!</p>\n </div>\n</footer>\n---style.css---\nbody {\n font-family: 'Arial', sans-serif;\n margin: 0;\n padding: 0;\n color: #333;\n background-color: #f9f9f9;\n}\n\n.container {\n width: 90%;\n max-width: 1200px;\n margin: 0 auto;\n padding: 20px;\n}\n\nheader {\n background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);\n color: white;\n padding: 60px 0;\n text-align: center;\n}\n\nheader h1 {\n font-size: 3rem;\n margin: 0;\n}\n\nheader p {\n font-size: 1.5rem;\n margin: 10px 0 0;\n}\n\nsection {\n padding: 40px 0;\n}\n\nh2 {\n font-size: 2rem;\n margin-bottom: 20px;\n color: #ff6f61;\n}\n\n.about p {\n font-size: 1.2rem;\n line-height: 1.6;\n}\n\n.calculator form {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.calculator label {\n font-size: 1.2rem;\n margin-bottom: 10px;\n}\n\n.calculator input {\n padding: 10px;\n font-size: 1rem;\n width: 100%;\n max-width: 300px;\n margin-bottom: 20px;\n border: 1px solid #ccc;\n border-radius: 5px;\n}\n\n.calculator button {\n padding: 10px 20px;\n font-size: 1rem;\n background-color: #ff6f61;\n color: white;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.calculator button:hover {\n background-color: #ff3b2f;\n}\n\n#result {\n font-size: 1.2rem;\n margin-top: 20px;\n color: #ff6f61;\n}\n\n.menu-items {\n display: flex;\n justify-content: space-around;\n flex-wrap: wrap;\n}\n\n.item {\n background: white;\n padding: 20px;\n border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n text-align: center;\n margin: 10px;\n flex: 1 1 calc(33.333% - 20px);\n}\n\n.item h3 {\n font-size: 1.5rem;\n color: #ff6f61;\n}\n\n.item p {\n font-size: 1rem;\n color: #666;\n}\n\nfooter {\n background: #333;\n color: white;\n text-align: center;\n padding: 20px 0;\n}\n\nfooter p {\n margin: 0;\n font-size: 1rem;\n}\n\n@media (max-width: 768px) {\n .menu-items {\n flex-direction: column;\n }\n\n .item {\n flex: 1 1 100%;\n margin: 10px 0;\n }\n}\n---script.js---\ndocument.getElementById('rateCalculator').addEventListener('submit', function(event) {\n event.preventDefault();\n const hours = parseInt(document.getElementById('hours').value, 10);\n const rate = 10; // $10 per hour\n const total = hours * rate;\n document.getElementById('result').textContent = `Total cost: $${total}`;\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 273, + "completion_tokens": 1228, + "total_tokens": 1501, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 273 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..7cf8923 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# playcafe.scroll.pub +Website generated by DeepSeek from prompt: I am planning to create a web application for a playhouse, which will also include a café offering drinks and snacks. The website will feature a modern design and include a functionality to calculate hourly charges \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..f931e36 --- /dev/null +++ b/script.js @@ -0,0 +1,7 @@ +document.getElementById('rateCalculator').addEventListener('submit', function(event) { + event.preventDefault(); + const hours = parseInt(document.getElementById('hours').value, 10); + const rate = 10; // $10 per hour + const total = hours * rate; + document.getElementById('result').textContent = `Total cost: $${total}`; +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..815bfa5 --- /dev/null +++ b/style.css @@ -0,0 +1,136 @@ +body { + font-family: 'Arial', sans-serif; + margin: 0; + padding: 0; + color: #333; + background-color: #f9f9f9; +} + +.container { + width: 90%; + max-width: 1200px; + margin: 0 auto; + padding: 20px; +} + +header { + background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); + color: white; + padding: 60px 0; + text-align: center; +} + +header h1 { + font-size: 3rem; + margin: 0; +} + +header p { + font-size: 1.5rem; + margin: 10px 0 0; +} + +section { + padding: 40px 0; +} + +h2 { + font-size: 2rem; + margin-bottom: 20px; + color: #ff6f61; +} + +.about p { + font-size: 1.2rem; + line-height: 1.6; +} + +.calculator form { + display: flex; + flex-direction: column; + align-items: center; +} + +.calculator label { + font-size: 1.2rem; + margin-bottom: 10px; +} + +.calculator input { + padding: 10px; + font-size: 1rem; + width: 100%; + max-width: 300px; + margin-bottom: 20px; + border: 1px solid #ccc; + border-radius: 5px; +} + +.calculator button { + padding: 10px 20px; + font-size: 1rem; + background-color: #ff6f61; + color: white; + border: none; + border-radius: 5px; + cursor: pointer; +} + +.calculator button:hover { + background-color: #ff3b2f; +} + +#result { + font-size: 1.2rem; + margin-top: 20px; + color: #ff6f61; +} + +.menu-items { + display: flex; + justify-content: space-around; + flex-wrap: wrap; +} + +.item { + background: white; + padding: 20px; + border-radius: 10px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + text-align: center; + margin: 10px; + flex: 1 1 calc(33.333% - 20px); +} + +.item h3 { + font-size: 1.5rem; + color: #ff6f61; +} + +.item p { + font-size: 1rem; + color: #666; +} + +footer { + background: #333; + color: white; + text-align: center; + padding: 20px 0; +} + +footer p { + margin: 0; + font-size: 1rem; +} + +@media (max-width: 768px) { + .menu-items { + flex-direction: column; + } + + .item { + flex: 1 1 100%; + margin: 10px 0; + } +} \ No newline at end of file