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

Typescript To-Do App - Elina Eriksson Hult #50

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
875f2d8
First commit, npm installed
ElinaEH Nov 19, 2024
8d143a2
Installed zustand and lottie animations to use later
ElinaEH Nov 19, 2024
91d5a2b
Structure foundation, created components and store
ElinaEH Nov 20, 2024
915abf4
Added content to TodoForm component and created state management usin…
ElinaEH Nov 20, 2024
c502462
Added content to TodoList,TodoItem and made two separate lists: inco…
ElinaEH Nov 20, 2024
d325ccb
Added header
ElinaEH Nov 20, 2024
bbd3607
Added css files to each component
ElinaEH Nov 21, 2024
201d2dc
CSS styling
ElinaEH Nov 21, 2024
b99086a
Added animation and styling
ElinaEH Nov 21, 2024
33130e1
Added additional styling and media queries
ElinaEH Nov 22, 2024
fea8235
Cleaned code and deleted unused files in assets
ElinaEH Nov 22, 2024
ecff126
Deleted icons and imported icons in proper sizes and some styling
ElinaEH Nov 22, 2024
06293ab
Styling
ElinaEH Nov 22, 2024
f9fd664
Updated readme file
ElinaEH Nov 22, 2024
d879c13
Updated icons alt texts
ElinaEH Nov 22, 2024
08a8ae0
Try error fixing, deplying site
ElinaEH Nov 22, 2024
c28c279
Error fix
ElinaEH Nov 22, 2024
dba43ed
Error fix x2
ElinaEH Nov 22, 2024
7b77ad1
Error fix x3
ElinaEH Nov 22, 2024
ddd72d7
Error fix x4
ElinaEH Nov 22, 2024
112a855
update
ElinaEH Nov 22, 2024
91af381
Added deploy link to readme file
ElinaEH Nov 22, 2024
7897344
Typescript installation done, changed file names to tsx
ElinaEH Nov 28, 2024
e993860
Added typescript to components, created assets tsx file for svg and png
ElinaEH Nov 28, 2024
dddaed9
Fixed indentation
ElinaEH Nov 28, 2024
8cebe37
Cleaned code and fixed a button in media queries
ElinaEH Nov 28, 2024
2d581c8
Changed main.jsx to tsx and updated index.html file
ElinaEH Nov 28, 2024
23e1508
Cleaned code
ElinaEH Nov 29, 2024
0516225
testing
ElinaEH Nov 29, 2024
d1f13c9
Added content to readme file
ElinaEH Nov 29, 2024
f0ce944
netlify link
ElinaEH Nov 29, 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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
37 changes: 4 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
<h1 align="center">
<a href="">
<img src="./src/assets/banner.svg" alt="Project Banner Image">
</a>
</h1>

# 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.

## 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
```
# The Project
This week's project was to add typescript to a project we've already created. I chose this project, the to-do app.

### 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 was a bit confused towards the end when merging and creating a new pull request. I've been working on a new branch where I added typescript. I merged the branch with the main after all changes were made and I couldn't create a new pull request and got lots of errors on netlify. After some trial and error I managed to do a new pull request on the new branch but my old pull request seem to be updated with the recent changes including typescript too (due to the merge I'm guessing). I felt like maybe I got a bit confused there. I solved the problem but the original pull request is now updated as well. Didn't dare to reset the main one in case something would go wrong.

### 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.

## Instructions

<a href="instructions.md">
See instructions of this project
</a>
https://elinatodoapptypescript.netlify.app/
12 changes: 12 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginReact from "eslint-plugin-react";


/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,jsx}"]},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
pluginReact.configs.flat.recommended,
];
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Todos App Context API</title>
<!-- Google font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&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=Readex+Pro:[email protected]&family=Roboto:wght@700;900&family=Schoolbell&display=swap" rel="stylesheet">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bokor&family=Cabin:ital,wght@0,400..700;1,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kumar+One&family=Open+Sans:ital,wght@0,300..800;1,300..800&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=Readex+Pro:[email protected]&family=Roboto:wght@700;900&family=Schoolbell&display=swap" rel="stylesheet">

</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
<script src="https://unpkg.com/@dotlottie/[email protected]/dist/dotlottie-player.mjs" type="module"></script>
</body>
</html>
Loading