
네이버 e스포츠 오른쪽 영역을 마무리 짓고 웹폰트 변경 방법까지 알아봤다.

<div class="right">
<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>타이틀타이틀타이틀타이틀타이틀v타이틀타이틀타이틀타이틀타이틀타이틀타이틀타이틀타이틀타이틀v타이틀타이틀타이틀타이틀타이틀 </h3>
</a>
/li>
</ol>
</div>
#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;
}

<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>
</div>
</li>
</ul>
</div>
</div>
</div>
#esport-schedule .schedule-body {
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;
}
* {
font-family: Arial, Times, sans-serif;
}
폰트 개수와는 상관없이 앞에서부터 우선순위 설정된다. Arial이 적용안된다면 Times -> snas-sefif 순으로 적용되게 된다.
<meta charset="utf-8">
<title>네이버</title>
(*css연결 위에 추가)
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Hahmlet:wght@100;300;600&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style-esport.css">
{
font-family: 'Hahmlet', sans-serif;
}

크게 어려움 없이 오른쪽 영역 완성시킬 수 있었다.
개발자들이 모든 코드를 외우고 작성하는게 아니라는 말에 좀 다행이었다. 반복적으로 작성해온 코드들도 한참동안 사용하지 않으면 잘 생각이 안난다. 그럴때마다 부족함을 많이 느꼈다. 다 기억하지 않아서 검색을 잘 활용해서 하나하나 페이지를 채워나가봐야겠다.