This commit is contained in:
2026-03-31 19:32:41 +08:00
parent c0e035a4bd
commit 2f3ea44a5c
9 changed files with 470 additions and 615 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
backend\node_modules

View File

@@ -1,47 +1,31 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>To Do App | Dashboard</title> <title>To Do App | Dashboard</title>
<link <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous" />
rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./css/styles.css" /> <link rel="stylesheet" href="./css/styles.css" />
</head> </head>
<body>
<body>
<nav class="navbar navbar-expand-lg"> <nav class="navbar navbar-expand-lg">
<div class="container"> <div class="container">
<a class="navbar-brand" href="./index.html"> <a class="navbar-brand" href="./index.html">
<img src="./images/logo.svg" alt="Logo" width="50" height="auto" /> <img src="./images/logo.svg" alt="Logo" width="50" height="auto" />
</a> </a>
<button <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
class="navbar-toggler" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
type="button" <img src="./images/Hamburger.svg" alt="hamburger icon" height="40px" width="auto" />
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<img
src="./images/Hamburger.svg"
alt="hamburger icon"
height="40px"
width="auto"
/>
</button> </button>
<div class="collapse navbar-collapse" id="navbarNav"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto text-end"> <ul class="navbar-nav ms-auto text-end">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" aria-current="page" href="./index.html" <a class="nav-link" aria-current="page" href="./index.html">Home</a>
>Home</a
>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="./features.html">Features</a> <a class="nav-link" href="./features.html">Features</a>
@@ -59,47 +43,23 @@
<main> <main>
<div class="bg-img dashboard py-5"> <div class="bg-img dashboard py-5">
<div <div class="d-flex justify-content-center flex-column align-items-center container">
class="d-flex justify-content-center flex-column align-items-center container"
>
<div class="rounded shadow bg-translucent p-3 p-lg-5 col-12"> <div class="rounded shadow bg-translucent p-3 p-lg-5 col-12">
<form id="taskForm" class="mb-5 text-white"> <form id="taskForm" class="mb-5 text-white">
<h1 id="greeting" class="mb-5 display-3">Your Dashboard</h1> <h1 id="greeting" class="mb-5 display-3">Your Dashboard</h1>
<h2 class="mb-3">New Task</h2> <h2 class="mb-3">New Task</h2>
<input <input id="taskName" name="taskName" placeholder="Task Name" class="mb-2 form-control shadow-sm" type="text"
id="taskName" required />
name="taskName" <textarea id="taskDescription" name="taskDescription" placeholder="Task Description"
placeholder="Task Name" class="mb-2 form-control shadow-sm" rows="8" required></textarea>
class="mb-2 form-control shadow-sm" <input id="dueDate" name="dueDate" type="date" class="mb-3 form-control shadow-sm" required
type="text" placeholder="Due Date" />
required
/>
<textarea
id="taskDescription"
name="taskDescription"
placeholder="Task Description"
class="mb-2 form-control shadow-sm"
rows="8"
required
></textarea>
<input
id="dueDate"
name="dueDate"
type="date"
class="mb-3 form-control shadow-sm"
required
placeholder="Due Date"
/>
<button type="submit" class="btn btn-primary shadow-sm px-5"> <button type="submit" class="btn btn-primary shadow-sm px-5">
Create Task Create Task
</button> </button>
<div class="d-flex align-items-center gap-3 my-5"> <div class="d-flex align-items-center gap-3 my-5">
<label for="sortSelect" class="text-white">Sort by:</label> <label for="sortSelect" class="text-white">Sort by:</label>
<select <select name="sortSelect" id="sortSelect" class="form-select w-auto shadow-none">
name="sortSelect"
id="sortSelect"
class="form-select w-auto shadow-none"
>
<option value="default" selected>Default</option> <option value="default" selected>Default</option>
<option value="dueDate">Due Date</option> <option value="dueDate">Due Date</option>
<option value="dateCreate">Date Created</option> <option value="dateCreate">Date Created</option>
@@ -124,16 +84,9 @@
<!-- ↓ Footer ↓ --> <!-- ↓ Footer ↓ -->
<footer> <footer>
<div class="py-5 container"> <div class="py-5 container">
<div <div class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5">
class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5"
>
<a href="./index.html"> <a href="./index.html">
<img <img src="./images/logo.svg" alt="logo" height="100px" width="auto" />
src="./images/logo.svg"
alt="logo"
height="100px"
width="auto"
/>
</a> </a>
<div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4"> <div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4">
@@ -142,33 +95,26 @@
</h3> </h3>
<div class="input-group"> <div class="input-group">
<input <input placeholder="Enter your email" type="email" class="form-control" />
placeholder="Enter your email"
type="email"
class="form-control"
/>
<button class="btn btn-primary">Subscribe</button> <button class="btn btn-primary">Subscribe</button>
</div> </div>
</div> </div>
</div> </div>
<div <div class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center">
class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center"
>
<a class="nav-link" href="#">Privacy Policy</a> <a class="nav-link" href="#">Privacy Policy</a>
<p class="m-0 d-none d-md-block">|</p> <p class="m-0 d-none d-md-block">|</p>
<a class="nav-link" href="#">Terms of Service</a> <a class="nav-link" href="#">Terms of Service</a>
<p class="mb-0 me-3 d-none d-md-block">|</p> <p class="mb-0 me-3 d-none d-md-block">|</p>
<p class="m-0">BucketList &COPY; 2025 All Rights Reserved</p> <p class="m-0">BucketLisk &COPY; 2025 All Rights Reserved</p>
</div> </div>
</div> </div>
</footer> </footer>
<script src="./js/api.js"></script> <script src="./js/api.js"></script>
<script <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI"
crossorigin="anonymous" crossorigin="anonymous"></script>
></script> </body>
</body>
</html> </html>

