Changes to habits.scroll.pub

root
root
11 days ago
Initial commit
body.html
Changed around line 1
+
+

HabitFlow

+
+
+
+
+
+
+
+
+
+
+
+
+

Create New Habit

+
+
+
+
+
+
+
+
+
+
+
+
+

Built with ♥ by HabitFlow

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://habits.scroll.pub
+ metaTags
+ editButton /edit.html
+ title HabitFlow - Modern Habit Tracker
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "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
\n

HabitFlow

\n \n
\n\n
\n
\n \n
\n
\n
\n\n \n
\n

Create New Habit

\n \n \n \n
\n \n \n
\n
\n
\n
\n\n
\n

Built with ♥ by HabitFlow

\n
\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+ftrVoXCECY3PLEcSYELIHO8diJOQgZaLvt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Xh8bllHgU2jdXzzn0vBSF0xe/glEILElyx6OyrWBUIQ5zd8sFuJAUuhM/z1YU2Bhxqvu7mnEgODlOq5O+zYBoGPJPY88p2KwUme8rx3I4+CRZiturqpVITC0mi4PK8aB8GM4nU8tGAMQYeb8Pv45ZFDBFYr+ftrVoXCECY3PLEcSYELIHO8diJOQgZaLvt559NEAxQqOPwtmMcBjiR1/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
+ }
+ }
readme.scroll
Changed around line 1
+ # 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.
style.css
Changed around line 1
+ :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;
+ }
+ }