Changes to taskflow1.scroll.pub

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

TaskFlow

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

Pending Tasks

+
    +
    +
    +
    +

    Completed Tasks

    +
      +
      +
      +
      +
      +
      +

      Built with ❤️ by TaskFlow

      +
      index.scroll
      Changed around line 1
      + buildHtml
      + baseUrl https://taskflow.scroll.pub
      + metaTags
      + editButton /edit.html
      + title TaskFlow - Smart Task & Reminder Management
      + style.css
      + body.html
      + script.js
      prompt.json
      Changed around line 1
      + {
      + "id": "msg_01TR8qqDPvXieZftHr29M9kz",
      + "type": "message",
      + "role": "assistant",
      + "model": "claude-3-5-sonnet-20241022",
      + "content": [
      + {
      + "type": "text",
      + "text": "I'll help create a task management and reminder website. For the domain, I suggest:\n\n---domain---\ntaskflow.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://taskflow.scroll.pub\nmetaTags\neditButton /edit.html\ntitle TaskFlow - Smart Task & Reminder Management\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n
      \n \n
      \n\n
      \n
      \n
      \n
      \n \n \n \n
      \n
      \n
      \n\n
      \n
      \n

      Pending Tasks

      \n
        \n
        \n \n
        \n

        Completed Tasks

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

          Built with ❤️ by TaskFlow

          \n
          \n\n---style.css---\n:root {\n --primary: #2563eb;\n --background: #ffffff;\n --text: #1f2937;\n --surface: #f3f4f6;\n --border: #e5e7eb;\n --shadow: rgba(0, 0, 0, 0.1);\n}\n\n[data-theme=\"dark\"] {\n --primary: #60a5fa;\n --background: #111827;\n --text: #f9fafb;\n --surface: #1f2937;\n --border: #374151;\n --shadow: rgba(0, 0, 0, 0.3);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: system-ui, -apple-system, sans-serif;\n background: var(--background);\n color: var(--text);\n line-height: 1.6;\n transition: background-color 0.3s, color 0.3s;\n}\n\nheader {\n background: var(--surface);\n padding: 1rem;\n box-shadow: 0 2px 4px var(--shadow);\n}\n\nnav {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\nh1 {\n font-size: 1.8rem;\n font-weight: 700;\n}\n\n.task { color: var(--primary); }\n.flow { color: var(--text); }\n\n#themeToggle {\n background: none;\n border: none;\n font-size: 1.5rem;\n cursor: pointer;\n padding: 0.5rem;\n border-radius: 50%;\n transition: background-color 0.3s;\n}\n\n#themeToggle:hover {\n background: var(--border);\n}\n\nmain {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.task-input {\n margin-bottom: 2rem;\n}\n\n.input-group {\n display: flex;\n gap: 1rem;\n flex-wrap: wrap;\n}\n\ninput, button {\n padding: 0.75rem 1rem;\n border: 2px solid var(--border);\n border-radius: 0.5rem;\n background: var(--surface);\n color: var(--text);\n font-size: 1rem;\n}\n\ninput {\n flex: 1;\n min-width: 200px;\n}\n\nbutton {\n background: var(--primary);\n color: white;\n border: none;\n cursor: pointer;\n transition: opacity 0.3s;\n}\n\nbutton:hover {\n opacity: 0.9;\n}\n\n.task-lists {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n}\n\n.list-container {\n background: var(--surface);\n border-radius: 1rem;\n padding: 1.5rem;\n box-shadow: 0 4px 6px var(--shadow);\n}\n\nh2 {\n margin-bottom: 1rem;\n color: var(--primary);\n}\n\n.task-list {\n list-style: none;\n}\n\n.task-item {\n display: flex;\n align-items: center;\n gap: 1rem;\n padding: 1rem;\n background: var(--background);\n border-radius: 0.5rem;\n margin-bottom: 0.5rem;\n animation: slideIn 0.3s ease-out;\n}\n\n@keyframes slideIn {\n from {\n opacity: 0;\n transform: translateY(10px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n.task-item checkbox {\n width: 1.2rem;\n height: 1.2rem;\n}\n\n.task-item.completed {\n opacity: 0.7;\n text-decoration: line-through;\n}\n\nfooter {\n text-align: center;\n padding: 2rem;\n background: var(--surface);\n margin-top: 4rem;\n}\n\n@media (max-width: 768px) {\n .input-group {\n flex-direction: column;\n }\n \n input, button {\n width: 100%;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const taskForm = document.getElementById('taskForm');\n const taskInput = document.getElementById('taskInput');\n const reminderTime = document.getElementById('reminderTime');\n const pendingTasks = document.getElementById('pendingTasks');\n const completedTasks = document.getElementById('completedTasks');\n const themeToggle = document.getElementById('themeToggle');\n\n // Load tasks from localStorage\n let tasks = JSON.parse(localStorage.getItem('tasks')) || [];\n\n // Theme handling\n const theme = localStorage.getItem('theme') || 'light';\n document.documentElement.setAttribute('data-theme', theme);\n themeToggle.textContent = theme === 'light' ? '🌙' : '☀️';\n\n themeToggle.addEventListener('click', () => {\n const currentTheme = document.documentElement.getAttribute('data-theme');\n const newTheme = currentTheme === 'light' ? 'dark' : 'light';\n document.documentElement.setAttribute('data-theme', newTheme);\n localStorage.setItem('theme', newTheme);\n themeToggle.textContent = newTheme === 'light' ? '🌙' : '☀️';\n });\n\n // Render tasks\n function renderTasks() {\n pendingTasks.innerHTML = '';\n completedTasks.innerHTML = '';\n\n tasks.forEach((task, index) => {\n const li = document.createElement('li');\n li.className = `task-item ${task.completed ? 'completed' : ''}`;\n \n li.innerHTML = `\n \n ${task.text}\n ${task.reminder ? `${new Date(task.reminder).toLocaleString()}` : ''}\n \n `;\n\n li.querySelector('input').addEventListener('change', () => toggleTask(index));\n \n if (task.completed) {\n completedTasks.appendChild(li);\n } else {\n pendingTasks.appendChild(li);\n }\n });\n\n localStorage.setItem('tasks', JSON.stringify(tasks));\n }\n\n // Add task\n taskForm.addEventListener('submit', (e) => {\n e.preventDefault();\n \n const text = taskInput.value.trim();\n const reminder = reminderTime.value;\n \n if (text) {\n tasks.push({\n text,\n reminder: reminder || null,\n completed: false,\n createdAt: new Date().toISOString()\n });\n\n if (reminder) {\n scheduleReminder(text, reminder);\n }\n\n taskInput.value = '';\n reminderTime.value = '';\n renderTasks();\n }\n });\n\n // Toggle task completion\n window.toggleTask = (index) => {\n tasks[index].completed = !tasks[index].completed;\n renderTasks();\n };\n\n // Delete task\n window.deleteTask = (index) => {\n tasks.splice(index, 1);\n renderTasks();\n };\n\n // Schedule reminder\n function scheduleReminder(text, time) {\n const reminderTime = new Date(time).getTime();\n const now = new Date().getTime();\n \n if (reminderTime > now) {\n setTimeout(() => {\n if (Notification.permission === 'granted') {\n new Notification('Task Reminder', { body: text });\n }\n }, reminderTime - now);\n }\n }\n\n // Request notification permission\n if ('Notification' in window) {\n Notification.requestPermission();\n }\n\n // Initial render\n renderTasks();\n});\n\n---end---\n\nThis implementation creates a beautiful, functional task management system with the following features:\n\n1. Add tasks with optional reminders\n2. Mark tasks as complete/incomplete\n3. Delete tasks\n4. Separate pending and completed task lists\n5. Dark/light theme toggle\n6. Local storage persistence\n7. Desktop notifications for reminders\n8. Fully responsive design\n9. Smooth animations\n10. Accessible controls and semantic HTML\n\nThe design is clean and modern, with careful attention to:\n- Color contrast for accessibility\n- Smooth transitions and animations\n- Responsive layout that works on all devices\n- Interactive elements with hover states\n- Beautiful shadow effects\n- Consistent spacing and typography\n- Clear visual hierarchy\n\nThe code follows best practices with:\n- Semantic HTML5 elements\n- CSS custom properties for theming\n- Clean, modular JavaScript\n- Local storage for data persistence\n- Proper event handling\n- Accessibility attributes\n- Responsive design patterns"
          + }
          + ],
          + "stop_reason": "end_turn",
          + "stop_sequence": null,
          + "usage": {
          + "input_tokens": 294,
          + "cache_creation_input_tokens": 0,
          + "cache_read_input_tokens": 0,
          + "output_tokens": 2770
          + }
          + }
          readme.scroll
          Changed around line 1
          + # taskflow1.scroll.pub
          + Website generated by Claude from prompt: I want to create a website that can help me keep track of things I want to do and also help me set reminder
          script.js
          Changed around line 1
          + document.addEventListener('DOMContentLoaded', () => {
          + const taskForm = document.getElementById('taskForm');
          + const taskInput = document.getElementById('taskInput');
          + const reminderTime = document.getElementById('reminderTime');
          + const pendingTasks = document.getElementById('pendingTasks');
          + const completedTasks = document.getElementById('completedTasks');
          + const themeToggle = document.getElementById('themeToggle');
          +
          + // Load tasks from localStorage
          + let tasks = JSON.parse(localStorage.getItem('tasks')) || [];
          +
          + // Theme handling
          + const theme = localStorage.getItem('theme') || 'light';
          + document.documentElement.setAttribute('data-theme', theme);
          + themeToggle.textContent = theme === 'light' ? '🌙' : '☀️';
          +
          + themeToggle.addEventListener('click', () => {
          + const currentTheme = document.documentElement.getAttribute('data-theme');
          + const newTheme = currentTheme === 'light' ? 'dark' : 'light';
          + document.documentElement.setAttribute('data-theme', newTheme);
          + localStorage.setItem('theme', newTheme);
          + themeToggle.textContent = newTheme === 'light' ? '🌙' : '☀️';
          + });
          +
          + // Render tasks
          + function renderTasks() {
          + pendingTasks.innerHTML = '';
          + completedTasks.innerHTML = '';
          +
          + tasks.forEach((task, index) => {
          + const li = document.createElement('li');
          + li.className = `task-item ${task.completed ? 'completed' : ''}`;
          +
          + li.innerHTML = `
          +
          + ${task.text}
          + ${task.reminder ? `${new Date(task.reminder).toLocaleString()}` : ''}
          +
          + `;
          +
          + li.querySelector('input').addEventListener('change', () => toggleTask(index));
          +
          + if (task.completed) {
          + completedTasks.appendChild(li);
          + } else {
          + pendingTasks.appendChild(li);
          + }
          + });
          +
          + localStorage.setItem('tasks', JSON.stringify(tasks));
          + }
          +
          + // Add task
          + taskForm.addEventListener('submit', (e) => {
          + e.preventDefault();
          +
          + const text = taskInput.value.trim();
          + const reminder = reminderTime.value;
          +
          + if (text) {
          + tasks.push({
          + text,
          + reminder: reminder || null,
          + completed: false,
          + createdAt: new Date().toISOString()
          + });
          +
          + if (reminder) {
          + scheduleReminder(text, reminder);
          + }
          +
          + taskInput.value = '';
          + reminderTime.value = '';
          + renderTasks();
          + }
          + });
          +
          + // Toggle task completion
          + window.toggleTask = (index) => {
          + tasks[index].completed = !tasks[index].completed;
          + renderTasks();
          + };
          +
          + // Delete task
          + window.deleteTask = (index) => {
          + tasks.splice(index, 1);
          + renderTasks();
          + };
          +
          + // Schedule reminder
          + function scheduleReminder(text, time) {
          + const reminderTime = new Date(time).getTime();
          + const now = new Date().getTime();
          +
          + if (reminderTime > now) {
          + setTimeout(() => {
          + if (Notification.permission === 'granted') {
          + new Notification('Task Reminder', { body: text });
          + }
          + }, reminderTime - now);
          + }
          + }
          +
          + // Request notification permission
          + if ('Notification' in window) {
          + Notification.requestPermission();
          + }
          +
          + // Initial render
          + renderTasks();
          + });
          style.css
          Changed around line 1
          + :root {
          + --primary: #2563eb;
          + --background: #ffffff;
          + --text: #1f2937;
          + --surface: #f3f4f6;
          + --border: #e5e7eb;
          + --shadow: rgba(0, 0, 0, 0.1);
          + }
          +
          + [data-theme="dark"] {
          + --primary: #60a5fa;
          + --background: #111827;
          + --text: #f9fafb;
          + --surface: #1f2937;
          + --border: #374151;
          + --shadow: rgba(0, 0, 0, 0.3);
          + }
          +
          + * {
          + margin: 0;
          + padding: 0;
          + box-sizing: border-box;
          + }
          +
          + body {
          + font-family: system-ui, -apple-system, sans-serif;
          + background: var(--background);
          + color: var(--text);
          + line-height: 1.6;
          + transition: background-color 0.3s, color 0.3s;
          + }
          +
          + header {
          + background: var(--surface);
          + padding: 1rem;
          + box-shadow: 0 2px 4px var(--shadow);
          + }
          +
          + nav {
          + max-width: 1200px;
          + margin: 0 auto;
          + display: flex;
          + justify-content: space-between;
          + align-items: center;
          + }
          +
          + h1 {
          + font-size: 1.8rem;
          + font-weight: 700;
          + }
          +
          + .task { color: var(--primary); }
          + .flow { color: var(--text); }
          +
          + #themeToggle {
          + background: none;
          + border: none;
          + font-size: 1.5rem;
          + cursor: pointer;
          + padding: 0.5rem;
          + border-radius: 50%;
          + transition: background-color 0.3s;
          + }
          +
          + #themeToggle:hover {
          + background: var(--border);
          + }
          +
          + main {
          + max-width: 1200px;
          + margin: 2rem auto;
          + padding: 0 1rem;
          + }
          +
          + .task-input {
          + margin-bottom: 2rem;
          + }
          +
          + .input-group {
          + display: flex;
          + gap: 1rem;
          + flex-wrap: wrap;
          + }
          +
          + input, button {
          + padding: 0.75rem 1rem;
          + border: 2px solid var(--border);
          + border-radius: 0.5rem;
          + background: var(--surface);
          + color: var(--text);
          + font-size: 1rem;
          + }
          +
          + input {
          + flex: 1;
          + min-width: 200px;
          + }
          +
          + button {
          + background: var(--primary);
          + color: white;
          + border: none;
          + cursor: pointer;
          + transition: opacity 0.3s;
          + }
          +
          + button:hover {
          + opacity: 0.9;
          + }
          +
          + .task-lists {
          + display: grid;
          + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
          + gap: 2rem;
          + }
          +
          + .list-container {
          + background: var(--surface);
          + border-radius: 1rem;
          + padding: 1.5rem;
          + box-shadow: 0 4px 6px var(--shadow);
          + }
          +
          + h2 {
          + margin-bottom: 1rem;
          + color: var(--primary);
          + }
          +
          + .task-list {
          + list-style: none;
          + }
          +
          + .task-item {
          + display: flex;
          + align-items: center;
          + gap: 1rem;
          + padding: 1rem;
          + background: var(--background);
          + border-radius: 0.5rem;
          + margin-bottom: 0.5rem;
          + animation: slideIn 0.3s ease-out;
          + }
          +
          + @keyframes slideIn {
          + from {
          + opacity: 0;
          + transform: translateY(10px);
          + }
          + to {
          + opacity: 1;
          + transform: translateY(0);
          + }
          + }
          +
          + .task-item checkbox {
          + width: 1.2rem;
          + height: 1.2rem;
          + }
          +
          + .task-item.completed {
          + opacity: 0.7;
          + text-decoration: line-through;
          + }
          +
          + footer {
          + text-align: center;
          + padding: 2rem;
          + background: var(--surface);
          + margin-top: 4rem;
          + }
          +
          + @media (max-width: 768px) {
          + .input-group {
          + flex-direction: column;
          + }
          +
          + input, button {
          + width: 100%;
          + }
          + }