2021_08_12개발일지

1) 학습한 내용

오늘은 왼쪽 영역을 마무리 해보았다.

1. esport-main-article

- html

<div id="esport-main-article">
						<div class="article full">
							<img src="https://via.placeholder.com/150">
							<div class="txt-wrap">
								<h3>Title</h3>
								<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
								<span class="source">포모스</span>
							</div>
						</div>

						<div class="article">
							<img src="https://via.placeholder.com/150">
							<div class="txt-wrap">
								<h3>Title</h3>
								<span class="source">포모스</span>
							</div>
						</div>

						<div class="article">
							<img src="https://via.placeholder.com/150">
							<div class="txt-wrap">
								<h3>Title</h3>
								<span class="source">포모스</span>
							</div>
						</div>
					</div>

- css

#esport-main .content-wrap {
	overflow: hidden;
	padding-top: 30px;

	
}
/* e-sport left */

#esport-main .left {
	float: left;
	width: 900px;
	/*height: 2000px;*/
	/*background-color: yellow;*/
}


#esport-main-article {
	overflow: hidden;
	width: 100%;
	height: 468px;
	background-color: grey;
	border-radius: 10px;

	margin-bottom: 30px;
}


#esport-main-article .article {
	position: relative;
	float: left;
	width: 50%;
	height: 50%;
}

#esport-main-article .article.full {
	height: 100%;
	/*한쪽만 꽉 채워주기위해*/
	/*background-color: pink;*/
}


#esport-main-article .article img {
	position: absolute;
	width: 100%;
	height: 100%;
}

#esport-main-article .article .txt-wrap {
	position: absolute;
	width: 100%;
	padding: 0 24px 20px;

	left: 0;
	bottom: 0;

	color: #ffffff;
}


#esport-main-article .article .txt-wrap h3 {
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
}

#esport-main-article .article .txt-wrap p {
	margin-top: 5px;

	font-size: 14px;
	font-weight: 500;
	line-height: 19px;
}

#esport-main-article .article .txt-wrap .source {
	display: block;
	margin-top: 10px;

	font-size: 13px;
	color: hsla(0, 0, 100%, .7);
}

2. esport-replay

- html

<div id="esport-replay" class="esport-section">

						<div class="title-wrap">
							<h2>경기 다시보기</h2>
						</div>

						<nav class="game-menu">
							<ul class="esport-flex-start">
								<li>
									<a href="#" class="active">
										<i></i>
										<span>MSI</span>
									</a>
								</li>
								<li>
									<a href="#">
										<i></i>
										<span>MSI</span>
									</a>
								</li>
								<li>
									<a href="#">
										<i></i>
										<span>MSI</span>
									</a>
								</li>
							</ul>
						</nav>


						<ul class="play-lists esport-flex-between">
							<li>
								<a href="#">
									<div class="image-wrap"> 
										<img src="https://via.placeholder.com/285x160">
										
										<div class="status-wrap esport-flex-between">
											<i><img src="img/play.png"></i>
											<span class="time">56:01</span>
										</div>
									</div>
									<h3>롤드컵 Day2 5세트 경기</h3>
								</a>
							</li>
							<li>
								<a href="#">
									<div class="image-wrap"> 
										<img src="https://via.placeholder.com/285x160">
										
										<div class="status-wrap esport-flex-between">
											<i><img src="img/play.png"></i>
											<span class="time">56:01</span>
										</div>
									</div>
									<h3>롤드컵 Day2 5세트 경기</h3>
								</a>
							</li>
							<li>
								<a href="#">
									<div class="image-wrap"> 
										<img src="https://via.placeholder.com/285x160">
										
										<div class="status-wrap esport-flex-between">
											<i><img src="img/play.png"></i>
											<span class="time">56:01</span>
										</div>
									</div>
									<h3>롤드컵 Day2 5세트 경기</h3>
								</a>
							</li>
							<li>
								<a href="#">
									<div class="image-wrap"> 
										<img src="https://via.placeholder.com/285x160">
										
										<div class="status-wrap esport-flex-between">
											<i><img src="img/play.png"></i>
											<span class="time">56:01</span>
										</div>
									</div>
									<h3>롤드컵 Day2 5세트 경기</h3>
								</a>
							</li>
							<li>
								<a href="#">
									<div class="image-wrap"> 
										<img src="https://via.placeholder.com/285x160">
										
										<div class="status-wrap esport-flex-between">
											<i><img src="img/play.png"></i>
											<span class="time">56:01</span>
										</div>
									</div>
									<h3>롤드컵 Day2 5세트 경기</h3>
								</a>
							</li>
							<li>
								<a href="#">
									<div class="image-wrap"> 
										<img src="https://via.placeholder.com/285x160">
										
										<div class="status-wrap esport-flex-between">
											<i><img src="img/play.png"></i>
											<span class="time">56:01</span>
										</div>
									</div>
									<h3>롤드컵 Day2 5세트 경기</h3>
								</a>
							</li>
						</ul>
					</div>

