2021_08_ 개발일지

Yeo Eunhye·2021년 8월 3일
0

1) 학습한 내용

오늘은 어제 뉴스의 엔터부분을 이어서 왼쪽편을 마무리 해보았다.

1. Ent - section - 4

- html

<div id="ent-section-4">
					<ul>
						<li>
							<a href="#" class="ent-flex-between">
								<div class="ent-info">
									<h3>Title 1 Title 1 Title 1</h3>
									<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
									<span class="source">스포츠동아</span>
								</div>

								<img src="https://via.placeholder.com/88x88">
							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-between">
								<div class="ent-info">
									<h3>Title 1 Title 1 Title 1</h3>
									<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
									<span class="source">스포츠동아</span>
								</div>

								<img src="https://via.placeholder.com/88x88">
							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-between">
								<div class="ent-info">
									<h3>Title 1 Title 1 Title 1</h3>
									<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
									<span class="source">스포츠동아</span>
								</div>

								<img src="https://via.placeholder.com/88x88">
							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-between">
								<div class="ent-info">
									<h3>Title 1 Title 1 Title 1</h3>
									<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
									<span class="source">스포츠동아</span>
								</div>

								<img src="https://via.placeholder.com/88x88">
							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-between">
								<div class="ent-info">
									<h3>Title 1 Title 1 Title 1</h3>
									<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
									<span class="source">스포츠동아</span>
								</div>

								<img src="https://via.placeholder.com/88x88">
							</a>
						</li>
					</ul>

					<button class="btn-more">새로운 뉴스 가져오기</button>
				</div>

- css

#ent-main .ent-left #ent-section-4 {
	padding: 23px 0;
	border-bottom: solid 1px #e4e4e4;
}

#ent-main .ent-left #ent-section-4 .title-wrap {
	/*margin-bottom: 18px;*/
}

#ent-main .ent-left #ent-section-4 .title-wrap h3 {
	font-size: 16px;
}

#ent-main .ent-left #ent-section-4 ul {

}

#ent-main .ent-left #ent-section-4 li {
	padding: 18px 0;
	border-bottom: solid 1px #f1f1f1;
}

#ent-main .ent-left #ent-section-4 li:last-child {
	border-bottom: none;
	/*굵기가 겹침*/
}

#ent-main .ent-left #ent-section-4 a {

}

#ent-main .ent-left #ent-section-4 .ent-info {
	width: 528px;
}

#ent-main .ent-left #ent-section-4 .ent-info h3 {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 7px;
}

#ent-main .ent-left #ent-section-4 .ent-info p {
	font-size: 12px;
	font-weight: 400;
	line-height: 20px;
	color: #898989;

	margin-bottom: 9px;
}

#ent-main .ent-left #ent-section-4 .ent-info .source{
	font-size: 11px;
	font-weight: 400;
	color: #a7a7a7;
}

#ent-main .ent-left #ent-section-4 li img {
	width: 88px;
	height: 88px;
	border: solid 1px #000000;
}

#ent-main .ent-left #ent-section-4 .btn-more {
	display: block;
	width: 100%;
	height: 40px;
	background-color: #ffffff;
	border: solid 1px #e8e8e8;

	line-height: 40px;

	text-align: center;

	color: #444;
}

2. Ent - section - 5

- html

<div id="ent-section-5">
					<div class="title-wrap ent-flex-between">
						<h3>오늘의 프로그램</h3>
						<a href="#">더보기</a>
					</div>

					<ul>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/55x55">
								<h4>모범택시</h4>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/55x55">
								<h4>모범택시</h4>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/55x55">
								<h4>모범택시</h4>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/55x55">
								<h4>모범택시</h4>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/55x55">
								<h4>모범택시</h4>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/55x55">
								<h4>모범택시</h4>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/55x55">
								<h4>모범택시</h4>
							</a>
						</li>
					</ul>
				</div>

- css

#ent-main .ent-left #ent-section-5 {
	padding: 24px 0 14px;
	border-bottom: solid 1px #e4e4e4;
}

#ent-main .ent-left #ent-section-5 .title-wrap {
	margin-bottom: 20px;
}

