[대구AI스쿨] 개발일지 35일차 (1) 210813

김선아·2021년 8월 13일
0

대구AI스쿨 개발일지

목록 보기
35/46

학습내용

1. 네이버 게임 (7)

1) e스포츠 메인 오른쪽 영역

<div class="right">


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

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

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
			<li>
				<a href="#" class="game-flex-between">
					<div class="image-wrap">
						<img src="https://via.placeholder.com/84x48">
						<span class="rank">1</span>
					</div>

					<h3>2021년 첫 5전제 맞대결 앞둔 '페이커'-'쵸비'…1년 4개월만</h3>
				</a>
			</li>
		</ol>

	</div>


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

		<div class="schedule-wrap">
			
			<div class="schedule-header game-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 game-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 game-flex-center">
							<span class="status">진행중</span>
							<span class="time">10:00</span>
						</div>
					</li>
				</ul>

			</div>

		</div>
	</div>


</div>

css↓

/* #esports-main .right */

#esports-main .right {
	float: right;
	width: 357px;
	/*height: 2000xp;*/
	/*background-color: gray;*/
}





/* esports-news-view */

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

	margin-bottom: 30px;
}

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

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

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

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

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

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

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

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

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







/* esports-schedule */


#esports-schedule {

}

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

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

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

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

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

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

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

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

	top: 3px;
}


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

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

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


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

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

}

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


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

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

	top: 1px;

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


2. 서체 적용하는 방법

  1. 적용할 서체를 우선순위 순 대로 css에 디폴트로 넣어준다.

  1. 구글웹폰트를 이용하여 서체 적용하는 방법





어려웠던 점과 해결방안

거의 비슷한 작업들이라서 어려웠던 점이 없었다.


학습소감

0개의 댓글