html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>네이버</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body id="game-body">
<header id="esport-header">
<nav id="esport-nav">
<div class="esport-container">
<div class="nav-wrap esport-flex-between">
<div class="left esport-flex-start">
<h1><a href="#">e스포츠</a></h1>
<ul class="esport-flex-start">
<li><a href="#">GAME</a></li>
<li><a href="#">PC게임</a></li>
</ul>
</div>
<div class="center">
<ul class="esport-flex-center">
<li><a href="#" class="active">홈</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 class="right esport-flex-end">
<a href="#">로그인</a>
<a href="#">메뉴</a>
</div>
</div>
</div>
</nav>
</header>
<main id="esport-main" role="main">
<div id="esport-main-top">
<div class="esport-container">
<div class="timeline-wrap">
<ul class="esport-flex-start">
<li>
<a href="#">
<span class="date">오늘 (06.05)</span>
<h2>2021 LCK AS 챔피언십 풀리그 3일차</h2>
<div class="status-wrap esport-flex-between">
<span class="live">LIVE</span>
<span class="status">진행중</span>
</div>
</a>
</li>
<li>
<a href="#">
<span class="date">오늘 (06.05)</span>
<h2>2021 LCK AS 챔피언십 풀리그 3일차</h2>
<div class="status-wrap esport-flex-between">
<span class="live">LIVE</span>
<span class="status">진행중</span>
</div>
</a>
</li>
<li>
<a href="#">
<span class="date">오늘 (06.05)</span>
<h2>2021 LCK AS 챔피언십 풀리그 3일차</h2>
<div class="status-wrap esport-flex-between">
<span class="live">LIVE</span>
<span class="status">진행중</span>
</div>
</a>
</li>
<li>
<a href="#">
<span class="date">오늘 (06.05)</span>
<h2>2021 LCK AS 챔피언십 풀리그 3일차</h2>
<div class="status-wrap esport-flex-between">
<span class="live">LIVE</span>
<span class="status">진행중</span>
</div>
</a>
</li>
<li>
<a href="#">
<span class="date">오늘 (06.05)</span>
<h2>2021 LCK AS 챔피언십 풀리그 3일차</h2>
<div class="status-wrap esport-flex-between">
<span class="live">LIVE</span>
<span class="status">진행중</span>
</div>
</a>
</li>
<li>
<a href="#">
<span class="date">오늘 (06.05)</span>
<h2>2021 LCK AS 챔피언십 풀리그 3일차</h2>
<div class="status-wrap esport-flex-between">
<span class="live">LIVE</span>
<span class="status">진행중</span>
</div>
</a>
</li>
</ul>
</div>
<div class="live-wrap">
<h2>라이브중인 경기 <span class="count">2</span></h2>
<ul class="esport-flex-between">
<li>
<a href="#" class="esport-flex-between">
<img src="http://via.placeholder.com/442x250">
<div class="txt-wrap">
<span>진행중</span>
<h3>2021 PMPS S1 WEEKLY FINAL DAY 3</h3>
</div>
</a>
</li>
<li>
<a href="#" class="esport-flex-between">
<img src="http://via.placeholder.com/442x250">
<div class="txt-wrap">
<span>진행중</span>
<h3>2021 PMPS S1 WEEKLY FINAL DAY 3</h3>
</div>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="esport-container">
<div class="left"></div>
<div class="right"></div>
</div>
</main>
</body>
</html>
css
.esport-flex-between{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
align-content: stretch;
}
.esport-flex-start{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
align-content: stretch;
}
.esport-flex-center{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-content: stretch;
}
.esport-flex-end{
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
align-content: stretch;
}
.esport-container{
width: 1280px;
margin: 0 auto;
}
#esport-header{
background-color: #151618;
position: fixed;
left: 0;
top: 0;
width: 100%;
border-bottom: solid 1px gray;
}
#esport-header #esport-nav{
height: 60px;
}
#esport-header #esport-nav a{
color: #ffffff;
}
#esport-header #esport-nav .nav-wrap{
height: 60px;
}
#esport-header #esport-nav .left h1{
font-size: 20px;
}
#esport-header #esport-nav .left li{
}
#esport-header #esport-nav .left li:before{
display: inline-block;
content: '';
width: 1px;
height: 14px;
margin: 0 12px;
background-color: rgba(160, 165, 182, .3);
}
#esport-header #esport-nav .left li a{
color: gray;
}
#esport-header #esport-nav .center li{
margin-right: 24px;
}
#esport-header #esport-nav .center li:last-child{
margin-right: none;
}
#esport-header #esport-nav .center li a{
color: gray;
font-size: 17px;
display: inline-block;
height: 60px;
line-height: 60px;
border-bottom: solid 2px #ffffff;
}
#esport-header #esport-nav .center li a:hover{
color: darkgray;
}
#esport-header #esport-nav .center li a.active{
color: #ffffff;
border-bottom: solid 5px #ffffff;
}
#esport-header #esport-nav .right a{
border: solid 1px hsla(0, 0%, 80%, .3);
border-radius: 8px;
padding: 4px 8px;
font-size: 12px;
}
#esport-header #esport-nav .right a:last-child{
margin-left: 10px;
}
#esport-main{
padding: 61px;
background-color: #151618;
}
#esport-main-top{
}
#esport-main-top .timeline-wrap{
padding: 20px 0px;
}
#esport-main-top .timeline-wrap ul{
}
#esport-main-top .timeline-wrap li{
width: 16.1%;
background-color: #272b31;
border-radius: 10px;
margin-right: 1px;
}
#esport-main-top .timeline-wrap li:last-child{
margin-right: none;
}
#esport-main-top .timeline-wrap li a{
color: #ffffff;
display: block;
width: 100%;
padding: 14px 18px;
}
#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{
color: red;
font-weight: 500;
font-size: 12px;
}
#esport-main-top .live-wrap{
}
#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{
padding-bottom: 60px;
}
#esport-main-top .live-wrap li{
width: 625px;
background-color: #1f2227;
border-radius: 10px;
overflow: hidden;
}
#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, .2);
padding: 3px 7px;
break-inside: 3px;
}
#esport-main-top .live-wrap li .txt-wrap h3{
font-size: 15px;
color: #ffffff;
margin-top: 8px;
}
어려운 점은 없었다!
어려운 점 없었따!
코딩이 재미있다. java도 배우고 싶다.