SayProApp Courses Partner Invest Corporate Charity Divisions

SayPro Email: SayProBiz@gmail.com Call/WhatsApp: + 27 84 313 7407

SayPro Daily Task Tracker (SayPro Website Format)

SayPro is a Global Solutions Provider working with Individuals, Governments, Corporate Businesses, Municipalities, International Institutions. SayPro works across various Industries, Sectors providing wide range of solutions.

Email: info@saypro.online Call/WhatsApp: Use Chat Button 👇

Daily Task Tracker — SayPro Style


Features & Layout

  • Header: Clean, bold, large typography with the title “Daily Task Tracker”
  • Input Section: Task input box + Add Task button (primary colored, rounded edges)
  • Task List: Each task displayed with a checkbox, task name, and a delete button (hover effects)
  • Footer: Summary (e.g., Tasks Completed / Total Tasks)

Example HTML + CSS (SayPro Inspired)

htmlCopy code<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Daily Task Tracker - SayPro Style</title>
<style>
  /* Reset & base */
  body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #111827;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    padding-top: 60px;
  }

  .container {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 24px 32px;
  }

  h1 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #111827;
    text-align: center;
  }

  .task-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
  }

  input[type="text"] {
    flex-grow: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    transition: border-color 0.3s;
  }

  input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6; /* SayPro blue */
    box-shadow: 0 0 6px #3b82f6;
  }

  button.add-task {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  button.add-task:hover {
    background: #2563eb;
  }

  ul.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  ul.task-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
  }

  ul.task-list li:last-child {
    border-bottom: none;
  }

  .task-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  .task-name {
    font-size: 1rem;
    color: #374151;
    user-select: none;
  }

  .task-name.completed {
    text-decoration: line-through;
    color: #9ca3af;
  }

  button.delete-task {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
  }

  button.delete-task:hover {
    color: #b91c1c;
  }

  .footer-summary {
    margin-top: 24px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
  }
</style>
</head>
<body>
  <div class="container">
    <h1>Daily Task Tracker</h1>

    <div class="task-input-wrapper">
      <input type="text" id="taskInput" placeholder="Add a new task..." />
      <button class="add-task" id="addTaskBtn">Add</button>
    </div>

    <ul class="task-list" id="taskList"></ul>

    <div class="footer-summary" id="footerSummary">0 / 0 Tasks Completed</div>
  </div>

<script>
  const taskInput = document.getElementById('taskInput');
  const addTaskBtn = document.getElementById('addTaskBtn');
  const taskList = document.getElementById('taskList');
  const footerSummary = document.getElementById('footerSummary');

  let tasks = [];

  function renderTasks() {
    taskList.innerHTML = '';
    tasks.forEach((task, idx) => {
      const li = document.createElement('li');

      const leftDiv = document.createElement('div');
      leftDiv.classList.add('task-left');

      const checkbox = document.createElement('input');
      checkbox.type = 'checkbox';
      checkbox.checked = task.completed;
      checkbox.addEventListener('change', () => {
        tasks[idx].completed = checkbox.checked;
        renderTasks();
      });

      const span = document.createElement('span');
      span.textContent = task.name;
      span.className = 'task-name' + (task.completed ? ' completed' : '');

      leftDiv.appendChild(checkbox);
      leftDiv.appendChild(span);

      const deleteBtn = document.createElement('button');
      deleteBtn.className = 'delete-task';
      deleteBtn.textContent = '✕';
      deleteBtn.addEventListener('click', () => {
        tasks.splice(idx, 1);
        renderTasks();
      });

      li.appendChild(leftDiv);
      li.appendChild(deleteBtn);

      taskList.appendChild(li);
    });

    const completedCount = tasks.filter(t => t.completed).length;
    footerSummary.textContent = `${completedCount} / ${tasks.length} Tasks Completed`;
  }

  addTaskBtn.addEventListener('click', () => {
    const taskName = taskInput.value.trim();
    if (taskName !== '') {
      tasks.push({ name: taskName, completed: false });
      taskInput.value = '';
      renderTasks();
    }
  });

  taskInput.addEventListener('keydown', (e) => {
    if (e.key === 'Enter') {
      addTaskBtn.click();
    }
  });

  renderTasks();
</script>
</body>
</html>

How This Matches SayPro Style:

  • Colors: Uses a clean, soft gray background with a bright blue accent (#3b82f6), common in SayPro’s palette.
  • Typography: Uses a modern sans-serif font similar to Inter or system UI fonts.
  • UI Elements: Rounded inputs and buttons, subtle shadows for card effect, smooth hover transitions.
  • Layout: Centered container, minimal spacing, clear hierarchy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *