개발일지 21/07/02

강민정·2021년 7월 2일

학습 내용
1. 네이버 이스포츠 오른쪽 영역
2. 웹폰트 적용하기
https://m.blog.naver.com/onsway/221547112192

html

				<div id="esport-news-view">
					
					<h2>많이 본 뉴스</h2>

					<ol>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
						<li>
							<a href="#" class="esport-flex-between">
								<div class="image-wrap">
									<img src="https://via.placeholder.com/84x48">
									<span class="rank">1</span>
								</div>

								<h3>타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀 타이틀</h3>
							</a>
						</li>
					</ol>

				</div>


				<div id="esport-schedule">
					<h2>e스포츠 경기 일정/결과</h2>

					<div class="schedule-wrap">
						
						<div class="schedule-header esport-flex-between">

							<button class="arrow arrow-left"></button>
							<span>06.05 토</span>
							<button class="arrow arrow-right"></button>
							
						</div>

						<div class="schedule-body">
							
							<ul>
								<li>
									<h3>2021 LCK AS 챔피언십 풀리그 3일차</h3>
									<div class="status-wrap esport-flex-center">
										<span class="status">진행중</span>
										<span class="time">10:00</span>
									</div>
								</li>

								<li>
									<h3>2021 LCK AS 챔피언십 풀리그 3일차</h3>
									<div class="status-wrap esport-flex-center">
										<span class="status">진행중</span>
										<span class="time">10:00</span>

CSS

#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 {
float: left;
width: 900px;
/height: 2000px;/
/background-color: yellow;/
}

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

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

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

#esport-news-view {
padding: 20px;
border: solid 1px grey;
border-radius: 10px;

margin-bottom: 30px;

}

#esport-news-view h2 {
font-size: 18px;
}

#esport-news-view ol {
margin-top: 20px;
}

#esport-news-view li {
margin-bottom: 8px;
}

#esport-news-view li:last-child {
margin-bottom: 0;
}

#esport-news-view li a {
/display: block;/
}

#esport-news-view li .image-wrap {
overflow: hidden;
position: relative;
width: 84px;
height: 48px;
border: solid 1px rgba(0, 0, 0, .04);
border-radius: 4px;
}

#esport-news-view li .image-wrap img {
position: absolute;
width: 100%;
height: 100%;
}

#esport-news-view li .image-wrap .rank {
position: absolute;
background-color: #4e41db;
border-bottom-right-radius: 4px;

padding: 4px 10px;

top: 0;
left: 0;

font-size: 13px;
color: #fff;
font-weight: 800;

}

#esport-news-view li h3 {
display: -webkit-box;
overflow: hidden;

width: 218px;
max-height: 38px;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;


font-size: 14px;
line-height: 19px;

}

#esport-schedule {

}

#esport-schedule h2 {
font-size: 18px;
}

#esport-schedule .schedule-wrap {
margin-top: 15px;
border: solid 1px grey;
border-radius: 4px;
}

#esport-schedule .schedule-wrap .schedule-header {
padding: 14px 15px;
border-bottom: solid 1px grey;
}

#esport-schedule .schedule-wrap .schedule-header .arrow {
width: 20px;
height: 20px;
}

#esport-schedule .schedule-wrap .schedule-header .arrow.arrow-left {
background-color: yellow;
}

#esport-schedule .schedule-wrap .schedule-header .arrow.arrow-right {
background-color: greenyellow;
}

#esport-schedule .schedule-wrap .schedule-header span {
position: relative;

font-size: 18px;
font-weight: 800;

top: 3px;

}

#esport-schedule .schedule-body {
padding: 17px 0;
}

#esport-schedule .schedule-body li {
/padding: 17px 0;/
}

#esport-schedule .schedule-body li:first-child:after {
content: "";
display: block;
width: calc(100% - 40px);
height: 1px;
background-color: rgba(0, 0, 0, .05);

margin: 17px auto;

}

#esport-schedule .schedule-body li h3 {
font-size: 14px;
margin-bottom: 12px;
text-align: center;
}

#esport-schedule .schedule-body li .status-wrap {

}

#esport-schedule .schedule-body li .status-wrap:hover {
/cursor: pointer;/
background-color: yellow;
}

#esport-schedule .schedule-body li .status-wrap .status{
background-color: rgba(255, 0, 0, .1);
color: red;
font-weight: 500;
font-size: 11px;
border-radius: 3px;

margin-right: 4.5px;

padding: 2px 4px;

}

#esport-schedule .schedule-body li .status-wrap .time{
position: relative;

top: 1px;

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

}

profile
TODO 개발서 만들기

0개의 댓글