커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
6- 11 [무신사 메인 페이지 UI] 세부 레이아웃 구현하기 (메인)
[왕초보] ChatGPT 300% 활용하기 v0
6주차
북마크
김*우
댓글
16
추천
0
조회수
19
조회수
19
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



강의 내용대로 결과가 안나와서요?


스파르타 즉문즉답

css 코드

.banner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;

    height: 70px;

    background-color: #000;

}


.banner img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.close-btn {

    color: #fff;

    margin-right: 20px;

    font-size: 20px;

}


.navigation1 {

    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;

    height: 78px;

    background-color: #000;

    padding: 0 15px;

}


.left-group {

    display: flex;

    align-items: center;

}


.left-group img {

    margin-right: 15px;

}


.search-box {

    position: relative;

    margin-right: 15px;

}


.search-box input[type="text"] {

    width: 200px;

    padding: 5px 10px;

    font-size: 14px;

    background-color: #fff;

    border: none;

    border-radius: 3px;

}


.search-box button {

    position: absolute;

    top: 50%;

    right: 0;

    transform: translateY(-50%);

    padding: 5px 10px;

    background-color: #000;

    border: none;

    border-radius: 3px;

    color: #fff;

    font-size: 14px;

}


.search-box button i {

    color: #fff;

}


.left-group p {

    margin: 0;

    font-size: 12px;

    color: #fff;

}


.right-group {

    display: flex;

    align-items: center;

}


.right-group a {

    margin-right: 15px;

    font-size: 18px;

    font-weight: bold;

    text-decoration: none;

    color: #fff;

}


.right-group a.pink {

    color: pink;

}


.right-group a.red {

    color: red;

}


.right-group a.blue {

    color: blue;

}


.navigation2 {

    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;

    height: 51px;

    background-color: #ccc;

    padding: 0 15px;

}


.navigation2 .left-group a {

    font-size: 14px;

    font-weight: bold;

    text-decoration: none;

    color: #000;

}


.navigation2 .right-group span {

    font-size: 14px;

    color: #000;

    margin-right: 10px;

}


.navigation2 .right-group a {

    font-size: 14px;

    font-weight: bold;

    text-decoration: none;

}


.navigation2 .right-group a.blue {

    color: blue;

}


.navigation3 {

    display: flex;

    justify-content: left;

    align-items: center;

    width: 100%;

    height: 50px;

    background-color: #fff;

    border-top: 1px solid #ccc;

    border-bottom: 1px solid #ccc;

    padding: 0 15px;

}


.navigation3 .box-container {

    display: flex;

    flex-direction: row;

}


.navigation3 .left-box {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 200px;

}


.navigation3 .right-box {

    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 400px;

}


.navigation3 button {

    width: 150px;

    height: 28px;

    border: 1px solid #000;

    background-color: #fff;

    font-size: 12px;

    color: #000;

}


.navigation3 a {

    font-size: 12px;

    color: #000;

}


.navigation3 a:first-child {

    color: blue;

}


.navigation3 a:nth-child(4) {

    color: red;

}


.navigation3 a:last-child {

    color: blue;

}


.navigation3 .box-container>*+* {

    margin-left: 10px;

}


main {

    display: flex;

    flex-direction: row;

    justify-content: flex-start;

    align-items: stretch;

    width: 100%;

}


.main-left {

    display: flex;

    flex-direction: column;

    width: calc(100% / 6);

    padding: 0 15px;

}


.main-left-top {

    margin-top: 20px;

    display: flex;

    justify-content: space-between;

}


.main-left-top button {

    width: calc(50% - 5px);

    height: 40px;

    border: 1px solid #ccc;

    background-color: #fff;

    font-size: 12px;

    font-weight: bold;

    color: #000;

}


.main-left-top button:first-child {

    border-right: none;

}


.main-left-bottom {

    margin-top: 30px;

}


.main-left-bottom button {

    width: 100%;

    height: 40px;

    border: 1px solid #ccc;

    background-color: #fff;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.main-left-bottom button .left-text {

    margin-left: 14px;

    font-size: 14px;

    font-weight: bold;

    color: #000;

}


.main-left-bottom button .right-icon {

    margin-right: 14px;

    color: #ccc;

}


.main-left-bottom button:hover {

    background-color: #f9f9f9;

}


.main-left-bottom button:hover .right-icon {

    color: #000;

}


.main-left-bottom button:last-child {

    margin-bottom: 30px;

    border-bottom: none;

}


.main-left-bottom button .right-icon i {

    font-size: 10px;

}


.main-right {

    width: calc(83.3333%);

    /* 전체 화면의 5/6 */

    border-left: 1px solid #ccc;

}


.card-container {

    display: flex;

    flex-wrap: wrap;

    width: 100%;

    max-width: 1198px;

    /* 6 * 200 - 2 */

    margin: 0 auto;

}


.card {

    width: 200px;

    max-height: 287px;

    background-color: #fff;

    margin: 10px;

    padding: 10px;

}


.rank {

    margin: 0;

    font-size: 12px;

    font-weight: bold;

    color: #000;

}


.title,

.description,

.price {

    margin: 5px 0;

    font-size: 12px;

    color: #000;

}


.title {

    font-weight: bold;

}


.price {

    font-weight: bold;

    margin-top: 10px;

}


어디 부분이 잘못 됐는지요?


강의내용 캡처사진

스파르타 즉문즉답

위와 같은 결과가 나와야 합니다.





취소
 공유
취소
댓글 0
댓글 알림
나의얼굴