- css

.esport-section {
	border-top: solid 1px grey;
	padding-bottom: 30px;
	margin-bottom: 30px;
}

.esport-section .title-wrap {
	padding: 15px 0;
}

.esport-section .title-wrap h2 {
	font-size: 18px;
}
#esport-replay .game-menu {
	margin-bottom: 24px;
}


#esport-replay .game-menu ul {
	
}

#esport-replay .game-menu ul li {
	margin-right: 20px;
}

#esport-replay .game-menu ul li:last-child {
	margin-right: 0;
}

#esport-replay .game-menu ul li a {
	display: block;
	width: 60px;
	/*height: 82px;*/

	text-align: center;
}

#esport-replay .game-menu ul li a.active i {
	background-color: purple;
}

#esport-replay .game-menu ul li a.active span{
	color: purple;
}

#esport-replay .game-menu ul li i {
	display: inline-block;
	width: 60px;
	height: 60px;
	background-color: grey;
	border-radius: 50%;

	margin-bottom: 6px;
}

#esport-replay .game-menu ul li span{
	font-size: 13px;
}


#esport-replay .play-lists {

}

#esport-replay .play-lists li {
	width: 285px;
	margin-bottom: 24px;
}

#esport-replay .play-lists li:nth-child(4),
#esport-replay .play-lists li:nth-child(5),
#esport-replay .play-lists li:nth-child(6) {
	margin-bottom: 0;
}

#esport-replay .play-lists li a {
	display: block;
}

#esport-replay .play-lists li .image-wrap {
	position: relative;
	width: 100%;
	height: 160px;
	margin-bottom: 11px;
}

#esport-replay .play-lists li .image-wrap img {
	position: absolute;

	width: 100%;
	height: 100%;
}

#esport-replay .play-lists li .image-wrap .status-wrap {
	position: absolute;
	width: 100%;

	left: 0;
	bottom: 0;

	padding: 10px;
}

#esport-replay .play-lists li .image-wrap .status-wrap i {
	display: block;
	width: 20px;
	height: 20px;
	background-color: grey;
}

#esport-replay .play-lists li .image-wrap .status-wrap i img {
    position: absolute;
     /*width: 100%; */
    /*height: 100%;*/
     width: 20px; 
     height: 20px;
 }
#esport-replay .play-lists li .image-wrap .status-wrap .time {
	background-color: rgba(0, 0, 0, 0.7);
	padding: 3px 5px;
	border-radius: 3px;

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

#esport-replay .play-lists li .image-wrap .status-wrap i {
	
}

#esport-replay .play-lists li h3 {
	font-size: 15px;
}

3. esport-news

- html

<div id="esport-news" class="esport-section">
						
						<div class="title-wrap">
							<h2>추천 뉴스</h2>
						</div>

						<div class="article-wrap esport-flex-between">

							<ul class="left-lists esport-flex-between">
								<li>
									<a href="#">
										<img src="https://via.placeholder.com/226x132">
										
										<h3>타이틀1</h3>
										<p>동해물과 백두산이 마르고 닳도록 동해물과. 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
									</a>
								</li>
								<li>
									<a href="#">
										<img src="https://via.placeholder.com/226x132">
										
										<h3>타이틀1</h3>
										<p>동해물과 백두산이 마르고 닳도록 동해물과. 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록</p>
									</a>
								</li>
							</ul>

							<ul class="right-lists">
								<li><a href="#">동해물과 백두산이</a></li>
								<li><a href="#">동해물과 백두산이</a></li>
								<li><a href="#">동해물과 백두산이</a></li>
								<li><a href="#">동해물과 백두산이</a></li>
								<li><a href="#">동해물과 백두산이</a></li>
							</ul>
							
						</div>

					</div>