View File

@@ -1,47 +1,31 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>To Do App | Features</title> <title>To Do App | Features</title>
<link <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous" />
rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./css/styles.css" /> <link rel="stylesheet" href="./css/styles.css" />
</head> </head>
<body>
<body>
<nav class="navbar navbar-expand-lg"> <nav class="navbar navbar-expand-lg">
<div class="container"> <div class="container">
<a class="navbar-brand" href="./index.html"> <a class="navbar-brand" href="./index.html">
<img src="./images/logo.svg" alt="Logo" width="50" height="auto" /> <img src="./images/logo.svg" alt="Logo" width="50" height="auto" />
</a> </a>
<button <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
class="navbar-toggler" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
type="button" <img src="./images/Hamburger.svg" alt="hamburger icon" height="40px" width="auto" />
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<img
src="./images/Hamburger.svg"
alt="hamburger icon"
height="40px"
width="auto"
/>
</button> </button>
<div class="collapse navbar-collapse" id="navbarNav"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto text-end"> <ul class="navbar-nav ms-auto text-end">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" aria-current="page" href="./index.html" <a class="nav-link" aria-current="page" href="./index.html">Home</a>
>Home</a
>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link active" href="./features.html">Features</a> <a class="nav-link active" href="./features.html">Features</a>
@@ -58,16 +42,9 @@
</nav> </nav>
<!-- ↓ Page not ready ↓ --> <!-- ↓ Page not ready ↓ -->
<section <section class="bg-img d-flex justify-content-center align-items-center support py-5">
class="bg-img d-flex justify-content-center align-items-center support py-5"
>
<div class="container text-center text-white py-5"> <div class="container text-center text-white py-5">
<img <img src="./images/Construction.svg" alt="Under Construction" height="150px" width="auto" />
src="./images/Construction.svg"
alt="Under Construction"
height="150px"
width="auto"
/>
<h2 class="mt-5">Page under construction. Check back later!</h2> <h2 class="mt-5">Page under construction. Check back later!</h2>
@@ -81,16 +58,9 @@
<!-- ↓ Footer ↓ --> <!-- ↓ Footer ↓ -->
<footer> <footer>
<div class="py-5 container"> <div class="py-5 container">
<div <div class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5">
class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5"
>
<a href="./index.html"> <a href="./index.html">
<img <img src="./images/logo.svg" alt="logo" height="100px" width="auto" />
src="./images/logo.svg"
alt="logo"
height="100px"
width="auto"
/>
</a> </a>
<div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4"> <div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4">
@@ -99,33 +69,26 @@
</h3> </h3>
<div class="input-group"> <div class="input-group">
<input <input placeholder="Enter your email" type="email" class="form-control" />
placeholder="Enter your email"
type="email"
class="form-control"
/>
<button class="btn btn-primary">Subscribe</button> <button class="btn btn-primary">Subscribe</button>
</div> </div>
</div> </div>
</div> </div>
<div <div class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center">
class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center"
>
<a class="nav-link" href="#">Privacy Policy</a> <a class="nav-link" href="#">Privacy Policy</a>
<p class="m-0 d-none d-md-block">|</p> <p class="m-0 d-none d-md-block">|</p>
<a class="nav-link" href="#">Terms of Service</a> <a class="nav-link" href="#">Terms of Service</a>
<p class="mb-0 me-3 d-none d-md-block">|</p> <p class="mb-0 me-3 d-none d-md-block">|</p>
<p class="m-0">BucketList &COPY; 2025 All Rights Reserved</p> <p class="m-0">BucketLisk &COPY; 2025 All Rights Reserved</p>
</div> </div>
</div> </div>
</footer> </footer>
<script <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI"
crossorigin="anonymous" crossorigin="anonymous"></script>
></script> </body>
</body>
</html> </html>