#ent-main .ent-left #ent-section-5 .title-wrap h3 {
	font-size: 16px;
}

#ent-main .ent-left #ent-section-5 .title-wrap a {
	font-size: 12px;
	color: #999;
}

#ent-main .ent-left #ent-section-5 ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
}

#ent-main .ent-left #ent-section-5 li {

}

#ent-main .ent-left #ent-section-5 li a {
	display: block;

	width: 100%;
	height: 100%;
	/*영역전체 선택이 가능하도록*/
	text-align: center;
}

#ent-main .ent-left #ent-section-5 li img {
	width: 55px;
	height: 55px;
	border-radius: 50%;

	margin-bottom: 10px;
}

#ent-main .ent-left #ent-section-5 li h4 {
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

3. Ent - section - 6

- html

<div id="ent-section-6">
					<div class="title-wrap ent-flex-between">
						<h3>TV 프로그램 구독</h3>
						<a href="#">더보기</a>
					</div>


					<ul class="ent-flex-between">
						<li>
							<a href="#">
								<div class="img-wrap">
									<img src="https://via.placeholder.com/148x85">
									<i class="icon-play"></i>
								</div>
								<h4>동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 </h4>
							</a>

							<a href="#">
								<span class="source">KBS2</span>
								<span class="program">미스 몬테크리스토</span>
							</a>
							<!-- 글자가 들어가는 태그들 처럼 <a>태그안에 <a>를 넣을수 없다. -->
						</li>
						<li>
							<a href="#">
								<div class="img-wrap">
									<img src="https://via.placeholder.com/148x85">
									<i class="icon-play"></i>
								</div>
								<h4>동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 </h4>
							</a>

							<a href="#">
								<span class="source">KBS2</span>
								<span class="program">미스 몬테크리스토</span>
							</a>
						</li>
						<li>
							<a href="#">
								<div class="img-wrap">
									<img src="https://via.placeholder.com/148x85">
									<i class="icon-play"></i>
								</div>
								<h4>동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 </h4>
							</a>

							<a href="#">
								<span class="source">KBS2</span>
								<span class="program">미스 몬테크리스토</span>
							</a>
						</li>
						<li>
							<a href="#">
								<div class="img-wrap">
									<img src="https://via.placeholder.com/148x85">
									<i class="icon-play"></i>
								</div>
								<h4>동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 동해물과 백두산이 </h4>
							</a>

							<a href="#">
								<span class="source">KBS2</span>
								<span class="program">미스 몬테크리스토</span>
							</a>
						</li>
					</ul>
				
				</div>

- css

#ent-main .ent-left #ent-section-6 {
	padding: 24px 0;
	border-bottom: solid 1px #e4e4e4;
}

#ent-main .ent-left #ent-section-6 .title-wrap {
	margin-bottom: 17px;
}

#ent-main .ent-left #ent-section-6 .title-wrap h3 {
	font-size: 16px;
}

#ent-main .ent-left #ent-section-6 .title-wrap a {
	font-size: 12px;
    color: #999;
}

#ent-main .ent-left #ent-section-6 ul {

}	

#ent-main .ent-left #ent-section-6 li {
	width: 148px;
}

#ent-main .ent-left #ent-section-6 ul .img-wrap {
	position: relative;
	width: 148px;
	height: 85px;
	border: solid 1px #000000;

	margin-bottom: 10px;
}

#ent-main .ent-left #ent-section-6 ul .img-wrap img {
	position: absolute;
	width: 100%;
	height: 100%;
}

#ent-main .ent-left #ent-section-6 ul .img-wrap .icon-play {
	position: absolute;
	display: block;

	width: 28px;
	height: 28px;
	background-color: grey;
	border-radius: 50%;

	left: 8px;
	bottom: 7px;
}

#ent-main .ent-left #ent-section-6 ul h4 {
	font-size: 12px;
	margin-bottom: 8px;
}

#ent-main .ent-left #ent-section-6 ul span {
	font-size: 11px;
	color: #141414;
}

#ent-main .ent-left #ent-section-6 ul .source {
	color: #999;
}

#ent-main .ent-left #ent-section-6 ul .source:after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 2px;
	background-color: #d3d3d3;

	vertical-align: top;

	margin: 13px 2px 0 5px;
}

#ent-main .ent-left #ent-section-6 ul .program:after {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	background-color: red;

	vertical-align: top;

	margin: 9px 0px 0px 2px;;
}

이어서 섹션 4 복붙 하기

4. Ent - section - 7

- html

<div id="ent-section-7">
					<div class="title-wrap ent-flex-between">
						<h3>영화계는 지금</h3>
						<a href="#">더보기</a>
					</div>

					<div class="movie-wrap ent-flex-start">
						<div class="left">
							<a href="#">
								<img src="https://via.placeholder.com/200x122">
								<h4>Title1</h4>
								<p>가나다라마바사아자차카타파하</p>
							</a>
						</div>
						<div class="right">
							<ul>
								<li>
									<a href="#">Title 1</a>
									<span>스타뉴스</span>
								</li>
								<li>
									<a href="#">Title 1 Title 1Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1</a>
									<span>스타뉴스</span>
								</li>
								<li>
									<a href="#">Title 1 Title 1Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1</a>
									<span>스타뉴스</span>
								</li>
								<li>
									<a href="#">Title 1 Title 1Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1</a>
									<span>스타뉴스</span>
								</li>
								<li>
									<a href="#">Title 1 Title 1Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1 Title 1</a>
									<span>스타뉴스</span>
								</li>
							</ul>
						</div>
					</div>
				</div>

- css

#ent-main .ent-left #ent-section-7 {
	padding: 24px 0 20px;
	border-bottom: solid 1px #e4e4e4;
}

#ent-main .ent-left #ent-section-7 .title-wrap {
    margin-bottom: 17px;
}

#ent-main .ent-left #ent-section-7 .title-wrap h3 {
    font-size: 16px;
}

#ent-main .ent-left #ent-section-7 .title-wrap a {
    font-size: 12px;
    color: #999;
}

#ent-main .ent-left #ent-section-7 .movie-wrap {
	align-items: stretch;
}

#ent-main .ent-left #ent-section-7 .movie-wrap .left {

}

#ent-main .ent-left #ent-section-7 .movie-wrap .left img {
	width: 200px;
	height: 122px;
	margin-bottom: 11px;
}

#ent-main .ent-left #ent-section-7 .movie-wrap .left h4 {
	font-size: 12px;
	font-weight: 700;
}
#ent-main .ent-left #ent-section-7 .movie-wrap .left p {
	font-size: 11px;
	font-weight: 400;
	max-width: 190px;

	text-overflow: ellipsis;
}


#ent-main .ent-left #ent-section-7 .movie-wrap .right {
	width: 412px;
	margin-left: 18px;
}

#ent-main .ent-left #ent-section-7 .movie-wrap .right ul {
	
}

#ent-main .ent-left #ent-section-7 .movie-wrap .right li {
	margin-bottom: 10px;
}

#ent-main .ent-left #ent-section-7 .movie-wrap .right li:last-child {
	margin-bottom: 0;
}

#ent-main .ent-left #ent-section-7 .movie-wrap .right a {
	display: inline-block;
	max-width: 358px;
	margin-right: 5px;
	vertical-align: top;

	font-size: 12px;
	font-weight: 700;

	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ent-main .ent-left #ent-section-7 .movie-wrap .right span {
	vertical-align: top;

	font-size: 11px;
	color: #898989;
}

5. Ent - section - 8

- html