- css

#esport-news {

}

#esport-news .article-wrap {
	align-items: flex-start;
}


#esport-news .article-wrap .left-lists {
	width: 472px;
}

#esport-news .article-wrap .left-lists li {
	width: 226px;
}

#esport-news .article-wrap .left-lists li a {
	display: block;
}

#esport-news .article-wrap .left-lists img {
	width: 100%;
	height: 132px;
	margin-bottom: 9px;
}

#esport-news .article-wrap .left-lists h3 {
	font-size: 16px;
	font-weight: 500;
	line-height: 21px;
}

#esport-news .article-wrap .left-lists p {
	font-size: 14px;
	color: #777;
}

#esport-news .article-wrap .right-lists {
	width: 400px;
}

#esport-news .article-wrap .right-lists li {
	position: relative;
	margin-bottom: 5px;
}

#esport-news .article-wrap .right-lists li:before {
	position: absolute;
	display: inline-block;
	content: '';
	width: 4px;
	height: 4px;
	background-color: grey;
	border-radius: 50%;

	top: 6px;
}

#esport-news .article-wrap .right-lists li a {
	display: block;
	font-size: 16px;
	padding-left: 15px;
}

4. esport-expert

- html

<div id="esport-expert" class="esport-section">
						<div class="title-wrap">
							<h2>전문가 칼럼</h2>
						</div>

						<ul class="news-lists esport-flex-between">
							<li>
								<a href="#" class="esport-flex-start">
									<img src="https://via.placeholder.com/153x86">
									<div class="txt-wrap">
										<h3>Title</h3>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고  백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고</p>
										<span class="source">핫매치 리뷰</span>
									</div>
								</a>
							</li>
							<li>
								<a href="#" class="esport-flex-start">
									<img src="https://via.placeholder.com/153x86">
									<div class="txt-wrap">
										<h3>Title</h3>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고</p>
										<span class="source">핫매치 리뷰</span>
									</div>
								</a>
							</li>
							<li>
								<a href="#" class="esport-flex-start">
									<img src="https://via.placeholder.com/153x86">
									<div class="txt-wrap">
										<h3>Title</h3>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고</p>
										<span class="source">핫매치 리뷰</span>
									</div>
								</a>
							</li>
							<li>
								<a href="#" class="esport-flex-start">
									<img src="https://via.placeholder.com/153x86">
									<div class="txt-wrap">
										<h3>Title</h3>
										<p>동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고 닳도록 동해물과 백두산이 마르고</p>
										<span class="source">핫매치 리뷰</span>
									</div>
								</a>
							</li>
						</ul>
					</div>

- css

#esport-expert .news-lists {

}

#esport-expert .news-lists li {
	width: 450px;
	margin-bottom: 15px;
} 

#esport-expert .news-lists li a{
	
}

#esport-expert .news-lists li img {
	width: 153px;
	height: 86px;
	margin-right: 15px;
}

#esport-expert .news-lists .txt-wrap {
	width: 268px;
}

#esport-expert .news-lists .txt-wrap h3 {
	font-size: 15px;
	font-weight: 500;
}

#esport-expert .news-lists .txt-wrap p {
	font-size: 14px;
	color: #777777;
	line-height: 19px;
	margin-top: 4px;

	display: -webkit-box;
	overflow: hidden;
	max-height: 38px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    /*두줄이상시 말줄임표시 설정 방법*/
}

#esport-expert .news-lists .txt-wrap .source{
	font-size: 13px;
	color: #777777;
}


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

어제에 이어 왼쪽 부분을 마무리 해보았는데, 계속 해오던 것이라 크게 어려웠던 점은 없었다. 다만 아직 position 을 혼자서 사용할때는 많이 헤매는것 같다.
조금더 공부해야 할 것같다.

3) 학습소감

계속 이어서 작업을 하다 보니 반복되는 레이아웃들이 많고 큰틀들이 반복되어 있어 조금은 쉽고 빠르게 가능한것같다.
다만, 여기서 조금더 디테일로 들어갈수록 조금더 어려워지고 있는것같다. 또 빨리 자바를 다배워서 여기서 적용하지 못했던것도 해보고싶다~
벌써 목요일이다. 내일이면 또 한주가 끝난다 엄청 시간이 빠른것같다. 배울 건 산더미인것같은데... 뽜이팅 : )

좋은 웹페이지 즐겨찾기