View File

@@ -1,47 +1,31 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>To Do App | Home</title> <title>To Do App | Home</title>
<link <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous" />
rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./css/styles.css" /> <link rel="stylesheet" href="./css/styles.css" />
</head> </head>
<body>
<body>
<nav class="navbar navbar-expand-lg"> <nav class="navbar navbar-expand-lg">
<div class="container"> <div class="container">
<a class="navbar-brand" href="./index.html"> <a class="navbar-brand" href="./index.html">
<img src="./images/logo.svg" alt="Logo" width="50" height="auto" /> <img src="./images/logo.svg" alt="Logo" width="50" height="auto" />
</a> </a>
<button <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
class="navbar-toggler" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
type="button" <img src="./images/Hamburger.svg" alt="hamburger icon" height="40px" width="auto" />
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<img
src="./images/Hamburger.svg"
alt="hamburger icon"
height="40px"
width="auto"
/>
</button> </button>
<div class="collapse navbar-collapse" id="navbarNav"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto text-end"> <ul class="navbar-nav ms-auto text-end">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link active" aria-current="page" href="./index.html" <a class="nav-link active" aria-current="page" href="./index.html">Home</a>
>Home</a
>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="./features.html">Features</a> <a class="nav-link" href="./features.html">Features</a>
@@ -58,16 +42,12 @@
</nav> </nav>
<!-- ↓ Page not ready ↓ --> <!-- ↓ Page not ready ↓ -->
<main <main class="d-flex justify-content-center flex-column align-items-center bg-img">
class="d-flex justify-content-center flex-column align-items-center bg-img"
>
<h1 class="display-2 text-center text-white"> <h1 class="display-2 text-center text-white">
Stay origansed with BucketList Stay organised with BucketLisk
</h1> </h1>
<div class="d-flex justify-content-center align-items-center mt-5"> <div class="d-flex justify-content-center align-items-center mt-5">
<a href="./dashboard.html" class="btn btn-primary btn-lg px-5" <a href="./dashboard.html" class="btn btn-primary btn-lg px-5">Try it for free</a>
>Try it for free</a
>
</div> </div>
</main> </main>
<!-- ↑ Page not ready ↑ --> <!-- ↑ Page not ready ↑ -->
@@ -75,16 +55,9 @@
<!-- ↓ Footer ↓ --> <!-- ↓ Footer ↓ -->
<footer> <footer>
<div class="py-5 container"> <div class="py-5 container">
<div <div class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5">
class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5"
>
<a href="./index.html"> <a href="./index.html">
<img <img src="./images/logo.svg" alt="logo" height="100px" width="auto" />
src="./images/logo.svg"
alt="logo"
height="100px"
width="auto"
/>
</a> </a>
<div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4"> <div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4">
@@ -93,33 +66,26 @@
</h3> </h3>
<div class="input-group"> <div class="input-group">
<input <input placeholder="Enter your email" type="email" class="form-control" />
placeholder="Enter your email"
type="email"
class="form-control"
/>
<button class="btn btn-primary">Subscribe</button> <button class="btn btn-primary">Subscribe</button>
</div> </div>
</div> </div>
</div> </div>
<div <div class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center">
class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center"
>
<a class="nav-link" href="#">Privacy Policy</a> <a class="nav-link" href="#">Privacy Policy</a>
<p class="m-0 d-none d-md-block">|</p> <p class="m-0 d-none d-md-block">|</p>
<a class="nav-link" href="#">Terms of Service</a> <a class="nav-link" href="#">Terms of Service</a>
<p class="mb-0 me-3 d-none d-md-block">|</p> <p class="mb-0 me-3 d-none d-md-block">|</p>
<p class="m-0">BucketList &COPY; 2025 All Rights Reserved</p> <p class="m-0">BucketLisk &COPY; 2025 All Rights Reserved</p>
</div> </div>
</div> </div>
</footer> </footer>
<script <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI"
crossorigin="anonymous" crossorigin="anonymous"></script>
></script> </body>
</body>
</html> </html>