<div id="ent-section-8">
					<div class="title-wrap ent-flex-between">
						
						<div class="ent-flex-start">
							<h3>많이 본 연예정보</h3>

							<ul class="ent-flex-start">
								<li><a href="#" class="on">연예뉴스</a></li>
								<li><a href="#">영상</a></li>
								<li><a href="#">뮤직</a></li>
								<li><a href="#">V LIVE</a></li>
							</ul>
						</div>

						<a href="#" class="more">더보기</a>

					</div>

					<ol class="news-lists">
						<li>
							<a href="#" class="ent-flex-start">
								
								<span class="rank">1</span>

								<div class="news-info-wrap ent-flex-between">
									<div class="news-info-txt">
										<h4>Title</h4>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
										<span>헤럴드 POP</span>
									</div>

									<img src="https://via.placeholder.com/88x88">
								</div>

							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-start">
								
								<span class="rank">2</span>

								<div class="news-info-wrap ent-flex-between">
									<div class="news-info-txt">
										<h4>Title</h4>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
										<span>헤럴드 POP</span>
									</div>

									<img src="https://via.placeholder.com/88x88">
								</div>

							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-start">
								
								<span class="rank">3</span>

								<div class="news-info-wrap ent-flex-between">
									<div class="news-info-txt">
										<h4>Title</h4>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
										<span>헤럴드 POP</span>
									</div>

									<img src="https://via.placeholder.com/88x88">
								</div>

							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-start">
								
								<span class="rank">4</span>

								<div class="news-info-wrap ent-flex-between">
									<div class="news-info-txt">
										<h4>Title</h4>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
										<span>헤럴드 POP</span>
									</div>

									<img src="https://via.placeholder.com/88x88">
								</div>

							</a>
						</li>
						<li>
							<a href="#" class="ent-flex-start">
								
								<span class="rank">5</span>

								<div class="news-info-wrap ent-flex-between">
									<div class="news-info-txt">
										<h4>Title</h4>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
										<span>헤럴드 POP</span>
									</div>

									<img src="https://via.placeholder.com/88x88">
								</div>

							</a>
						</li>
					</ol>
				</div>

- css

#ent-main .ent-left #ent-section-8 .title-wrap {
	
}

#ent-main .ent-left #ent-section-8 .title-wrap div {
	align-items: flex-start;
}

#ent-main .ent-left #ent-section-8 .title-wrap h3 {
	font-size: 16px;
}

#ent-main .ent-left #ent-section-8 .title-wrap ul {
	position: relative;
    top: -4px;
	margin-left: 19px;
}

#ent-main .ent-left #ent-section-8 .title-wrap li {

}

#ent-main .ent-left #ent-section-8 .title-wrap li a {
	font-size: 12px;
	color: #181818;
}

#ent-main .ent-left #ent-section-8 .title-wrap li a:before {
	content: '';
	display: inline-block;
	width: 1px;
	height: 10px;
	background-color: #e8e8e8;

	margin: 0 10px;

	vertical-align: -1px;
}

#ent-main .ent-left #ent-section-8 .title-wrap li:first-child a:before {
	content: none;
}

#ent-main .ent-left #ent-section-8 .title-wrap li a.on {
	font-weight: 700;
	color: #e2458f;
	border-bottom: solid 1px #e2458f;
}

#ent-main .ent-left #ent-section-8 .title-wrap .more {
	font-size: 12px;
    color: #999;
}


#ent-main .ent-left #ent-section-8 .news-lists {

}

#ent-main .ent-left #ent-section-8 .news-lists li {
	padding: 18px 0;
	border-bottom: solid 1px #f1f1f1;
} 

#ent-main .ent-left #ent-section-8 .news-lists a {
	/*display: block;*/
}

#ent-main .ent-left #ent-section-8 .news-lists .rank{
	display: block;
	width: 40px;
	text-align: center;
}

#ent-main .ent-left #ent-section-8 .news-lists .news-info-wrap{
	width: calc(100% - 40px);
}

#ent-main .ent-left #ent-section-8 .news-lists .news-info-txt{
	width: 486px;	
}

#ent-main .ent-left #ent-section-8 .news-lists .news-info-txt h4 {
	font-size: 14px;
	font-weight: 700;	
	margin-bottom: 9px;
}

#ent-main .ent-left #ent-section-8 .news-lists .news-info-txt p{
	font-size: 12px;
	font-weight: 400;
	color: #898989;
	margin-bottom: 8px
}

#ent-main .ent-left #ent-section-8 .news-lists .news-info-txt span {
	font-size: 11px;
	color: #898989;
}

#ent-main .ent-left #ent-section-8 .news-lists .news-info-wrap img{
	width: 88px;
	height: 88px;
}

6. Ent - section - 9

- html

<div id="ent-section-9">
					<div class="title-wrap ent-flex-between">
						<h3>기자추천 연재코너</h3>
						<a href="#" class="more">더보기</a>
					</div>

					<ul class="ent-flex-between">
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/200x122">
								<div class="txt-wrap">
									<span class="program">SW시선</span>
									<span class="source">스포츠월드</span>
									<h4>Title 1 Title 1 Title 1 Title 1</h4>
								</div>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/200x122">
								<div class="txt-wrap">
									<span class="program">SW시선</span>
									<span class="source">스포츠월드</span>
									<h4>Title 1 Title 1 Title 1 Title 1</h4>
								</div>
							</a>
						</li>
						<li>
							<a href="#">
								<img src="https://via.placeholder.com/200x122">
								<div class="txt-wrap">
									<span class="program">SW시선</span>
									<span class="source">스포츠월드</span>
									<h4>Title 1 Title 1 Title 1 Title 1</h4>
								</div>
							</a>
						</li>
					</ul>
				</div>

- css

#ent-main .ent-left #ent-section-9 {
	padding: 24px 0 20px;
	border-bottom: solid 1px #e4e4e4;
}

#ent-main .ent-left #ent-section-9 .title-wrap {
    margin-bottom: 17px;
}

#ent-main .ent-left #ent-section-9 .title-wrap h3 {
    font-size: 16px;
}

#ent-main .ent-left #ent-section-9 .title-wrap a {
    font-size: 12px;
    color: #999;
}

#ent-main .ent-left #ent-section-9 ul {

}

#ent-main .ent-left #ent-section-9 li {
	width: 200px;
	border: solid 1px #000000;
}

#ent-main .ent-left #ent-section-9 a {
	display: block;
}

#ent-main .ent-left #ent-section-9 li img {
	width: 100%;
	height: 122px;
}

#ent-main .ent-left #ent-section-9 li .txt-wrap {
	padding: 13px 14px 18px;
}

#ent-main .ent-left #ent-section-9 li span {
	font-size: 11px;
}

#ent-main .ent-left #ent-section-9 li .program {
	color: #ff0080
}

#ent-main .ent-left #ent-section-9 li .program:after {
	content: '';
    display: inline-block;
    width: 2px;
    height: 2px;
    background-color: #d3d3d3;
    vertical-align: top;
    margin: 9px 0px 0 5px;
}

#ent-main .ent-left #ent-section-9 li .source {
	color: #999;
}

#ent-main .ent-left #ent-section-9 li h4 {
	padding-top: 8px;

	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	min-height: 36px;
}

2) 학습내용 중 어려웠던 점 및 해결방법

이번엔 강사님과 같은영역에 비해 나의 글꼴이 조금더 커 틀이 안맞는 경우가 다른거에 비해 좀더 있었다. 그래서 마진 비율들도 바꿔줘야하고 폰트 사이즈들도 맞게 맞춰줘야했다.
중간중간 강사님께서 진행하시면서 css 가 적용 되지 않을때 어떤것이 적용이 안되었는지 알고 그 주변을 살펴 해결하는것이 멋있었다!
또 처음에 공간을 보기위해 설정해놓은 height때문에 섹션이 길어질수록 계속 늘려야하는 줄알고 계속 늘이다가 100% 로 바꿔놓고 하니 잘 되었다. 그런데 보니 그냥 height를 적용안하면되었었는데,,ㅎㅎㅎㅎ 돌아서 돌아서 쉬운방법을 알았다.

3) 학습소감

진행을 하면서 조금씩 디테일한 부분을 추가해주려고 하는데 그런점들이 재밌는 것 같다 아직 부족하지만 그래도 내가 생각해서 어떤부분 어떻게 이런식으로 생각하며 하는 것이라 그런지 좀더 집중하게 되는 것 같다 : )
전혀 흥미를 느끼지 못할것 같은 나였지만 요즘 생각보다 더 흥미가 있고 엄청난 집중력이 발휘되는것이 신기할 따름이다.

profile
아직 여백이 많은 개린이입니다.

0개의 댓글