-
Notifications
You must be signed in to change notification settings - Fork 4
[#88] 만들기 페이지, 보내기 페이지 API 연동 #93
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
Conversation
src/app.jsx
Outdated
| import { createGlobalStyle } from "styled-components"; | ||
| import NanumPenScript from "../src/assets/NanumPenScript.ttf"; | ||
|
|
||
| const GlobalStyle = createGlobalStyle` | ||
| @font-face { | ||
| font-family: 'NanumPenScript'; | ||
| src: url(${NanumPenScript}) format('truetype'); | ||
| font-weight: normal; | ||
| font-style: normal;}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 우리 프로젝트에서는
/src/styles/global.css에 전역 스타일을 CSS로 작성하고 있는데요. - 이 코드도
global.css에 작성하거나, 아니면global.css코드를styled-components방식으로 바꿔서 방식을 통일하는게 좋을 것 같습니다. - 만약 전역 스타일을
styled-components로 만드는게 더 낫다고 생각하시면, 아래 작업을 진행해주세요./src/styles에global-style.jsx파일 생성/src/styles/global.css에 있는 내용을 포함하여GlobalStylescomponent 구현app.jsx에서global-styles.jsx를 import해서 사용index.html에서/src/styles/global.csslink 제거/src/styles/global.css파일 삭제
- 이 때, 줄 바꿈과 들여쓰기를 확인해주세요. 지금 코드에서도 들여쓰기와 줄 바꿈이 필요합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (!trimmed) { | ||
| setNameError("이름을 입력해 주세요"); // 이거 안전장치로 필요할까요? | ||
| return; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니다 👍🏻
| const imageUrls = [ | ||
| "https://picsum.photos/id/683/3840/2160", | ||
| "https://picsum.photos/id/24/3840/2160", | ||
| "https://picsum.photos/id/599/3840/2160", | ||
| "https://picsum.photos/id/1058/3840/2160", | ||
| ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 이것도 API 연동해서 가져오도록 만들어보시면 좋겠네요.
profile-images와background-imagespath로 API를 요청하기 위해apiClient외에도baseClient라는걸 따로 만들어 두었습니다.
|
발표 시연 준비를 위해 우선 병합하겠습니다. 수정이 필요한 부분은 다른 PR을 다시 만들겠습니다. |

📝 작업 내용
📷 스크린샷 (선택)
🧐 해결해야 하는 문제 (선택)
👀 새로 알게 된 내용 (선택)
💬 리뷰어에게 남길 말 (선택)