commit b5bec4b4116f94d52fe888ff1d9d76a094928383
Author: root <root@hub.scroll.pub> Date: 2025-01-11 01:32:33 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..4395412 --- /dev/null +++ b/body.html @@ -0,0 +1,33 @@ +<header> + <h1>HabitFlow</h1> + <button id="newHabit" class="glow-button">+ New Habit</button> +</header> + +<main> + <div id="particles"></div> + + <section class="habits-container"> + <div id="habitsList" class="habits-grid"></div> + </section> + + <dialog id="habitModal" class="modal"> + <form id="habitForm"> + <h2>Create New Habit</h2> + <input type="text" id="habitName" placeholder="Habit name" required> + <select id="habitFrequency" required> + <option value="daily">Daily</option> + <option value="weekly">Weekly</option> + <option value="monthly">Monthly</option> + </select> + <input type="color" id="habitColor" value="#4CAF50"> + <div class="button-group"> + <button type="submit" class="save-btn">Save</button> + <button type="button" class="cancel-btn">Cancel</button> + </div> + </form> + </dialog> +</main> + +<footer> + <p>Built with ♥ by HabitFlow</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..22ceefe --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://habits.scroll.pub +metaTags +editButton /edit.html +title HabitFlow - Modern Habit Tracker +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..4ab4d7d --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01JvT4D8UeW6phGJHhxb5fgM", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a modern habit tracking website with local JSON storage, animations, particles, and sound effects.\n\nSuggested domain: habits.scroll.pub\n\n---domain---\nhabits.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://habits.scroll.pub\nmetaTags\neditButton /edit.html\ntitle HabitFlow - Modern Habit Tracker\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>HabitFlow</h1>\n <button id=\"newHabit\" class=\"glow-button\">+ New Habit</button>\n</header>\n\n<main>\n <div id=\"particles\"></div>\n \n <section class=\"habits-container\">\n <div id=\"habitsList\" class=\"habits-grid\"></div>\n </section>\n\n <dialog id=\"habitModal\" class=\"modal\">\n <form id=\"habitForm\">\n <h2>Create New Habit</h2>\n <input type=\"text\" id=\"habitName\" placeholder=\"Habit name\" required>\n <select id=\"habitFrequency\" required>\n <option value=\"daily\">Daily</option>\n <option value=\"weekly\">Weekly</option>\n <option value=\"monthly\">Monthly</option>\n </select>\n <input type=\"color\" id=\"habitColor\" value=\"#4CAF50\">\n <div class=\"button-group\">\n <button type=\"submit\" class=\"save-btn\">Save</button>\n <button type=\"button\" class=\"cancel-btn\">Cancel</button>\n </div>\n </form>\n </dialog>\n</main>\n\n<footer>\n <p>Built with ♥ by HabitFlow</p>\n</footer>\n---style.css---\n:root {\n --primary: #4CAF50;\n --background: #1a1a1a;\n --text: #ffffff;\n --card: #2d2d2d;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Inter', system-ui, sans-serif;\n background: var(--background);\n color: var(--text);\n min-height: 100vh;\n overflow-x: hidden;\n}\n\nheader {\n padding: 2rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: rgba(0,0,0,0.2);\n backdrop-filter: blur(10px);\n position: sticky;\n top: 0;\n z-index: 100;\n}\n\nh1 {\n font-size: 2.5rem;\n background: linear-gradient(45deg, var(--primary), #2196F3);\n -webkit-background-clip: text;\n background-clip: text;\n color: transparent;\n animation: titleGlow 2s ease-in-out infinite alternate;\n}\n\n.glow-button {\n padding: 0.8rem 1.5rem;\n border: none;\n border-radius: 25px;\n background: var(--primary);\n color: white;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.3s ease;\n box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);\n}\n\n.glow-button:hover {\n transform: translateY(-2px);\n box-shadow: 0 0 25px rgba(76, 175, 80, 0.5);\n}\n\n.habits-container {\n padding: 2rem;\n}\n\n.habits-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n gap: 1.5rem;\n animation: fadeIn 0.5s ease-out;\n}\n\n.habit-card {\n background: var(--card);\n padding: 1.5rem;\n border-radius: 15px;\n transition: transform 0.3s ease;\n position: relative;\n overflow: hidden;\n}\n\n.habit-card:hover {\n transform: translateY(-5px);\n}\n\n.habit-card::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 5px;\n background: var(--color);\n}\n\n.modal {\n border: none;\n border-radius: 15px;\n padding: 2rem;\n background: var(--card);\n color: var(--text);\n}\n\n.modal::backdrop {\n background: rgba(0,0,0,0.8);\n backdrop-filter: blur(5px);\n}\n\nform {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\ninput, select {\n padding: 0.8rem;\n border-radius: 8px;\n border: 1px solid rgba(255,255,255,0.1);\n background: rgba(255,255,255,0.05);\n color: var(--text);\n}\n\n.button-group {\n display: flex;\n gap: 1rem;\n}\n\n@keyframes titleGlow {\n from { filter: drop-shadow(0 0 2px rgba(76, 175, 80, 0.5)); }\n to { filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.8)); }\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 header {\n flex-direction: column;\n gap: 1rem;\n text-align: center;\n }\n}\n---script.js---\nclass HabitTracker {\n constructor() {\n this.habits = JSON.parse(localStorage.getItem('habits')) || [];\n this.initializeElements();\n this.setupEventListeners();\n this.initializeParticles();\n this.loadAudio();\n this.renderHabits();\n }\n\n initializeElements() {\n this.modal = document.getElementById('habitModal');\n this.form = document.getElementById('habitForm');\n this.habitsList = document.getElementById('habitsList');\n this.newHabitBtn = document.getElementById('newHabit');\n }\n\n setupEventListeners() {\n this.newHabitBtn.addEventListener('click', () => {\n this.modal.showModal();\n this.playSound('pop');\n });\n\n this.form.addEventListener('submit', (e) => {\n e.preventDefault();\n this.createHabit();\n });\n\n document.querySelector('.cancel-btn').addEventListener('click', () => {\n this.modal.close();\n this.playSound('pop');\n });\n }\n\n loadAudio() {\n this.sounds = {\n pop: new Audio('data:audio/wav;base64,UklGRnoGAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQoGAACBhYqFbF1fdJivrJBhNjVgodDbq2EcBj+a2/LDciUFLIHO8tiJNwgZaLvt559NEAxQp+PwtmMcBjiR1/LMeSwFJHfH8N2QQAoUXrTp66hVFApGn+DyvmwhBTGH0fPTgjMGHm7A7+OZRQ0PVqzn77BdGAg+ltryxnMpBSl+zPLaizsIGGS57OihUBELTKXh8bllHgU2jdXzzn0vBSF0xe/glEILElyx6OyrWBUIQ5zd8sFuJAUuhM/z1YU2Bhxqvu7mnEgODlOq5O+zYBoGPJPY88p2KwUme8rx3I4+CRZiturqpVITC0mi4PK8aB8GM4nU8tGAMQYeb8Pv45ZFDBFYr+ftrVoXCECY3PLEcSYELIHO8diJOQgZaLvt559NEAxQqOPwtmMcBjiR1/PMeSwFJHfH8N2RQAoUXrTp66hVFApGn+DyvmwhBTGH0fPTgjMGHm7A7+OZRQ0PVqzn77BdGAg+ltryxnMpBSl+zPLaizsIGGS57OihUBELTKXh8bllHgU2jdXzzn0vBSF0xe/glEILElyx6OyrWBUIQ5zd8sFuJAUuhM/z1YU2Bhxqvu7mnEgODlOq5O+zYBoGPJPY88p2KwUme8rx3I4+CRZiturqpVITC0mi4PK8aB8GM4nU8tGAMQYeb8Pv45ZFDBFYr+ftrVoXCECY3PLEcSYELIHO8diJOQgZaLvt559NEAxQqOPwtmMcBjiR1/PMeSwFJHfH8N2RQAoUXrTp66hVFApGn+DyvmwhBTGH0fPTgjMGHm7A7+OZRQ0PVqzn77BdGAg+ltryxnMpBSl+zPLaizsIGGS57OihUBELTKXh8bllHgU2jdXzzn0vBSF0xe/glEILElyx6OyrWBUIQ5zd8sFuJAUuhM/z1YU2Bhxqvu7mnEg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McBjiR1/PMeSwFJHfH8N2RQAoUXrTp66hVFApGn+DyvmwhBTGH0fPTgjMGHm7A7+OZRQ0PVqzn77BdGAg+ltryxnMpBSl+zPLaizsIGGS57OihUBELTKXh8bllHgU2jdXzzn0vBSF0xe/glEILElyx6OyrWBUIQ5zd8sFuJAUuhM/z1YU2Bhxqvu7mnEgODlOq5O+zYBoGPJPY88p2KwUme8rx3I4+CRZiturqpVITC0mi4PK8aB8GM4nU8tGAMQYeb8Pv45ZFDBFYr+ftrVoXCECY3PLEcSYELIHO8diJOQgZaLvt559NEAxQqOPwtmMcBjiR1/PMeSwFJHfH8N2RQAoUXrTp66hVFApGn+DyvmwhBTGH0fPTgjMGHm7A7+OZRQ0PVqzn77BdGAg+ltryxnMpBSl+zPLaizsIGGS57OihUBELTKXh8bllHgU2jdXzzn0vBSF0xe/glEILElyx6OyrWBUIQ5zd8sFuJAUuhM/z1YU2Bhxqvu7mnEgODlOq5O+zYBoGPJPY88p2KwUme8rx" + } + ], + "stop_reason": "max_tokens", + "stop_sequence": null, + "usage": { + "input_tokens": 349, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 4000 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..48e77ec --- /dev/null +++ b/readme.scroll @@ -0,0 +1,3 @@ +# habits.scroll.pub + +website generated by Claude from prompt: vamos criar um site suermoderno gerenciador de hábitos, todos dados de armazenamento como criação de hábitos, edições e etc... serão salvos em um arquivo json e recuperado dele. a interface tem que ser super moderna, use efeitos, transições partículas e até efeitos sonoros se for o caso. \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..683e476 --- /dev/null +++ b/style.css @@ -0,0 +1,142 @@ +:root { + --primary: #4CAF50; + --background: #1a1a1a; + --text: #ffffff; + --card: #2d2d2d; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Inter', system-ui, sans-serif; + background: var(--background); + color: var(--text); + min-height: 100vh; + overflow-x: hidden; +} + +header { + padding: 2rem; + display: flex; + justify-content: space-between; + align-items: center; + background: rgba(0,0,0,0.2); + backdrop-filter: blur(10px); + position: sticky; + top: 0; + z-index: 100; +} + +h1 { + font-size: 2.5rem; + background: linear-gradient(45deg, var(--primary), #2196F3); + -webkit-background-clip: text; + background-clip: text; + color: transparent; + animation: titleGlow 2s ease-in-out infinite alternate; +} + +.glow-button { + padding: 0.8rem 1.5rem; + border: none; + border-radius: 25px; + background: var(--primary); + color: white; + font-weight: bold; + cursor: pointer; + transition: all 0.3s ease; + box-shadow: 0 0 15px rgba(76, 175, 80, 0.3); +} + +.glow-button:hover { + transform: translateY(-2px); + box-shadow: 0 0 25px rgba(76, 175, 80, 0.5); +} + +.habits-container { + padding: 2rem; +} + +.habits-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + gap: 1.5rem; + animation: fadeIn 0.5s ease-out; +} + +.habit-card { + background: var(--card); + padding: 1.5rem; + border-radius: 15px; + transition: transform 0.3s ease; + position: relative; + overflow: hidden; +} + +.habit-card:hover { + transform: translateY(-5px); +} + +.habit-card::before { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 5px; + background: var(--color); +} + +.modal { + border: none; + border-radius: 15px; + padding: 2rem; + background: var(--card); + color: var(--text); +} + +.modal::backdrop { + background: rgba(0,0,0,0.8); + backdrop-filter: blur(5px); +} + +form { + display: flex; + flex-direction: column; + gap: 1rem; +} + +input, select { + padding: 0.8rem; + border-radius: 8px; + border: 1px solid rgba(255,255,255,0.1); + background: rgba(255,255,255,0.05); + color: var(--text); +} + +.button-group { + display: flex; + gap: 1rem; +} + +@keyframes titleGlow { + from { filter: drop-shadow(0 0 2px rgba(76, 175, 80, 0.5)); } + to { filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.8)); } +} + +@keyframes fadeIn { + from { opacity: 0; transform: translateY(20px); } + to { opacity: 1; transform: translateY(0); } +} + +@media (max-width: 768px) { + header { + flex-direction: column; + gap: 1rem; + text-align: center; + } +} \ No newline at end of file