2021년 7월 26일 21일차

신종원·2021년 7월 26일
0

학습한 내용

html - shop

네이버
<link rel="stylesheet" type="text/css" href="css/style.css">
<header id="webtoon-header">
	

		<div class="webtoon-header-top">
			<div class="webtoon-container">
				<div class="webtoon-header-left">
					<h2><a href="#">만화</a></h2>
					<em class="bar"></em>
					<h3><a href="#">웹소설</a></h3>

					<div class="webtoon-header-input_wrap">
						<input type="text">
						<button type="button" class="btn-search"></button>
					</div>
				</div>

				<div class="webtoon-header-right">
					<a href="#" class="btn-login">로그인</a>
					<button type="button" class="btn-menu"></button>
				</div>
			</div>
		</div>

		<div class="webtoon-header-nav">
			<div class="webtoon-container">
				<nav>
					<ul>
						<li class="on"><a href="webtoon.html"></a></li>
						<li><a href="webtoon-detail.html">웹툰</a></li>
						<li><a href="#">베스트 도전</a></li>
						<li><a href="#">도전만화</a></li>
					</ul>
				</nav>

				<div class="webtoon-header-link-wrap">
					<i class="icon-ex-mark"></i>
					<a href="#">온천마을 판타지 로맨스 <모락모락 왕세자님</a>
				</div>
			</div>
		</div>
	
</header>



<main role="main" id="webtoon-main">

	<div class="webtoon-container">
		
		<div class="webtoon-main-left">
			<div class="webtoon-carousel">
				
				<div class="webtoon-carousel-left">
					<h2>오늘의<br><span>웹툰</span></h2>
					<p>5월 19일 수요일</p>
					<ul>
						<li class="on"><a href="#">인기순</a></li>
						<li><a href="#">업데이트순</a></li>
						<li><a href="#">조회순</a></li>
						<li><a href="#">별점순</a></li>
					</ul>
				</div>

				<div class="webtoon-carousel-right">
					<div class="webtoon-carousel-banner">
						<img src="https://via.placeholder.com/582x195">
					</div>

					<div class="webtoon-carousel-banner-nav">
						<ul>
							<li><img src="https://via.placeholder.com/135x57"></li>
							<li><img src="https://via.placeholder.com/135x57"></li>
							<li><img src="https://via.placeholder.com/135x57"></li>
							<li><img src="https://via.placeholder.com/135x57"></li>
						</ul>

						<a href="#" class="btn btn-prev"></a>
						<a href="#" class="btn btn-next"></a>
					</div>
				</div>

			</div>
		</div>

		<div class="webtoon-main-right">
			
		</div>

	</div>

</main>
### css .webtoon-border { border: solid 1px #ced2d7; }

.webtoon-container {
width: 960px;
margin: 0 auto;
}

#webtoon-header {
background-color: #ffffff;
}

#webtoon-header .webtoon-header-top {
background-color: #ffffff;
border-bottom: solid 1px #f2f2f2;

padding: 10px 0 8px 0;

}

#webtoon-header .webtoon-header-top .webtoon-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}

#webtoon-header .webtoon-header-top .webtoon-header-left {
display: flex;
flex-wrap: wrap;
align-items: center;

width: 550px;

}

#webtoon-header .webtoon-header-top .webtoon-header-left h2 {
font-size: 20px;
}

#webtoon-header .webtoon-header-top .webtoon-header-left .bar {
width: 1px;
height: 13px;
background-color: #d2d2d2;

margin-left: 8px;
margin-right: 10px;

}

#webtoon-header .webtoon-header-top .webtoon-header-left h3 {
margin-right: 30px;

font-size: 16px;

}

#webtoon-header .webtoon-header-top .webtoon-header-left h3 a {
color: grey;
}

#webtoon-header .webtoon-header-top .webtoon-header-input-wrap {
display: flex;
flex-wrap: wrap;
align-items: center;

width: 315px;
height: 37px;
border: solid 1px #e5e5e5;

}

#webtoon-header .webtoon-header-top .webtoon-header-input-wrap input {
width: calc(100% - 35px);
height: 100%;
border: none;

padding: 0 10px;

}

#webtoon-header .webtoon-header-top .webtoon-header-input-wrap input:focus {
outline: none;
}

