commit 610ac36a898e6a846c45ec9ac8bacbc1a48c2371
Author: root <root@hub.scroll.pub> Date: 2024-12-28 08:44:29 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..12b5257 --- /dev/null +++ b/body.html @@ -0,0 +1,74 @@ +<header> + <nav> + <div class="logo">🐱 Cat Pageant</div> + <div class="nav-links"> + <a href="#home">Home</a> + <a href="#criteria">Criteria</a> + <a href="#rankings">Rankings</a> + </div> + </nav> +</header> + +<main> + <section id="home" class="hero"> + <h1>Cat Beauty Pageant</h1> + <p>Celebrating the most magnificent felines</p> + </section> + + <section id="criteria" class="judging"> + <h2>Judging Criteria</h2> + <div class="criteria-grid"> + <div class="criterion"> + <h3>Coat Quality</h3> + <p>Shine, texture, and grooming</p> + <div class="points">30 points</div> + </div> + <div class="criterion"> + <h3>Personality</h3> + <p>Character and charm</p> + <div class="points">25 points</div> + </div> + <div class="criterion"> + <h3>Elegance</h3> + <p>Grace and poise</p> + <div class="points">25 points</div> + </div> + <div class="criterion"> + <h3>Presentation</h3> + <p>Overall appearance</p> + <div class="points">20 points</div> + </div> + </div> + </section> + + <section id="rankings" class="rankings"> + <h2>Current Rankings</h2> + <div class="rankings-container"> + <div class="ranking-card" id="rank1"> + <div class="rank">1</div> + <div class="cat-info"> + <h3>Luna</h3> + <p>Persian • Score: 98</p> + </div> + </div> + <div class="ranking-card" id="rank2"> + <div class="rank">2</div> + <div class="cat-info"> + <h3>Oliver</h3> + <p>Siamese • Score: 95</p> + </div> + </div> + <div class="ranking-card" id="rank3"> + <div class="rank">3</div> + <div class="cat-info"> + <h3>Milo</h3> + <p>Maine Coon • Score: 93</p> + </div> + </div> + </div> + </section> +</main> + +<footer> + <p>Cat Beauty Pageant | Celebrating Feline Excellence</p> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..efab203 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://catpageant.scroll.pub +metaTags +editButton /edit.html +title Cat Beauty Pageant - Celebrating Feline Elegance +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..2f7925b --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01Qs6xCbocnH9VYSQ78vfzdk", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a cat beauty contest website with judging criteria and rankings.\n\n---domain---\ncatpageant.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://catpageant.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Cat Beauty Pageant - Celebrating Feline Elegance\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">🐱 Cat Pageant</div>\n <div class=\"nav-links\">\n <a href=\"#home\">Home</a>\n <a href=\"#criteria\">Criteria</a>\n <a href=\"#rankings\">Rankings</a>\n </div>\n </nav>\n</header>\n\n<main>\n <section id=\"home\" class=\"hero\">\n <h1>Cat Beauty Pageant</h1>\n <p>Celebrating the most magnificent felines</p>\n </section>\n\n <section id=\"criteria\" class=\"judging\">\n <h2>Judging Criteria</h2>\n <div class=\"criteria-grid\">\n <div class=\"criterion\">\n <h3>Coat Quality</h3>\n <p>Shine, texture, and grooming</p>\n <div class=\"points\">30 points</div>\n </div>\n <div class=\"criterion\">\n <h3>Personality</h3>\n <p>Character and charm</p>\n <div class=\"points\">25 points</div>\n </div>\n <div class=\"criterion\">\n <h3>Elegance</h3>\n <p>Grace and poise</p>\n <div class=\"points\">25 points</div>\n </div>\n <div class=\"criterion\">\n <h3>Presentation</h3>\n <p>Overall appearance</p>\n <div class=\"points\">20 points</div>\n </div>\n </div>\n </section>\n\n <section id=\"rankings\" class=\"rankings\">\n <h2>Current Rankings</h2>\n <div class=\"rankings-container\">\n <div class=\"ranking-card\" id=\"rank1\">\n <div class=\"rank\">1</div>\n <div class=\"cat-info\">\n <h3>Luna</h3>\n <p>Persian • Score: 98</p>\n </div>\n </div>\n <div class=\"ranking-card\" id=\"rank2\">\n <div class=\"rank\">2</div>\n <div class=\"cat-info\">\n <h3>Oliver</h3>\n <p>Siamese • Score: 95</p>\n </div>\n </div>\n <div class=\"ranking-card\" id=\"rank3\">\n <div class=\"rank\">3</div>\n <div class=\"cat-info\">\n <h3>Milo</h3>\n <p>Maine Coon • Score: 93</p>\n </div>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <p>Cat Beauty Pageant | Celebrating Feline Excellence</p>\n</footer>\n\n---style.css---\n:root {\n --primary: #ff69b4;\n --secondary: #4a4a4a;\n --background: #fff;\n --accent: #ffd700;\n --text: #333;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n line-height: 1.6;\n color: var(--text);\n background: var(--background);\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 2rem;\n background: var(--primary);\n color: white;\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 1000;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n margin-left: 2rem;\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--accent);\n}\n\n.hero {\n height: 100vh;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background: linear-gradient(135deg, var(--primary), #ff1493);\n color: white;\n text-align: center;\n}\n\n.hero h1 {\n font-size: 4rem;\n margin-bottom: 1rem;\n animation: fadeIn 1s ease-in;\n}\n\n.hero p {\n font-size: 1.5rem;\n animation: fadeIn 1.5s ease-in;\n}\n\n.criteria-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.criterion {\n background: white;\n padding: 2rem;\n border-radius: 10px;\n box-shadow: 0 4px 15px rgba(0,0,0,0.1);\n transition: transform 0.3s ease;\n}\n\n.criterion:hover {\n transform: translateY(-5px);\n}\n\n.points {\n color: var(--primary);\n font-weight: bold;\n margin-top: 1rem;\n}\n\n.rankings-container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n padding: 2rem;\n}\n\n.ranking-card {\n display: flex;\n align-items: center;\n background: white;\n padding: 1rem;\n border-radius: 10px;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n}\n\n.rank {\n width: 40px;\n height: 40px;\n background: var(--primary);\n color: white;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n margin-right: 1rem;\n}\n\nsection {\n padding: 4rem 2rem;\n}\n\nh2 {\n text-align: center;\n margin-bottom: 2rem;\n color: var(--primary);\n}\n\nfooter {\n background: var(--secondary);\n color: white;\n text-align: center;\n padding: 1rem;\n}\n\n@keyframes fadeIn {\n from { opacity: 0; transform: translateY(20px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n@media (max-width: 768px) {\n .nav-links {\n display: none;\n }\n \n .hero h1 {\n font-size: 2.5rem;\n }\n \n .hero p {\n font-size: 1.2rem;\n }\n \n .criteria-grid {\n grid-template-columns: 1fr;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Smooth scrolling for navigation 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 // Animation for ranking cards\n const rankingCards = document.querySelectorAll('.ranking-card');\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.style.opacity = 1;\n entry.target.style.transform = 'translateX(0)';\n }\n });\n });\n\n rankingCards.forEach(card => {\n card.style.opacity = 0;\n card.style.transform = 'translateX(-20px)';\n card.style.transition = 'all 0.5s ease-in-out';\n observer.observe(card);\n });\n});\n\n---end---" + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 285, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2189 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..f265cf4 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# catpageant.scroll.pub +Website generated by Claude from prompt: Cat Beauty Contest , requirements: have Judging Criteria and have rankings \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..d6b7a52 --- /dev/null +++ b/script.js @@ -0,0 +1,29 @@ +document.addEventListener('DOMContentLoaded', () => { + // Smooth scrolling for navigation links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); + + // Animation for ranking cards + const rankingCards = document.querySelectorAll('.ranking-card'); + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.style.opacity = 1; + entry.target.style.transform = 'translateX(0)'; + } + }); + }); + + rankingCards.forEach(card => { + card.style.opacity = 0; + card.style.transform = 'translateX(-20px)'; + card.style.transition = 'all 0.5s ease-in-out'; + observer.observe(card); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..587efbf --- /dev/null +++ b/style.css @@ -0,0 +1,166 @@ +:root { + --primary: #ff69b4; + --secondary: #4a4a4a; + --background: #fff; + --accent: #ffd700; + --text: #333; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + line-height: 1.6; + color: var(--text); + background: var(--background); +} + +nav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 2rem; + background: var(--primary); + color: white; + position: fixed; + width: 100%; + top: 0; + z-index: 1000; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); +} + +.logo { + font-size: 1.5rem; + font-weight: bold; +} + +.nav-links a { + color: white; + text-decoration: none; + margin-left: 2rem; + transition: color 0.3s ease; +} + +.nav-links a:hover { + color: var(--accent); +} + +.hero { + height: 100vh; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + background: linear-gradient(135deg, var(--primary), #ff1493); + color: white; + text-align: center; +} + +.hero h1 { + font-size: 4rem; + margin-bottom: 1rem; + animation: fadeIn 1s ease-in; +} + +.hero p { + font-size: 1.5rem; + animation: fadeIn 1.5s ease-in; +} + +.criteria-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + padding: 2rem; +} + +.criterion { + background: white; + padding: 2rem; + border-radius: 10px; + box-shadow: 0 4px 15px rgba(0,0,0,0.1); + transition: transform 0.3s ease; +} + +.criterion:hover { + transform: translateY(-5px); +} + +.points { + color: var(--primary); + font-weight: bold; + margin-top: 1rem; +} + +.rankings-container { + display: flex; + flex-direction: column; + gap: 1rem; + padding: 2rem; +} + +.ranking-card { + display: flex; + align-items: center; + background: white; + padding: 1rem; + border-radius: 10px; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); +} + +.rank { + width: 40px; + height: 40px; + background: var(--primary); + color: white; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-weight: bold; + margin-right: 1rem; +} + +section { + padding: 4rem 2rem; +} + +h2 { + text-align: center; + margin-bottom: 2rem; + color: var(--primary); +} + +footer { + background: var(--secondary); + color: white; + text-align: center; + padding: 1rem; +} + +@keyframes fadeIn { + from { opacity: 0; transform: translateY(20px); } + to { opacity: 1; transform: translateY(0); } +} + +@media (max-width: 768px) { + .nav-links { + display: none; + } + + .hero h1 { + font-size: 2.5rem; + } + + .hero p { + font-size: 1.2rem; + } + + .criteria-grid { + grid-template-columns: 1fr; + } +}