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

Anna´s to-do´s #32

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3db8938
installed zustand, created task component and useTaskstore
Anna2024WebDev Nov 20, 2024
800e4ff
created tasklist and addtask component for the mapping of tasks and t…
Anna2024WebDev Nov 21, 2024
4ba1d73
changed colors on task notes, updated background, changed fonts and o…
Anna2024WebDev Nov 21, 2024
5142b8d
changed styling on button
Anna2024WebDev Nov 21, 2024
d6d93cf
Added count for total tasks and completed tasks in the useTaskStore, …
Anna2024WebDev Nov 22, 2024
66f6c43
added a condition to only display the counter container for tasks com…
Anna2024WebDev Nov 22, 2024
f9c4d6a
updated accessibility for checkbox
Anna2024WebDev Nov 22, 2024
996c48b
style fix
Anna2024WebDev Nov 22, 2024
922deea
changed fonts, added handlekey down function for the button, more sty…
Anna2024WebDev Nov 22, 2024
07e1f7a
added a favicon
Anna2024WebDev Nov 22, 2024
4148413
changed some styling, removed image, changed layout on mobile using f…
Anna2024WebDev Nov 22, 2024
51163b9
small fix
Anna2024WebDev Nov 22, 2024
98d352f
Update Task.jsx
Anna2024WebDev Nov 22, 2024
d753243
updated width and added max-width to task boxes and added font awesom…
Anna2024WebDev Nov 23, 2024
cf48fc4
Merge branch 'main' of https://github.com/Anna2024WebDev/project-to-d…
Anna2024WebDev Nov 23, 2024
58229e9
added validation for button click and keydown press so no empty tasks…
Anna2024WebDev Nov 23, 2024
e3510ca
updated readme and cleaned up code
Anna2024WebDev Nov 23, 2024
a7b4418
changed color on task container and other CSS fix
Anna2024WebDev Nov 24, 2024
21a3b7b
deleted unused img
Anna2024WebDev Nov 24, 2024
0ad1a8a
added more box shadow to task container
Anna2024WebDev Nov 24, 2024
524f725
changed box-shadow for a more 3d effect on the post its/task container
Anna2024WebDev Nov 25, 2024
b6627fc
changed colors
Anna2024WebDev Nov 25, 2024
81c6df2
changed font colors in header, check-mark img and taskcontainer, also…
Anna2024WebDev Nov 25, 2024
664f452
added attribution to flaticon for the usage of img
Anna2024WebDev Nov 25, 2024
343b412
cleaned up
Anna2024WebDev Nov 25, 2024
426e420
removed redundant code and comments
Anna2024WebDev Nov 27, 2024
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
26 changes: 6 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,18 @@

# Todo - useContext Project

Replace this readme with your own information about your project.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
This week we learned about global state management and using Zustand to store information.

## Getting Started with the Project

### Dependency Installation & Startup Development Server

Once cloned, navigate to the project's root directory and this project uses npm (Node Package Manager) to manage its dependencies.

The command below is a combination of installing dependencies, opening up the project on VS Code and it will run a development server on your terminal.

```bash
npm i && code . && npm run dev
```
I started with planning for my to do list. I wanted to have a post it like to do list. At first I did the same layout for desktop, tablet and mobile with a grid of cards but changed the mobile version to flexbox and slimmer, wider cards stacking on each other.

### The Problem

Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next?
I had difficulties understanding what to put in the store and which functions to add but I looked a lot at Matildas live sessions and tried to follow that together with help from chatGPT. I also looked a lot at the happy thoughts project to get some inspiration and used some functions and conditionals from there. I found out after asking chat GPT about storage, that Zustand had a built in storage function called persist similar to locale.storage, so I used that.

### View it live

Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
If I had more time I would go for another layout on mobile but I like the color switch and line trough that I have when a task is completed and that works best when having separate task boxes.

## Instructions
### View it live

<a href="instructions.md">
See instructions of this project
</a>
https://my-todo-postits.netlify.app/
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Todos App Context API</title>
<meta name="icon-attribution" content="Empty icons created by Freepik - Flaticon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="icon" type="image/png" href="./src/assets/favicon.png" />
<link href="https://fonts.googleapis.com/css2?family=Anton&family=Inconsolata:[email protected]&family=Indie+Flower&family=Kosugi+Maru&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Reenie+Beanie&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>My todo list</title>
</head>
<body>
<div id="root"></div>
Expand Down
178 changes: 164 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"preview": "vite preview"
},
"dependencies": {
"font-awesome": "^4.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.18.0"
"react-router-dom": "^6.18.0",
"styled-components": "^6.1.13",
"zustand": "^5.0.1"
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down
15 changes: 13 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
import { Header } from "./components/Header"
import { AddTask } from "./components/AddTask"
import { Tasklist } from "./components/Tasklist"


export const App = () => {
return <div>Find me in App.jsx!</div>;
};
return (
<div>
<Header />
<AddTask />
<Tasklist />
</div>
)
}
1 change: 1 addition & 0 deletions src/assets/check-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/no-task.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading