inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

한 입 크기로 잘라 먹는 리액트(React.js) : 기초부터 실전까지

React 실전프로젝트 질문

해결된 질문

550

진우

작성한 질문수 1

0

스크린샷 2023-07-16 오후 11.55.09.png스크린샷 2023-07-16 오후 9.42.40.png

왜 강의와 다르게 이렇게 표시되는게 맞는지 굼금해서 올려봅니다.

아니라면 왜 이런지 알려주시면 감사하겠습니다.

밑에는 App.css입니다.

@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&family=Yeon+Sung&display=swap');

body {
    background-color: #f6f6f6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Nanum Pen Script';
    min-height: 100vh;
    margin: 0px;
}

@media (min-width: 650px) {
    .App {
        width: 640px;
    }
}

@media (max-width: 650px) {
    .APP {
        width: 90vw;
    }
}

#root {
    background-color: white;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.App {
    min-width: 100vh;
    padding-left: 20px;
    padding-left: 20px;
}

/* my button */

.MyButton {
    cursor: pointer;
    border: none;
    border-radius: 5px;

    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;

    font-size: 18px;

    white-space: nowrap;
    font-family: 'Nanum Pen Script';
}

.MyButton_default {
    background-color: #ececec;
    color: black;
}

.MyButton_positive {
    background-color: #64c964;
    color: white;
}

.MyButton_negative {
    background-color: #fd565f;
    color: white;
}

/* header */

header {
    padding-top: 20px;
    padding-bottom: 20px;

    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e2e2;
}

header > div {
    display: flex;
}

header .head_text {
    width: 50%;
    font-size: 25px;
    justify-content: center;
}

header .head_btn_left {
    width: 25%;
    justify-content: start;
}

header .head_btn_right {
    width: 25%;
    border-left: 25px;
    justify-content: end;
}

header button {
    font-family: 'Nanum Pen Script';
}

/* DiaryList */

.DiaryList .menu_wrapper {
    margin-top: 20px;
    margin-bottom: 30px;

    display: flex;
    justify-content: space-between;
}

.DiaryList .menu_wrapper .right_col {
    flex-grow: 1;
}

.DiaryList .menu_wrapper .right_col button {
    width: 100%;
}

.DiaryList .ControlMenu {
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ececec;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;

    cursor: pointer;
    font-family: 'Nanum Pen Script';
    font-size: 18px;
}

/* DiaryItem */

.DiaryItem {
    padding-top: 15px;
    padding-bottom: 15px;

    border-bottom: 1px solid #e2e2e2;

    display: flex;
    justify-content: space-between;
}

.DiaryItem .emotion_img_wrapper {
    cursor: pointer;
    min-width: 120px;
    height: 80px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
}

.DiaryItem .emotion_img_wrapper_1 {
    background-color: #64c964;
}

.DiaryItem .emotion_img_wrapper_2 {
    background-color: #9dd772;
}

.DiaryItem .emotion_img_wrapper_3 {
    background-color: #fdce17;
}

.DiaryItem .emotion_img_wrapper_4 {
    background-color: #fd8446;
}

.DiaryItem .emotion_img_wrapper_5 {
    background-color: #fd565f;
}

.DiaryItem .emotion_img_wrapper img {
    width: 50%;
}

.DiaryItem .info_wrapper {
    flex-grow: 1;
    margin-left: 20px;
    cursor: pointer;
}

.DiaryItem .diary_date {
    font-weight: bold;
    font-size: 25px;
    margin-bottom: 5px;
}

.DiaryItem .diary_centent_preview {
    font-size: 18px;
}

.DiaryItem .btn_wrapper {
    min-width: 70px;
}

/* DirayEditor */

.DirayEditor textarea {
    font-family: 'Nanum Pen Script';
    font-size: 20px;

    box-sizing: border-box;
    width: 100%;
    min-height: 200px;
    resize: vertical;

    border: none;
    border-radius: 5px;
    background-color: #ececec;

    padding: 20px;
}

.DirayEditor .control_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.DirayEditor section {
    margin-bottom: 40px;
}

.DirayEditor h4 {
    font-size: 22px;
    font-weight: bold;
}

.DirayEditor .input_date {
    border: none;
    border-radius: 5px;
    background-color: #ececec;

    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;

    cursor: pointer;
    font-family: 'Nanum Pen Script';
    font-size: 20px;
}

.DirayEditor .emotion_list_wrapper {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 2%;
}
/* EmotionItem */

.EmotionItem {
    cursor: pointer;

    border-radius: 5px;
    padding-top: 20px;
    padding-bottom: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.EmotionItem img {
    width: 50%;
    margin-bottom: 10px;
}

.EmotionItem span {
    font-size: 18px;
}

.EmotionItem_off {
    background-color: #ececec;
}

.EmotionItem_on_1 {
    background-color: #64c964;
    color: white;
}

.EmotionItem_on_2 {
    background-color: #9dd772;
    color: white;
}

.EmotionItem_on_3 {
    background-color: #fdce17;
    color: white;
}

.EmotionItem_on_4 {
    background-color: #fd8446;
    color: white;
}

.EmotionItem_on_5 {
    background-color: #fd565f;
    color: white;
}

javascript react node.js

답변 1

0

이정환 Winterlood

안녕하세요 이정환입니다.

보내주신 코드만으로는 현재 정확한 원인을 파악하기 어렵습니다(원인이 다른 파일에 있을수도 있어요)

따라서 강의 질문 공지사항에 맞춰, 현재 프로젝트를 깃허브나 코드샌드박스에 업로드 하신 다음

링크 형태로 보내주시면 제가 살펴보겠습니다. 감사합니다

Editor Component의 최적화 불가능 이슈

0

11

2

useCallback ⊂ useMemo

0

12

2

라이브러리 설치 질문

0

21

2

linter 질문

0

27

2

감정일기장 vercel 배포 후 새로 고침 시 404페이지가 뜨는 이유

0

36

2

Sort 메서드 관련 아티클

0

41

2

4.1) React.js를 소개합니다 강의를 듣고 궁금한 점이 생겼습니다.

0

40

2

html, body에 적용하는 css 스타일 질문입니다.

0

38

2

eslint.config.js 설정 질문입니다.

0

86

2

존재하지 않는 일기 url입력 시 alert이 두 번 떠요

0

64

1

교재(3쇄)와 강의 내용 문의

0

64

2

12.13) 하단 여백 스타일링 관련 질문 드립니다.

0

87

2

에러 질문드립니다

0

101

2

VSCode 설정 문의

0

130

2

PPT 코드 관련 질문

0

65

2

useEffect와 lifecycle문의

0

87

2

프론트엔드 학습 수준 문의

0

106

2

리액트 챕터별 코드에서 eslint 설정파일이 없어요

0

109

2

데이터 로딩중 화면만 계속 나와요!!

0

99

2

퍼블리셔일경우 어느정도 수준까지 강의를 들어야할까요

0

128

2

이후의 커리큘럼 문의

0

149

2

실슬환경 설정에서 save후 console.log 부분이 새로고침이 안되는현상입니다.

0

104

2

최적화 관련 질문있습니다 (useMemo 등)

0

126

3

프로바이더 컴포넌트의 위치는 어떤 기준인가요?

1

124

3