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

ToDoList - Etna and Linda - Week 10 #11

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Conversation

linda-f
Copy link

@linda-f linda-f commented Apr 12, 2024

Netlify link

https://linda-etna-project-todos.netlify.app/

Collaborators

[Caracal23, linda-f]

Copy link

@wwenzz wwenzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! We really enjoyed reviewing your beautiful piece and your code looks super neat and easy to understand. We can see that you did put a lot of time on the design and it looks really fun :) Moreover, you implement the scss into the project which makes it much better and clearer. You should be proud of your great work 🥳🥳🥳

//Izabel & Wen

const [darkMode, setDarkMode] = useState(false);

// Setting the Theme
const changeMode = () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it could be simplified to one-line code like this: setDarkMode(!darkMode)?

//Izabel & Wen

let uncompletedTasks = [];

if (toDoList.length === 0) {
console.log("No tasks in the list.");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to replace the console.log with some empty state handling e.g. picture or words shown on the screen.

//Izabel & Wen

return (
<>
<div
className={`heading-background ${
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! You master the conditional operations really well!

//Izabel & Wen

onChange={(event) => setTaskInput(event.target.value)}
/>

<button
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be good if the user could press Enter key to add a task as well.

//Izabel & Wen

@@ -0,0 +1,35 @@
import { GiBurningDot } from "react-icons/gi";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice implementation of react icons!

//Izabel & Wen

const addTask = (task) => {
const newTask = {
// Setting the id as the date so it stays unique also if we remove and add new tasks randomly
id: Date.now(),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wise choice of using id! It makes the logic clear and easy to follow.

//Izabel & Wen

background-repeat: no-repeat;
}

// Root Colors for the different Themes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really cool variables! Super neat!

//Izabel & Wen

@import "../index.scss";

// Main Styling of the heading
.heading-background {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's really cool that you implemented scss without any instructions. Great initiative!

//Izabel & Wen

}

// Responsive Styling
@media (min-width: 460px) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are wondering why you chose 460px and 820px as the breakpoints. Could you kindly explain it?

//Izabel & Wen

Copy link
Contributor

@AntonellaMorittu AntonellaMorittu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Etna and Linda, well done this week with the Todo App! Your app works well and looks nice as well, it's built meeting the requirements and following accessibility and responsiveness. Good use of updating global state with React Context, great you used also moment.js and added a state for the theme! You code is tidy and well structured, I can see you had fun and it made very enjoyable using the app itself! ❤️ Keep up the awesome work ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants