e-sports_2

Leejihye·2021년 8월 12일
0

학습한 내용


html

<div class="esport-container">

			<div class="content-wrap">
				<div class="left">
					
					<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>

					<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></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></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></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></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></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></i>
											<span class="time">56:01</span>
										</div>
									</div>
									<h3>롤드컵 Day2 5세트 경기</h3>
								</a>
							</li>
						</ul>


					</div>




					<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>


					<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>
				</div>
				
				<div class="right"></div>
			</div>
		</div>

	</main>
</body>
</html>

css

#esport-main {
	padding-top: 61px;
}


#esport-main-top {
	background-color: #151618;
}

#esport-main-top .timeline-wrap {
	padding: 20px 0;
}

#esport-main-top .timeline-wrap ul {
	width: 100%;
}

#esport-main-top .timeline-wrap li {
	width: 16.6%;
	background-color: #272b31;
	border-radius: 10px;
	margin-right: 1px;
}

#esport-main-top .timeline-wrap li:last-child {
	margin-right: 0;
}

#esport-main-top .timeline-wrap li a {
	display: block;
	width: 100%;
	padding: 14px 18px;


	color: #ffffff;
}

#esport-main-top .timeline-wrap li a .date {
	font-size: 12px;
	font-weight: 500;
}

#esport-main-top .timeline-wrap li a h2 {
	font-size: 13px;
	margin-top: 6px;
	color: #a0a5b6;
}

#esport-main-top .timeline-wrap li a .status-wrap {
	margin-top: 35px;
}

#esport-main-top .timeline-wrap li a .status-wrap .live {
	font-size: 12px;
	font-weight: 700;
}

#esport-main-top .timeline-wrap li a .status-wrap .status {
	font-size: 12px;
	font-weight: 500x;
	color: red;
}


#esport-main-top .live-wrap {
	padding-bottom: 60px;
}

#esport-main-top .live-wrap h2 {
	font-size: 18px;
	color: #ffffff;
	margin-bottom: 20px;
}

#esport-main-top .live-wrap h2 .count {
	color: #8a7cff;
}

#esport-main-top .live-wrap ul {
	
}

#esport-main-top .live-wrap li {
	overflow: hidden;
	width: 625px;
	background-color: #1f2227;
	border-radius: 10px;
}

#esport-main-top .live-wrap a {
	/*display: block;*/
	/*width: 100%;*/
	/*height: 100%;*/
	align-items: flex-start;
}

#esport-main-top .live-wrap li img {
	width: 442px;
	height: 250px;
}

#esport-main-top .live-wrap li .txt-wrap{
	width: 183px;
	padding: 17px 20px 22px;
}

#esport-main-top .live-wrap li .txt-wrap span{
	color: red;
	background-color: rgba(255, 0, 0, 0.2);
	border-radius: 3px;
	padding: 3px 7px;
}

#esport-main-top .live-wrap li .txt-wrap h3{
	font-size: 15px;
	color: #ffffff;
	margin-top: 8px;
}

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

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

#esport-main .right{
	width: 	357px;
	float: right;
	height: 2000px;
	background-color: gray;
}

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

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

#esport-main-article .article.full{
	height: 100%;
}

#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);
}


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





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








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

학습내용 중 어려웠던 점

어려운 점 없었다.!

해결 방법

어려운 점 없었다.!

학습소감

재미있다. java프로그래밍도 빨리 배우고 싶다.

0개의 댓글

관련 채용 정보