#webtoon-header .webtoon-header-top .webtoon-header-input-wrap .btn-search {
width: 35px;
height: 100%;
background-color: #00d564;
}

#webtoon-header .webtoon-header-top .webtoon-header-right {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
}

#webtoon-header .webtoon-header-top .webtoon-header-right .btn-login {
border: solid 1px #000000;

padding: 2px 4px;
margin-right: 20px;

font-size: 12px;

}

#webtoon-header .webtoon-header-top .webtoon-header-right .btn-menu {
width: 16px;
height: 16px;
background-color: blue;
}

#webtoon-header .webtoon-header-nav {
border-bottom: solid 1px #e5e5e5;
}

#webtoon-header .webtoon-header-nav .webtoon-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}

#webtoon-header .webtoon-header-nav nav {

}

#webtoon-header .webtoon-header-nav nav ul {
display: flex;
flex-wrap: wrap;
align-items: center;
}

#webtoon-header .webtoon-header-nav nav ul li {
width: auto;
height: 40px;
}

#webtoon-header .webtoon-header-nav nav ul li.on a {
background-color: #00d564;
color: #ffffff;
}

#webtoon-header .webtoon-header-nav nav ul li a {
display: block;
width: 100%;
height: 100%;
padding: 0 15px;

line-height: 40px;

font-size: 14px;

}

#webtoon-header .webtoon-header-nav .webtoon-header-link-wrap {

}

#webtoon-header .webtoon-header-nav .webtoon-header-link-wrap .icon-ex-mark{
display: inline-block;
width: 16px;
height: 14px;
background-color: #000000;

vertical-align: middle;

}

#webtoon-header .webtoon-header-nav .webtoon-header-link-wrap a {
vertical-align: middle;
font-size: 12px;
color: #606060;
}

#webtoon-header .webtoon-header-nav .webtoon-header-link-wrap a:hover {
text-decoration: underline;
}

#webtoon-main {
padding-bottom: 100px;
}

#webtoon-main .webtoon-container {
overflow: hidden;
}

#webtoon-main .webtoon-main-left {
float: left;

width: 694px;

}

#webtoon-main .webtoon-main-left .webtoon-carousel {
overflow: hidden;
width: 694px;
height: 252px;
background-color: #ffffff;

margin-bottom: 20px;

}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left {
float: left;
width: 112px;
padding: 20px 5px 0 15px;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left h2 {
font-size: 25px;
margin-bottom: 13px;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left span {
color: #00d564;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left p {
font-size: 12px;
color: #808285;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left ul {
margin-top: 48px;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left li {
font-size: 12px;
margin-bottom: 10px;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left li.on a {
color: #00d564;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left li:last-child {
margin-bottom: 0;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right {
float: right;
width: calc(100% - 112px);
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner {
width: 582px;
height: 195px;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner img {
width: 100%;
height: 100%;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav {
position: relative;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav ul {
display: flex;
flex-wrap: wrap;
align-items: center;

width: 540px;
margin-bottom: 0 auto;

}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav ul li {
width: 135px;
height: 57px;
border-left: solid 1px #e5e5e5;
border-right: solid 1px #e5e5e5;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav ul li:first-child {
border-left: none;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav ul li:last-child {
border-right: none;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav ul li img {
width: 100%;
height: 100%;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav .btn {
position: absolute;
width: 20px;
height: 57px;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav .btn.btn-prev {
left: 0;
top: 0;
background-color: pink;
}

#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right .webtoon-carousel-banner-nav .btn.btn-next {
right: 0;
top: 0;
background-color: blue;
}

학습내용 중 어려웠던 점

이제는 손에 많이 익기도 하고 반복 학습이 되어서 어느정도 쉽게 넘어가고 코드의 틀린점을 찾기가 수월해졌다.

해결방법

역시 반복적인 학습이 문제점을 해결하는데 도움이 된 것 같다.

학습소감

이제 틀린 코드를 찾는게 쉬워서 즐겁게 수업을 듣는다.
하지만 아직 수업을 빨리 따라기에는 좀 무리가 있는 것 같다.

profile
나는 돈 많이 버는 개발자가 될 것이다.

0개의 댓글