shop-2

Leejihye·2021년 7월 22일
0

학습한 내용


html

<main role="main" id="shop-main">
		<div class="shop-container">
			<div class="list-wrap">
				<div class="list-item">
					<div class="category-wrap w-100 h-100 shop-border">
						<div class="category-left">
							<h3>카테고리</h3>
							<ul>
								<li><a href="#">패션의류</a></li>
								<li><a href="#">패션잡화</a></li>
								<li><a href="#">화장품</a></li>
								<li><a href="#">디지털/가전</a></li>
							</ul>
						</div>
						<div class="category-right">
							<div class="category-right-top">
								<div class="category-info">
									<span class="headline">인기상품</span>
									<h3>견고함의 차이<br>세라믹 식탁 세트</h3>
									<span class="price">308,800원</span>
								</div>
								<div class="image-wrap">
								<img src="http://via.placeholder.com/140x160">
								</div>
							</div>
							<div class="category-right-bottom">
								<span class="headline">추천태그</span>

								<div class="tag-wrap">
									<span class="tag">#유아마스크</span>
									<span class="tag">#하객원피스</span>
									<span class="tag">#멀티밤</span>
									<span class="tag">#서큘레이터</span>
									<span class="tag">#유아마스크</span>
									<span class="tag">#하객원피스</span>
									<span class="tag">#멀티밤</span>
									<span class="tag">#서큘레이터</span>
								</div>
							</div>
						</div>

					</div>
				</div>
				<div class="list-item banner">
					<div class="w-100 h-100 shop-border">
						<img src="http://via.placeholder.com/150">
					</div>
				</div>

				<div class="list-item">
					<div class="list-half list-half-top shop-border">
						<div class="list-half-header list-half-bg">
							<div class="half-overlay"></div>
							<h3 class="shop-title-border">백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-3">
							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>
						</ul>

					</div>

					<div class="list-half list-half-bottom shop-border">
						<div class="list-half-header">
							<span class="headline">hot deal</span>
							<h3>백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-2">
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
						</ul>
					</div>
				</div>

				<div class="list-item">
					
					<div class="list-half shop-border">
						<div class="list-half-header">
							<span class="headline">hot deal</span>
							<h3>백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-2">
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
						</ul>
					</div>

					<ul class="list-row-3 shop-border">
						<li>
							<div class="list-image-wrap shop-border">
								<img src="http://via.placeholder.com/90x60">
							</div>
							<div class="list-row-info">
								<span>멜론티켓</span>
								<h3>흥행 돌풍 마마, 돈크라이</h3>
							</div>
						</li>
						<li>
							<div class="list-image-wrap shop-border">
								<img src="http://via.placeholder.com/90x60">
							</div>
							<div class="list-row-info">
								<span>멜론티켓</span>
								<h3>흥행 돌풍 마마, 돈크라이</h3>
							</div>
						</li>
						<li>
							<div class="list-image-wrap shop-border">
								<img src="http://via.placeholder.com/90x60">
							</div>
							<div class="list-row-info">
								<span>멜론티켓</span>
								<h3>흥행 돌풍 마마, 돈크라이</h3>
							</div>
						</li>
					</ul>
				</div>

				<div class="list-item">
					<div class="list-half list-half-top shop-border">
						<div class="list-half-header list-half-bg">
							<div class="half-overlay"></div>
							<h3 class="shop-title-border">백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-3">
							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>
						</ul>

					</div>

					<div class="list-half list-half-bottom shop-border">
						<div class="list-half-header">
							<span class="headline">hot deal</span>
							<h3>백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-2">
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
						</ul>
					</div>
				</div>

				<div class="list-item">
					<div class="list-half list-half-top shop-border">
						<div class="list-half-header">
							<span class="headline">hot deal</span>
							<h3>백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-2">
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
						</ul>

					</div>

					<div class="list-half list-half-bottom shop-border">
						<div class="list-half-header">
							<span class="headline">hot deal</span>
							<h3>백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-2">
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
						</ul>
					</div>
				</div>
				
				<div class="list-item">
					<div class="list-half list-half-top shop-border">
						<div class="list-half-header">
							<span class="headline">hot deal</span>
							<h3>백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-2">
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
						</ul>
						

					</div>

					<div class="list-half list-half-bottom shop-border">
						<div class="list-half-header list-half-bg">
							<div class="half-overlay"></div>
							<h3 class="shop-title-border">백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-3">
							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>
						</ul>
					</div>
				</div>

				<div class="list-item">
					<div class="list-half list-half-top shop-border">
						<div class="list-half-header list-half-bg">
							<div class="half-overlay"></div>
							<h3 class="shop-title-border">백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-3">
							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>

							<li>
								<img src="http://via.placeholder.com/102x100">
								<h3>생활공작서 과탄산소다</h3>
								<span>1.5kg x 4입</span>
							</li>
						</ul>

					</div>

					<div class="list-half list-half-bottom shop-border">
						<div class="list-half-header">
							<span class="headline">hot deal</span>
							<h3>백화점 상품 그대로</h3>
						</div>

						<ul class="content-lists content-lists-2">
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
							<li>
								<div class="content-image-wrap shop-border">
									<img src="http://via.placeholder.com/130x90">
									<span class="discount">50%</span>
								</div>
								<h3>부드럽게 감기는 말랑말랑 파우치 이불</h3>
								<span class="price"><em>21,900</em></span>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</main>

</body>
</html>

css

