Code Monkey home page Code Monkey logo

apps.namhae.life's People

Contributors

gygy7151 avatar joonsungum avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gygy7151

apps.namhae.life's Issues

[Client] 메뉴 세부 페이지에서 각 메뉴의 카드 레이아웃 개선

현재 단순하게 메뉴 이름, 가격으로만 표시되고 있는 메뉴 카드의 레이아웃을 개선한다.

  • 메뉴 사진이 있다면 메뉴 사진을 보여줌
  • 메뉴 사진이 없다면 적절한 샘플 이미지를 보여줌
  • 메뉴의 타입에 메뉴의 간단한 설명 description 필드 추가
  • 메뉴 설명을 메뉴 카드에 추가
  • 메뉴 카드 하단에 '담기' 버튼을 추가
  • 데스크탑, 모바일에서 바르게 표시되는지 반응형 디자인 점검

[Client] 주문 Drawer에 표시될 메뉴 카드 레이아웃 추가

현재 OrderDrawer에 하드코딩으로 '주문한 음식 1' 등으로 표현되어 있는 공간은 사용자가 메뉴 세부 정보에서 '담기' 버튼을 눌렀을 때 주문한 내역을 확인 할 수 있도록 마련된 공간임. 이 영역에 표시될 카드의 레이아웃을 menus 객체의 정보를 이용하여 하드코딩으로 OrderCard 컴포넌트를 퍼블리싱 필요함.

  • ListItem 태그 하위에 들어갈 OrderCard 컴포넌트 작성
  • OrderCard에는 메뉴의 이름, 가격이 표시됨
  • OrderDrawer 하단에는 List에 속한 모든 메뉴의 가격이 합산되어 표시됨
  • OrderDrawer 하단에는 '결제하기' 버튼이 표시됨

현재 orders 쿼리를 이용하여 받아온 정보를 활용할 수 있도록 업데이트 됨

[Client] 메뉴 세부 페이지 필요

각 메뉴마다 url 값이 할당되어 메신저를 통해 원하는 메뉴를 다른사람에게 전송할 수 있어야함

현재 상점 상세 페이지의 경우
/pages/store/[id].tsx
파일에 기술되어 있음

하위 주소를 추가하기 위해서는 파일 구조를 살짝 바꿔주어야 함
/pages/store/[id]
폴더를 만든 뒤, 현재 /pages/store/[id].tsx 파일의 내용 전부를 /pages/store/[id]/index.tsx 로 옮기면 현재의 동작과 똑같이 동작함

다음으로 메뉴 상세페이지를 만들기 위해서는
/pages/store/[id]/menu/
폴더를 만들고 그 안에 [id].tsx 파일을 만들면 메뉴 상세 페이지가 만들어짐

[API] 하드코딩 JSON 목업 데이터에 필드 수정

최소로 구현된 목업 데이터에 필드 추가 필요

음식점 데이터

  • 정기 휴일 필드 추가 (holidays: string[])

메뉴 데이터

  • 점심 주문만 가능 필드 추가 (isLunch: boolean)
  • 저녁 주문만 가능 필드 추가 (isDinner: boolean)
  • isAvailable 필드 삭제

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.