Giter Site home page Giter Site logo

todolistyj-'s Introduction

디자인은 이 사이트에서 참고했습니다. https://mashup-todolist.surge.sh/


기능

빈칸에 todo를 작성하고 엔터를 치면 추가된다.

Screenshot from 2022-12-13 14-58-56

x버튼을 누르면 창이 닫힌다.

Screenshot from 2022-12-13 14-58-25

완료한 todo는 체크한다.

Screenshot from 2022-12-13 14-58-43

지우고 싶은 todo는 쓰레기통 아이콘을 누르면 된다.

Screenshot from 2022-12-13 14-58-48

개발 일지

1일차 2022. 12.2

전체적인 코드 작성

2일차 2022.12.3

문제: 컴포넌트인 Date와 Plus가 계속 안나타났다. 해결: 함수에서 return을 안써줬던 것

문제: 날짜를 가져오고 싶다 해결: Dayjs를 썼다. (js 날짜 라이브러리) Moment.js와 비교했을때 많은 경량화 / 더 좋은 성능

문제: 버튼을 내가 원하는 곳에 위치 시키고 싶다. 해결: position으로 아쉽게 해결

문제: 버튼을 눌렀을때 버튼 색깔이 바뀌면서 애니메이션으로 오른쪽 45도 돌아가게 하고싶다. 해결: 버튼 배경 색깔을 빨간색으로 바꾸지 못했으나, 안에 text가 돌아가게 했다. 어떻게? : useState를 이용해 클릭했을 때 값이 true,false로 바뀌게 했고,

3일차 2022.12.05

문제: 모달 내 부분을 입력하면 창이 닫힌다. 해결: <Modal onClick={e=> e.stopPropagation()}>

구현: 모달 창에 placehorder, enter했을때 감지 하는 부분 했음

4일차 2022.12.06

목표: 오늘은 fetch를 이용해 데이터를 불러오고 / 붙이고/ 삭제하는 기능 중 => 불러오는 것을 해보자 목표: todocomponents 중에 todolist.js 와 todos.js 를 이용해 fetch 에서 정보를 가져와야 하는 것 아닐까

하,,, 오늘 일단 상태들을 관리하는 방법을 고민하다 redux 라이브러리를 쭉 복습했고, redux 공식 문서를 보다 redux toolkit 을 알게되었다.

2022.12.07~2022.12.10

redux toolkit으로 구현해보고자 노력해봄

9일차 2022.12.11 일요일

목표 : json server를 이용해 totolist를 구현해보고자한다. 일단 기본 구현은 해놨고 앞으로 해야하건, 버튼의 위치. 버튼 눌렀을때 모양 이상하게 되는거 transform 스크롤,

10일차 2022.12.13 화요일

목표 : create 할때마다, 로드되게 해결 : window.location.reload()

목표 : transform을 잘 이용해서 버튼모양을 제대로 해라 해결 : 그냥, 애니메이션은 없애고 두개의 div로 버튼을 만들어줬음

목표 : 도로를 없애라 해결 : <div key={todo.id}>를 없애줬음

목표 : 버튼들을 다시 바꿔라 완료버튼이랑, 삭제하기 버튼 해결: fontawesome 이용해서 이미지 가져옴

회고:

  1. 전역적인 상태관리를 사용하지 않아 애를 먹었다. 담엔 상태관리 라이브러리를 적극적으로 이용해보고 싶다.
  2. transform, animation으로 버튼이 돌아가게 하고 싶었으나, 계속 css가 맘대로라서,,, 두개의 컴포넌트로 구현해줬다.
  3. 컴포넌트의 이름, className이 적절하지 않다. 정말 나만 알아볼 수 있다.
  4. css 구현하고 기능 코드를 작성했더니, 디자인이 수포로 돌아갔다. 전체적인 틀을 만들고 기능을 만들고 css를 만져야 한다.
  5. 그래도 잘한점은, 어떻게든 해냈다는 점이다! 혼자 처음부터 끝까지 만들어본게 자랑스럽다
  6. 또 잘한점은, 실패했지만 redux toolkit을 시도해봤다는 점이다!!

todolistyj-'s People

Contributors

fordangit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.