#shop-main .list-item .list-half{
	width: 100%;
	height: 240px;
	background-color: #ffffff;
}

#shop-main .list-item .list-half .list-half-top{
	position: absolute;
	left: 0;
	top: 0;
}

#shop-main .list-item .list-half.list-half-bottom{
	position: absolute;
	left: 0;
	bottom: 0;
}

#shop-main .list-item .list-half .list-half-header{
	position: relative;

	width: 100%;
	height: 62px;
	background-color: #ffffff;
	border-bottom: solid 1px #e7e7e7;

	text-align: center;
	padding-top: 10px;
}

#shop-main .list-item .list-half .list-half-header .headline{
	display: inline-block;
	border: solid 1px #000000;
	padding: 2px 4px;
	margin-bottom: 5px;
}

#shop-main .list-item .list-half .list-half-header h3{
	font-size: 14px;
} 

#shop-main .list-item .list-half .list-half-header .half-overlay{
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}


#shop-main .list-item .list-half .list-half-header.list-half-bg{
	background-color: green;
	padding-top: 0;
	border-bottom: solid 1px #ffffff;
}

#shop-main .list-item .list-half .list-half-header.list-half-bg .shop-title-border{
	position: relative;
	display: inline-block;
	padding: 2px 4px;

	border: solid 1px #ffffff;
	color: #ffffff;
	font-size: 14px;

	top: 50%;
	transform: translateY(-50%);
}

#shop-main .list-item .list-half .content-lists{
	overflow: hidden;
	height: 177%;
}

#shop-main .list-item .list-half .content-lists.content-lists-3 li{
	float: left;
	width: 33.33%;
	height: 100%;
	border-right: solid 1px #f0f0f0;
	text-align: center;

}

#shop-main .list-item .list-half .content-lists.content-lists-3 li:last-child{
	border-right: none;
}

#shop-main .list-item .list-half .content-lists.content-lists-3 li img{
	width: 100%;
	height: 100px;
	margin-bottom: 5px;
}

#shop-main .list-item .list-half .content-lists.content-lists-3 li h3{
	font-size: 13px;
	margin-bottom: 5px;
}

#shop-main .list-item .list-half .content-lists.content-lists-3 li span{
	font-size: 12px;
}

#shop-main .list-item .list-half .content-lists.content-lists-2{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding-top: 11px;
}

#shop-main .list-item .list-half .content-lists.content-lists-2 li{
	width: 130px;
	height: 150px;
	margin-right: 8px;
}

#shop-main .list-item .list-half .content-lists.content-lists-2 li:last-child{
	margin-right: 0;
}

#shop-main .list-item .list-half .content-lists.content-lists-2 li .content-image-wrap{
	position: relative;
	width: 130px;
	height: 90px;
}

#shop-main .list-item .list-half .content-lists.content-lists-2 li .content-image-wrap img{
	width: 100%;
	height: 100%;
	position: absolute;
}

#shop-main .list-item .list-half .content-lists.content-lists-2 li .content-image-wrap .discount{
	position: absolute;
	display: block;
	width: 42px;
	height: 42px;
	background-color: orange;
	border-radius: 50%;

	font-size: 14px;
	color: #ffffff;
	
	top: 6px;
	right: 5px;

	line-height: 42px;
	text-align: center;
}

#shop-main .list-item .list-half .content-lists.content-lists-2 li h3{
	font-size: 13px;

}

#shop-main .list-item .list-half .content-lists.content-lists-2 li .price{
	color: #62a7ee;
	font-size: 12px;
}

#shop-main .list-item .list-half .content-lists.content-lists-2 li .price em{
	font-size: 14px;
	font-weight: 700;
	font-style: normal;
}

#shop-main .list-item .list-row-3{
	border-top: none;
	background-color: #ffffff;
}

#shop-main .list-item .list-row-3 li{
	border-bottom: solid 1px #f0f0f0;
	padding: 14px 19px 11px 19px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}


#shop-main .list-item .list-row-3 li:last-child{
	border-bottom: none;
}

#shop-main .list-item .list-row-3 li .list-image-wrap{
	width: 90px;
	height: 60px;
	margin-right: 10px;
}

#shop-main .list-item .list-row-3 li .list-image-wrap img{
	width: 100%;
	height: 100%;
}

#shop-main .list-item .list-row-3 li .list-row-info span{
	font-size: 12px;
}

#shop-main .list-item .list-row-3 li .list-row-info h3{
	font-size: 13px;
}

학습내용 중 어려웠던 점

오늘 코드 가운데 index.html 페이지에서 실행이 안 되는 것들이 계속 발생하여서 어려움을 겪었다..

해결 방법

shop-main .list-item .list-half .list-half-header.list-half-bg

같은 경우 맨 뒤에 .list-half-header.list-half-bg 부분을 .list-half-header .list-half-bg 식으로 뛰어서 코드를 입력하여 계속 실행이 안되는 것이었다. 이 부분이 잘못된지 모르고 다른 부분에도 똑같은 식으로 해서 실행안되는 것이 많아 애를 먹었다........

학습소감

위 어려웠던 점에서 말한 것과 같이 안되는 부분에서 멈추고 계속 지우고 다시 작업하는 과정에서 시간을 많이 소요하였고.. 5시 이후에 일정이 있어서 영상 분량을 다 하지 못했다.. 내일이나 오늘밤에 마저하려고 한다.

0개의 댓글

관련 채용 정보