Skip to content

Project Todo#442

Open
SofiaGerdmar wants to merge 5 commits intoTechnigo:masterfrom
SofiaGerdmar:master
Open

Project Todo#442
SofiaGerdmar wants to merge 5 commits intoTechnigo:masterfrom
SofiaGerdmar:master

Conversation

@SofiaGerdmar
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@Vera-Sjunnesson Vera-Sjunnesson left a comment

Choose a reason for hiding this comment

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

Love the concept, design and minimalism of this app! It is very user friendly and feels inviting. Feels analogue in a good way. The code is precise and effective, follows all the requirements for this project. It's responsive. I have no major comment about what could be improved, everything works well (but I wrote some small suggestions in my comments).

P.s. please provide a live link! d.s.

Comment thread code/.eslintrc.json
"requireConfigFile": false,
"sourceType": "module",
"ecmaVersion": 2017,
"ecmaVersion": 2020,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good thing to do. Was it helpful?

Comment thread code/package-lock.json
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"moment": "^2.29.4",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Never used moment, interesting!

Comment thread code/src/reducers/task.js
Comment on lines +34 to +41
deleteSingleTask: (store, action) => {
const id = action.payload;
const copyofTaskArrayFromStore = store.items;
const condition = (element) => element.id === id;
const foundIndex = copyofTaskArrayFromStore.findIndex(condition);
copyofTaskArrayFromStore.splice(foundIndex, 1);
store.items = copyofTaskArrayFromStore;
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Interesting way of doing it, but I believe there could be a simpler way of doing the same thing, maybe?

Comment thread code/src/reducers/task.js
store.items = copyofTaskArrayFromStore;
}
}
}) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Overall, the reducer is easy to follow and tidy. Good job!

import { task } from 'reducers/task';

export const AddTask = () => {
const [inputValue, setInputValue] = useState('Add items here...')
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Interesting to put the placeholder text as an initial state, but I noticed it disappeared after the first use and then it was more difficult to find the text input field. Maybe a better solution would be to use an actual placeholder text in the <input>tag?

Comment thread code/src/index.css
Comment on lines +21 to +44
.paper {
width: 98vw;
height: auto;
min-height: 80vh;
background-color: #fff;
box-shadow: 3px 2px 2px 0px rgba(0,0,0,0.4);
position: relative;
padding: 40px 0 40px 0;
margin: 20px 0 10px 0;
}
.paper::before {
content: '';
width: 2px;
height: 100%;
background-color: rgba(255, 0, 0, 0.6);
position: absolute;
top: 0;
left: 40px;
}
.pattern {
min-height: 80vh;
height: auto;
background-image: repeating-linear-gradient(white 0px, white 24px, teal 25px);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It is so impressive you created the note paper in css! It's inspiring! Great work!

Comment thread code/src/index.css
Comment on lines +83 to +131
.container {
display: block;
position: absolute;
margin: 2px 0 0 10px;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
right: 15vw;
}
.container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 0.7rem;
width: 0.7rem;
border: 1px solid rgba(0,0,0,0.2);
border-radius: 2px;
box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.checkmark:after {
content: "✓";
position: absolute;
display: none;
font-size: 1.4rem;
color: rgb(0, 170, 0);
font-family: monospace;
font-style: normal;
line-height: 0;
margin-top: 4px;
margin-left: 1px;
}
.container input:checked ~ .checkmark:after {
display: block;
}
.container .checkmark:after {
-webkit-transform: rotate(348deg);
-ms-transform: rotate(348deg);
transform: rotate(5deg);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work making the checkboxes! Minimalist and stylish!

Comment thread code/src/index.css
Comment on lines +145 to +154
input {
width: 150px;
border: none;
background-color: transparent;
margin-right: 10px;
font-family: 'Shadows Into Light', cursive;
outline: rgba(0,0,0,0.2);
font-size: 1rem;
line-height: 0;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Really like how the input field is hidden, even though it's hard to find once used.

Comment thread code/src/index.css
@media (min-width: 426px) {
body {
height: 100%;
background-image: url(../public/bree-anne-XnpWqPZNfXE-unsplash.jpg);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this might be a repetition/ background-image is used twice.

Comment thread code/src/index.css
align-items: flex-end;
margin-top: 2.5rem;
}
@media (min-width: 426px) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job on responsiveness!

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.

2 participants