커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
동일 코드 사용에도 상이한 페이지 구성
[왕초보] ChatGPT 300% 활용하기 v0
6주차
북마크
장*이
댓글
1
추천
0
조회수
9
조회수
9
답변 완료

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

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



코드스니펫 코드 붙여넣기 해도 구현된 페이지가 다릅니다.


스파르타 즉문즉답




작성한 코드 및 <!DOCTYPE html>
<html lang="ko">


<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- reset.css 파일을 연결 -->
    <link rel="stylesheet" href="reset.css">
    <!-- style.css 파일을 연결 -->
    <link rel="stylesheet" href="style.css">
    <!-- Font Awesome CDN 연결 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
    <title>무신사 클론코딩🔥</title>
</head>


<body>
    <header>
        <div class="banner">
            <img src="https://image.musinsa.com/images/banner/2023042711084400000059526.jpg" alt="무신사 배너">
            <a href="#" class="close-btn"><i class="fas fa-times"></i></a>
        </div>
        <nav class="navigation1">
            <div class="left-group">
                <img src="https://spartacodingclub.kr/_next/image?url=%2Fv5%2Ficons%2Flogo-inactive.png&w=1920&q=100"
                    alt="무신사 로고">
                <div class="search-box">
                    <input type="text" placeholder="검색">
                    <button type="button"><i class="fas fa-search"></i></button>
                </div>
                <p>[1등] : 패션품목</p>
            </div>
            <div class="right-group">
                <a href="#" class="pink">티셔츠</a>
                <a href="#" class="red">시즌 오프</a>
                <a href="#" class="blue">주말 특가</a>
                <a href="#">랭킹</a>
                <a href="#">업데이터</a>
                <a href="#">코디</a>
                <a href="#">세일</a>
                <a href="#">스페셜</a>
                <a href="#">매거진</a>
                <a href="#">TV</a>
                <a href="#">이벤트</a>
                <a href="#">브랜드</a>
            </div>
        </nav>
        <nav class="navigation2">
            <div class="left-group">
                <a href="#">테라스 샵</a>
            </div>
            <div class="right-group">
                <span>래플에 참여해 보세요!</span>
                <a href="#" class="blue">래플 바로가기</a>
                <a href="#">브랜드 구인</a>
            </div>
        </nav>
        <nav class="navigation3">
            <div class="left-box">
                <button>로그인</button>
            </div>
            <div class="right-box">
                <a href="#" class="blue">바로 접속 ON</a>
                <a href="#">마이페이지</a>
                <a href="#">최근 본 상품</a>
                <a href="#" class="red">좋아요</a>
                <a href="#">장바구니</a>
                <a href="#">주문배송조회</a>
                <a href="#">고객센터</a>
                <a href="#" class="blue">회원가입</a>
            </div>
        </nav>


    </header>


    <main>
        <section class="main-left">
            <div class="main-left-top">
                <button>품목</button>
                <button>브랜드</button>
            </div>
            <div class="main-left-bottom">
                <button>
                    <span class="left-text">인기</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">상의</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">아우터</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">바지</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">원피스</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">스커트</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">스니커즈</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">신발</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">가방</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">여성 가방</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">스포츠/용품</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
                <button>
                    <span class="left-text">모자</span>
                    <span class="right-icon"><i class="fas fa-plus"></i></span>
                </button>
            </div>
        </section>
        <section class="main-right">
            <div class="card-container">
                <div class="card">
                    <p class="rank">1위</p>
                    <img src="https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8dCUyMHNoaXJ0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">흰 티</p>
                    <p class="description">반팔 흰티 50% 할인</p>
                    <p class="price">5,900원</p>
                </div>
                <div class="card">
                    <p class="rank">2위</p>
                    <img src="https://images.unsplash.com/photo-1562157873-818bc0726f68?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8dCUyMHNoaXJ0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">반팔 여러 색상</p>
                    <p class="description">원하는 모든 색상이 존재하는 반팔</p>
                    <p class="price">29,900원</p>
                </div>
                <div class="card">
                    <p class="rank">3위</p>
                    <img src="https://images.unsplash.com/photo-1576566588028-4147f3842f27?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8OHx8dCUyMHNoaXJ0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">프린팅 반팔</p>
                    <p class="description">원하는 프린트를 반팔에 남기세요.</p>
                    <p class="price">19,900원</p>
                </div>
                <div class="card">
                    <p class="rank">4위</p>
                    <img src="https://images.unsplash.com/photo-1514829006311-076315b13f2d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8N3x8JUVCJThCJTg4JUVEJThBJUI4JTIwJUVCJUFBJUE5JUVEJThGJUI0JUVCJTlEJUJDfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">니트 모자</p>
                    <p class="description">재고 처분합니다.</p>
                    <p class="price">5,000원</p>
                </div>
                <div class="card">
                    <p class="rank">5위</p>
                    <img src="https://images.unsplash.com/photo-1542291026-7eec264c27ff?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8JUVCJTgyJTk4JUVDJTlEJUI0JUVEJTgyJUE0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">나이키 신발</p>
                    <p class="description">강렬한 레드로 구성된 나이키 운동화</p>
                    <p class="price">59,900원</p>
                </div>
                <div class="card">
                    <p class="rank">6위</p>
                    <img src="https://images.unsplash.com/photo-1600269452121-4f2416e55c28?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8OXx8JUVCJTgyJTk4JUVDJTlEJUI0JUVEJTgyJUE0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">나이키 흰 운동화</p>
                    <p class="description">꾸준히 잘 팔리는 나이키 베스트 셀러</p>
                    <p class="price">70,000원</p>
                </div>
                <div class="card">
                    <p class="rank">7위</p>
                    <img src="https://images.unsplash.com/photo-1586360727847-108cbb274ad1?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8JUVDJTk1JTg0JUVCJTk0JTk0JUVCJThCJUE0JUVDJThBJUE0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">아디다스 운동복 하의</p>
                    <p class="description">다양한 색상으로 구성되어있는 아디다스 운동복 하의</p>
                    <p class="price">11,900원</p>
                </div>
                <div class="card">
                    <p class="rank">8위</p>
                    <img src="https://images.unsplash.com/photo-1599839614778-a0ee8a16f2a9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTF8fCVFQyU5NSU4NCVFQiU5NCU5NCVFQiU4QiVBNCVFQyU4QSVBNHxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">힙한 아디다스 체육복 상의</p>
                    <p class="description">여름에 딱 어울리는 상의 체육복입니다.</p>
                    <p class="price">100,500원</p>
                </div>
                <div class="card">
                    <p class="rank">9위</p>
                    <img src="https://images.unsplash.com/photo-1520975867597-0af37a22e31e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8M3x8JUVBJUIwJTgwJUVDJUEzJUJEJUVDJTlFJUEwJUVCJUIwJTk0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">소가죽 자켓</p>
                    <p class="description">당신이 멋쟁이라면 하나 쯤은 가지고 있어야할 자켓</p>
                    <p class="price">220,000원</p>
                </div>
                <div class="card">
                    <p class="rank">10위</p>
                    <img src="https://images.unsplash.com/photo-1623393807193-e095f7944161?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8JUVBJUIwJTgwJUVDJUEzJUJEJUVDJTlFJUEwJUVCJUIwJTk0fGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=800&q=60" alt="상품 이미지">
                    <p class="title">데일리 청바지</p>
                    <p class="description">매일 입고 싶은 청바지</p>
                    <p class="price">99,000원</p>
                </div>
                <!-- 99개의 card가 여기에 추가됨 -->
            </div>
        </section>
    </main>
</body>


</html>에러 메세지오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요
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: rgb(237, 0, 96);
}


.right-group a.red {
    color: rgb(0, 212, 123);
}


.right-group a.blue {
    color: rgb(237, 0, 236);
}


.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;
    text-decoration: none;
    color: #000;
}


.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: 500px;
}


.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: #00A3FF;
}


.navigation3 a:nth-child(4) {
    color: red;
}


.navigation3 a:last-child {
    color: #048EFF;
}


.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;
}


.card img {
    width: 146px;
    height: 180px;
    object-fit: contain;
  }
  


.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;
}

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




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