commit 6fe4fe99bea8b685b50fce73aaa66da9e7498f66
Author: root <root@hub.scroll.pub> Date: 2025-01-02 02:02:49 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..280d2b7 --- /dev/null +++ b/body.html @@ -0,0 +1,57 @@ +<header> + <h1>ChinaTix</h1> + <p>Your Gateway to Chinese Events</p> +</header> + +<nav> + <ul> + <li><a href="#events">Events</a></li> + <li><a href="#about">About Us</a></li> + <li><a href="#contact">Contact</a></li> + </ul> +</nav> + +<main> + <section id="events"> + <h2>Upcoming Events</h2> + <div class="event-grid"> + <div class="event-card"> + <h3>Beijing Opera</h3> + <p>Experience traditional Chinese opera in the heart of Beijing.</p> + <button onclick="orderTicket('Beijing Opera')">Order Ticket</button> + </div> + <div class="event-card"> + <h3>Shanghai Jazz Festival</h3> + <p>Enjoy the best of jazz in the vibrant city of Shanghai.</p> + <button onclick="orderTicket('Shanghai Jazz Festival')">Order Ticket</button> + </div> + <div class="event-card"> + <h3>Guangzhou Food Fair</h3> + <p>Taste the finest Chinese cuisine at the Guangzhou Food Fair.</p> + <button onclick="orderTicket('Guangzhou Food Fair')">Order Ticket</button> + </div> + </div> + </section> + + <section id="about"> + <h2>About Us</h2> + <p>ChinaTix is dedicated to bringing you the best events across China. From cultural performances to modern festivals, we ensure you have the best experience.</p> + </section> + + <section id="contact"> + <h2>Contact Us</h2> + <form id="contact-form"> + <label for="name">Name:</label> + <input type="text" id="name" name="name" required> + <label for="email">Email:</label> + <input type="email" id="email" name="email" required> + <label for="message">Message:</label> + <textarea id="message" name="message" required></textarea> + <button type="submit">Send</button> + </form> + </section> +</main> + +<footer> + <p>ChinaTix - Connecting You to Chinese Culture</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..f94feb8 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://chinatix.scroll.pub +metaTags +editButton /edit.html +title Order Tickets from Chinese Company +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..a57bb85 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "cb457800-8321-484c-a334-5a390c4183e5", + "object": "chat.completion", + "created": 1735783346, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nchinatix.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://chinatix.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Order Tickets from Chinese Company\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>ChinaTix</h1>\n <p>Your Gateway to Chinese Events</p>\n</header>\n\n<nav>\n <ul>\n <li><a href=\"#events\">Events</a></li>\n <li><a href=\"#about\">About Us</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n</nav>\n\n<main>\n <section id=\"events\">\n <h2>Upcoming Events</h2>\n <div class=\"event-grid\">\n <div class=\"event-card\">\n <h3>Beijing Opera</h3>\n <p>Experience traditional Chinese opera in the heart of Beijing.</p>\n <button onclick=\"orderTicket('Beijing Opera')\">Order Ticket</button>\n </div>\n <div class=\"event-card\">\n <h3>Shanghai Jazz Festival</h3>\n <p>Enjoy the best of jazz in the vibrant city of Shanghai.</p>\n <button onclick=\"orderTicket('Shanghai Jazz Festival')\">Order Ticket</button>\n </div>\n <div class=\"event-card\">\n <h3>Guangzhou Food Fair</h3>\n <p>Taste the finest Chinese cuisine at the Guangzhou Food Fair.</p>\n <button onclick=\"orderTicket('Guangzhou Food Fair')\">Order Ticket</button>\n </div>\n </div>\n </section>\n\n <section id=\"about\">\n <h2>About Us</h2>\n <p>ChinaTix is dedicated to bringing you the best events across China. From cultural performances to modern festivals, we ensure you have the best experience.</p>\n </section>\n\n <section id=\"contact\">\n <h2>Contact Us</h2>\n <form id=\"contact-form\">\n <label for=\"name\">Name:</label>\n <input type=\"text\" id=\"name\" name=\"name\" required>\n <label for=\"email\">Email:</label>\n <input type=\"email\" id=\"email\" name=\"email\" required>\n <label for=\"message\">Message:</label>\n <textarea id=\"message\" name=\"message\" required></textarea>\n <button type=\"submit\">Send</button>\n </form>\n </section>\n</main>\n\n<footer>\n <p>ChinaTix - Connecting You to Chinese Culture</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Arial', sans-serif;\n margin: 0;\n padding: 0;\n background-color: #f4f4f4;\n color: #333;\n}\n\nheader {\n background-color: #d32f2f;\n color: white;\n padding: 20px;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5em;\n}\n\nheader p {\n margin: 0;\n font-size: 1.2em;\n}\n\nnav {\n background-color: #333;\n color: white;\n padding: 10px;\n text-align: center;\n}\n\nnav ul {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\nnav ul li {\n display: inline;\n margin: 0 15px;\n}\n\nnav ul li a {\n color: white;\n text-decoration: none;\n font-size: 1.1em;\n}\n\nmain {\n padding: 20px;\n}\n\nsection {\n margin-bottom: 40px;\n}\n\nh2 {\n color: #d32f2f;\n font-size: 2em;\n margin-bottom: 20px;\n}\n\n.event-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 20px;\n}\n\n.event-card {\n background-color: white;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n text-align: center;\n}\n\n.event-card h3 {\n margin: 0;\n font-size: 1.5em;\n color: #d32f2f;\n}\n\n.event-card p {\n font-size: 1em;\n color: #666;\n}\n\n.event-card button {\n background-color: #d32f2f;\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 5px;\n cursor: pointer;\n font-size: 1em;\n}\n\n.event-card button:hover {\n background-color: #b71c1c;\n}\n\nform {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\nform label {\n font-size: 1.1em;\n color: #333;\n}\n\nform input, form textarea {\n padding: 10px;\n border: 1px solid #ccc;\n border-radius: 5px;\n font-size: 1em;\n}\n\nform button {\n background-color: #d32f2f;\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 5px;\n cursor: pointer;\n font-size: 1em;\n}\n\nform button:hover {\n background-color: #b71c1c;\n}\n\nfooter {\n background-color: #333;\n color: white;\n text-align: center;\n padding: 10px;\n position: relative;\n bottom: 0;\n width: 100%;\n}\n\n@media (max-width: 768px) {\n header h1 {\n font-size: 2em;\n }\n\n header p {\n font-size: 1em;\n }\n\n nav ul li {\n display: block;\n margin: 10px 0;\n }\n\n .event-grid {\n grid-template-columns: 1fr;\n }\n}\n---script.js---\nfunction orderTicket(eventName) {\n alert(`Thank you for ordering a ticket for ${eventName}!`);\n}\n\ndocument.getElementById('contact-form').addEventListener('submit', function(event) {\n event.preventDefault();\n alert('Thank you for contacting us! We will get back to you soon.');\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 243, + "completion_tokens": 1409, + "total_tokens": 1652, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 243 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..237d159 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# chinatix.scroll.pub +Website generated by DeepSeek from prompt: a web site to order tickets from Chinese Company \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..fa308d0 --- /dev/null +++ b/script.js @@ -0,0 +1,8 @@ +function orderTicket(eventName) { + alert(`Thank you for ordering a ticket for ${eventName}!`); +} + +document.getElementById('contact-form').addEventListener('submit', function(event) { + event.preventDefault(); + alert('Thank you for contacting us! We will get back to you soon.'); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..f453156 --- /dev/null +++ b/style.css @@ -0,0 +1,162 @@ +body { + font-family: 'Arial', sans-serif; + margin: 0; + padding: 0; + background-color: #f4f4f4; + color: #333; +} + +header { + background-color: #d32f2f; + color: white; + padding: 20px; + text-align: center; +} + +header h1 { + margin: 0; + font-size: 2.5em; +} + +header p { + margin: 0; + font-size: 1.2em; +} + +nav { + background-color: #333; + color: white; + padding: 10px; + text-align: center; +} + +nav ul { + list-style: none; + padding: 0; + margin: 0; +} + +nav ul li { + display: inline; + margin: 0 15px; +} + +nav ul li a { + color: white; + text-decoration: none; + font-size: 1.1em; +} + +main { + padding: 20px; +} + +section { + margin-bottom: 40px; +} + +h2 { + color: #d32f2f; + font-size: 2em; + margin-bottom: 20px; +} + +.event-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 20px; +} + +.event-card { + background-color: white; + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + text-align: center; +} + +.event-card h3 { + margin: 0; + font-size: 1.5em; + color: #d32f2f; +} + +.event-card p { + font-size: 1em; + color: #666; +} + +.event-card button { + background-color: #d32f2f; + color: white; + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; + font-size: 1em; +} + +.event-card button:hover { + background-color: #b71c1c; +} + +form { + display: flex; + flex-direction: column; + gap: 10px; +} + +form label { + font-size: 1.1em; + color: #333; +} + +form input, form textarea { + padding: 10px; + border: 1px solid #ccc; + border-radius: 5px; + font-size: 1em; +} + +form button { + background-color: #d32f2f; + color: white; + border: none; + padding: 10px 20px; + border-radius: 5px; + cursor: pointer; + font-size: 1em; +} + +form button:hover { + background-color: #b71c1c; +} + +footer { + background-color: #333; + color: white; + text-align: center; + padding: 10px; + position: relative; + bottom: 0; + width: 100%; +} + +@media (max-width: 768px) { + header h1 { + font-size: 2em; + } + + header p { + font-size: 1em; + } + + nav ul li { + display: block; + margin: 10px 0; + } + + .event-grid { + grid-template-columns: 1fr; + } +} \ No newline at end of file