View File

@@ -1,38 +1,3 @@
const tasks = [
{
id: 1,
completed: false,
title: "Buy groceries for the week",
description: "Pick up vegetables, fruits, milk, eggs, and bread from the supermarket.",
dueDate: "14/03/2026",
dateCreated: new Date(Date.now()).toLocaleDateString("en-AU")
},
{
id: 2,
completed: false,
title: "Clean the apartment",
description: "Vacuum the floors, wipe kitchen surfaces, and take out the trash.",
dueDate: "16/03/2026",
dateCreated: new Date(Date.now()).toLocaleDateString("en-AU")
},
{
id: 3,
completed: false,
title: "Call the dentist for appointment",
description: "Book a routine checkup and confirm available time slots for next week.",
dueDate: "17/03/2026",
dateCreated: new Date(Date.now()).toLocaleDateString("en-AU")
},
{
id: 4,
completed: true,
title: "Do laundry and fold clothes",
description: "Wash dark and light loads separately, then fold and organize clean clothes.",
dueDate: "21/03/2026",
dateCreated: new Date(Date.now()).toLocaleDateString("en-AU")
}
];
// GLOBALS // GLOBALS
const $taskForm = document.getElementById('taskForm'); const $taskForm = document.getElementById('taskForm');
@@ -68,11 +33,27 @@ $taskForm.addEventListener("submit", (event) => {
} }
}); });
}); });
// EXAMPLE API
async function exampleAPI() {
const response = await fetch("http://localhost:3001/test");
const data = await response.text();
console.log(data);
}
exampleAPI();
// DISPLAY TASKS // DISPLAY TASKS
function displayTasks() { async function displayTasks() {
const response = await fetch("http://localhost:3001/api/tasks")
if (!response.ok) {
throw new Error(`Failed to get tasks: ${response.status}`);
}
const data = await response.json();
try {
function formatTask(task) { function formatTask(task) {
const li = document.createElement("li"); const li = document.createElement("li");
@@ -108,6 +89,12 @@ function displayTasks() {
$toDoList.innerHTML = ""; $toDoList.innerHTML = "";
$completedList.innerHTML = ""; $completedList.innerHTML = "";
const tasks = Array.isArray(data) ? data : [];
if (!Array.isArray(data)) {
console.error("ERROR: Expected an array of tasks from /api/tasks", data);
}
tasks.forEach(task => { tasks.forEach(task => {
const formattedTask = formatTask(task); const formattedTask = formatTask(task);
task.completed task.completed
@@ -115,19 +102,48 @@ function displayTasks() {
: $toDoList.appendChild(formattedTask) : $toDoList.appendChild(formattedTask)
}) })
resetForm(); resetForm();
} catch (error) {
console.error(`ERROR: ${error}`);
}
} }
function createNewTask() { async function createNewTask() {
const taskDetails = { const taskDetails = {
id: tasks.length + 1, title: $taskForm.taskName.value.trim(),
completed: false, description: $taskForm.taskDescription.value.trim(),
title: $taskForm.taskName.value, dueDate: $taskForm.dueDate.value,
description: $taskForm.taskDescription.value,
dueDate: convertDate($taskForm.dueDate.value),
dateCreated: convertDate(Date.now()),
} }
tasks.push(taskDetails); if (!taskDetails.title || !taskDetails.description || !taskDetails.dueDate) {
alert("Please fill in all fields");
return;
}
try {
const response = await fetch("http://localhost:3001/api/tasks/todo", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(taskDetails)
});
if (!response.ok) {
throw new Error(`Failed to create task: ${response.status}`);
}
const data = await response.json();
console.log("Task created:", data);
displayTasks(); displayTasks();
}
catch (error) {
console.error(`ERROR: ${error}`);
}
}; };
function toggleTaskStatus(taskId) { function toggleTaskStatus(taskId) {

View File

@@ -81,7 +81,7 @@
<p class="m-0 d-none d-md-block">|</p> <p class="m-0 d-none d-md-block">|</p>
<a class="nav-link" href="#">Terms of Service</a> <a class="nav-link" href="#">Terms of Service</a>
<p class="mb-0 me-3 d-none d-md-block">|</p> <p class="mb-0 me-3 d-none d-md-block">|</p>
<p class="m-0">BucketList &COPY; 2025 All Rights Reserved</p> <p class="m-0">BucketLisk &COPY; 2025 All Rights Reserved</p>
</div> </div>
</div> </div>
</footer> </footer>

View File

@@ -81,7 +81,7 @@
<p class="m-0 d-none d-md-block">|</p> <p class="m-0 d-none d-md-block">|</p>
<a class="nav-link" href="#">Terms of Service</a> <a class="nav-link" href="#">Terms of Service</a>
<p class="mb-0 me-3 d-none d-md-block">|</p> <p class="mb-0 me-3 d-none d-md-block">|</p>
<p class="m-0">BucketList &COPY; 2025 All Rights Reserved</p> <p class="m-0">BucketLisk &COPY; 2025 All Rights Reserved</p>
</div> </div>
</div> </div>
</footer> </footer>

View File

@@ -1,47 +1,31 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>To Do App | Signup</title> <title>To Do App | Signup</title>
<link <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous" />
rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./css/styles.css" /> <link rel="stylesheet" href="./css/styles.css" />
</head> </head>
<body>
<body>
<nav class="navbar navbar-expand-lg"> <nav class="navbar navbar-expand-lg">
<div class="container"> <div class="container">
<a class="navbar-brand" href="./index.html"> <a class="navbar-brand" href="./index.html">
<img src="./images/logo.svg" alt="Logo" width="50" height="auto" /> <img src="./images/logo.svg" alt="Logo" width="50" height="auto" />
</a> </a>
<button <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
class="navbar-toggler" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
type="button" <img src="./images/Hamburger.svg" alt="hamburger icon" height="40px" width="auto" />
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<img
src="./images/Hamburger.svg"
alt="hamburger icon"
height="40px"
width="auto"
/>
</button> </button>
<div class="collapse navbar-collapse" id="navbarNav"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto text-end"> <ul class="navbar-nav ms-auto text-end">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" aria-current="page" href="./index.html" <a class="nav-link" aria-current="page" href="./index.html">Home</a>
>Home</a
>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="./features.html">Features</a> <a class="nav-link" href="./features.html">Features</a>
@@ -58,16 +42,9 @@
</nav> </nav>
<!-- ↓ Page not ready ↓ --> <!-- ↓ Page not ready ↓ -->
<section <section class="bg-img d-flex justify-content-center align-items-center support py-5">
class="bg-img d-flex justify-content-center align-items-center support py-5"
>
<div class="container text-center text-white py-5"> <div class="container text-center text-white py-5">
<img <img src="./images/Construction.svg" alt="Under Construction" height="150px" width="auto" />
src="./images/Construction.svg"
alt="Under Construction"
height="150px"
width="auto"
/>
<h2 class="mt-5">Page under construction. Check back later!</h2> <h2 class="mt-5">Page under construction. Check back later!</h2>
@@ -81,16 +58,9 @@
<!-- ↓ Footer ↓ --> <!-- ↓ Footer ↓ -->
<footer> <footer>
<div class="py-5 container"> <div class="py-5 container">
<div <div class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5">
class="d-flex justify-content-between flex-column gap-5 gap-md-0 flex-md-row align-items-center px-3 mb-5"
>
<a href="./index.html"> <a href="./index.html">
<img <img src="./images/logo.svg" alt="logo" height="100px" width="auto" />
src="./images/logo.svg"
alt="logo"
height="100px"
width="auto"
/>
</a> </a>
<div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4"> <div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4">
@@ -99,33 +69,26 @@
</h3> </h3>
<div class="input-group"> <div class="input-group">
<input <input placeholder="Enter your email" type="email" class="form-control" />
placeholder="Enter your email"
type="email"
class="form-control"
/>
<button class="btn btn-primary">Subscribe</button> <button class="btn btn-primary">Subscribe</button>
</div> </div>
</div> </div>
</div> </div>
<div <div class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center">
class="d-flex justify-content-center flex-column gap-3 flex-md-row align-items-center"
>
<a class="nav-link" href="#">Privacy Policy</a> <a class="nav-link" href="#">Privacy Policy</a>
<p class="m-0 d-none d-md-block">|</p> <p class="m-0 d-none d-md-block">|</p>
<a class="nav-link" href="#">Terms of Service</a> <a class="nav-link" href="#">Terms of Service</a>
<p class="mb-0 me-3 d-none d-md-block">|</p> <p class="mb-0 me-3 d-none d-md-block">|</p>
<p class="m-0">BucketList &COPY; 2025 All Rights Reserved</p> <p class="m-0">BucketLisk &COPY; 2025 All Rights Reserved</p>
</div> </div>
</div> </div>
</footer> </footer>
<script <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI"
crossorigin="anonymous" crossorigin="anonymous"></script>
></script> </body>
</body>
</html> </html>

View File

@@ -81,7 +81,7 @@
<p class="m-0 d-none d-md-block">|</p> <p class="m-0 d-none d-md-block">|</p>
<a class="nav-link" href="#">Terms of Service</a> <a class="nav-link" href="#">Terms of Service</a>
<p class="mb-0 me-3 d-none d-md-block">|</p> <p class="mb-0 me-3 d-none d-md-block">|</p>
<p class="m-0">BucketList &COPY; 2025 All Rights Reserved</p> <p class="m-0">BucketLisk &COPY; 2025 All Rights Reserved</p>
</div> </div>
</div> </div>
</footer> </footer>