Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Improved #315

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 112 additions & 80 deletions Todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,107 +3,139 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Todo-List</title>
<title>Task Manager Pro</title>
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<div class="container">
<h1 class="subtitle">Todo-List</h1>

<div class="js-add-grid" id="add-todo">
<input
type="text"
placeholder="Add a new task here...."
class="js-name-input"
/>
<!-- Navigation -->
<nav class="top-nav">
<div class="nav-content">
<a href="index.html" class="nav-brand">
<i class="fas fa-chevron-left"></i>
Back to Home
</a>
</div>
</nav>

<input type="date" class="js-date-input" min="" />
<input type="time" class="js-time-input" />
<select class="js-category-input">
<option value="">Select Category</option>
<option value="work">Work</option>
<option value="personal">Personal</option>
<option value="shopping">Shopping</option>
<option value="other">Other</option>
</select>
<select class="js-priority-input">
<option value="">Select Priority</option>
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
<div class="js-actions-wrapper">
<button class="js-add-button" title="Add tasks">
<i class="fa-solid fa-add"></i> &nbsp; Add tasks
</button>
<button class="js-cancel-button" title="Cancel">
<i class="fa-solid fa-times"></i>
</button>
<div class="content">
<h1 class="title">Task Manager</h1>
<div class="container">
<!-- Task Input Form -->
<div class="task-form">
<div class="input-grid">
<input
type="text"
placeholder="What needs to be done?"
class="js-name-input task-input"
/>
<input type="date" class="js-date-input date-input" />
<input type="time" class="js-time-input time-input" />
<select class="js-category-input category-input">
<option value="">Category</option>
<option value="work">Work</option>
<option value="personal">Personal</option>
<option value="shopping">Shopping</option>
<option value="other">Other</option>
</select>
<select class="js-priority-input priority-input">
<option value="">Priority</option>
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
<div class="button-group">
<button class="js-add-button add-btn">
<i class="fas fa-plus"></i> Add Task
</button>
<button class="js-cancel-button cancel-btn">
<i class="fas fa-times"></i>
</button>
</div>
</div>
</div>
<div id="js-success-notification" style="display: none">
<p>Task completed 🎉</p>

<!-- Task Controls -->
<div class="task-controls">
<div class="filter-sort">
<button class="control-btn" onclick="sortTodos('category')">
<i class="fas fa-sort"></i> Category
</button>
<button class="control-btn" onclick="sortTodos('priority')">
<i class="fas fa-sort"></i> Priority
</button>
<select
class="js-filter-input filter-select"
onchange="filterTodos()"
>
<option value="all">All Tasks</option>
<option value="pending">Pending</option>
<option value="completed">Completed</option>
</select>
</div>
</div>
</div>

<!-- Add this new div for sorting buttons -->
<div class="sort-buttons">
<div class="sort-filter-container">
<button class="sort-button" onclick="sortTodos('category')">
Sort by Category
</button>
<button class="sort-button" onclick="sortTodos('priority')">
Sort by Priority
</button>
<select class="js-filter-input" onchange="filterTodos()">
<option value="all">All</option>
<option value="pending">Pending</option>
<option value="completed">Completed</option>
</select>
<!-- Task List Container -->
<div class="task-list-container">
<div class="js-add-html tasks-grid"></div>
</div>
</div>
<div class="test">
<div class="js-add-html js-add-grid js-add-html-tasks"></div>
</div>
</div>

<!-- Success Notification -->
<div id="js-success-notification" class="success-notification">
<p><i class="fas fa-check-circle"></i> Task completed successfully!</p>
</div>

<!-- Footer -->
<footer class="footer">
<p>
&copy; <span class="year"></span> Made with &#10084; by Ansh Grover. All
rights reserved.
&copy; <span class="year"></span> Made with
<i class="fas fa-heart"></i> by Ansh Grover
</p>
<div class="social-media">
<a class="insta" href="https://www.instagram.com/" target="_blank"
><i class="fa-brands fa-instagram"></i
></a>
<a class="facebook" href="https://www.facebook.com/" target="_blank"
><i class="fa-brands fa-facebook"></i
></a>
<a class="x" href="https://x.com/i/flow/login" target="_blank"
><i class="fa-brands fa-x-twitter"></i
></a>
<a class="linkedin" href="https://www.linkedin.com/" target="_blank"
><i class="fa-brands fa-linkedin-in"></i
></a>
<a class="github" href="https://github.com/Groverio" target="_blank"
><i class="fa-brands fa-github"></i
></a>
<a class="youtube" href="https://www.youtube.com/" target="_blank"
><i class="fa-brands fa-youtube"></i
></a>
<a
href="https://www.instagram.com/"
target="_blank"
class="social-link instagram"
>
<i class="fab fa-instagram"></i>
</a>
<a
href="https://www.facebook.com/"
target="_blank"
class="social-link facebook"
>
<i class="fab fa-facebook"></i>
</a>
<a
href="https://twitter.com/"
target="_blank"
class="social-link twitter"
>
<i class="fab fa-twitter"></i>
</a>
<a
href="https://www.linkedin.com/"
target="_blank"
class="social-link linkedin"
>
<i class="fab fa-linkedin"></i>
</a>
<a
href="https://github.com/Groverio"
target="_blank"
class="social-link github"
>
<i class="fab fa-github"></i>
</a>
</div>
</footer>

Expand Down
Loading
Loading