개발일지 21/06/24

학습 내용
게임 페이지 (html)

<header id="game-header">
	<div class="game-container">
		
		<nav class="game-flex-between">
			<div class="left game-flex-start">
				<h1>
					<a href="#">GAME</a>
				</h1>
				
				<ul class="game-flex-start">
					<li><a href="e-sport.html">e스포츠</a></li>
					<li><a href="#">PC게임</a></li>
				</ul>
			</div>

			<div class="right game-flex-end">
				<div class="search-wrap game-flex-start">
					<input type="text" placeholder="라운지, 게시물 검색">
					<button type="button" class="btn-search"></button>
				</div>

				<div class="ticket-wrap">
					<a href="#" class="btn-ticket"></a>
					<p class="bubble-msg">응모 티켓 받고 꿀템 도전!</p>
				</div>

				<a href="#" class="btn-login">로그인</a>
			</div>	
		</nav>


		<div class="game-events-wrap game-flex-between">
			<div class="event-wrap one">
				<div class="event-title-wrap">
					<span>HOT</span>
					<h2>
						디아블로 이모탈<br>
						알파 테스트 참가 이벤트
					</h2>
				</div>
			</div>

			<div class="event-wrap two">
				<div class="event-title-wrap">
					<span>HOT</span>
					<h2>
						디아블로 이모탈<br>
						알파 테스트 참가 이벤트
					</h2>
				</div>
			</div>

			<div class="event-wrap three">
				<div class="event-title-wrap">
					<span>HOT</span>
					<h2>
						디아블로 이모탈<br>
						알파 테스트 참가 이벤트
					</h2>
				</div>
			</div>
		</div>

	</div>
</header>


<main role="main" id="game-main">
	
	<div class="game-container game-flex-between">
		
		<div class="left">
			

			<div class="left-banner game-shadow">
				<a href="#">
					<img src="https://via.placeholder.com/900x120">
				</a>
			</div>

게임 페이지 (CSS)

.game-container {
width: 1280px;
margin: 0 auto;
}

.game-flex-between {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}

.game-flex-start {
display: flex;
flex-wrap: wrap;
align-items: center;
}

.game-flex-end {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
}

.game-flex-center {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}

.game-shadow {
box-shadow: 0 2px 30px 0 rgb(0 0 0 / 6%);
}

.game-p-30 {
padding: 30px;
}

.game-m-t-20 {
margin-top: 20px;
}

.font-17 {
font-size: 17px;
}

.font-19 {
font-size: 19px;
}

.font-400 {
font-weight: 400;
}

#game-body {
background-color: #f8f9fd;
}

#game-header {
width: 100%;
background-color: #4e41db;
}

#game-header nav {
height: 60px;
}

#game-header nav .left {

}

#game-header nav .left h1 {
font-size: 20px;
}

#game-header nav .left h1 a{
color: #ffffff;
}

#game-header nav .left ul {

}

#game-header nav .left ul li {

}

#game-header nav .left ul li a {
color: #9da5b6;
font-size: 18px;
}

#game-header nav .left ul li a:before {
display: inline-block;
content: '';
width: 1px;
height: 14px;
border-radius: .5px;
background-color: #9da5b6;

margin: 0 12px;

}

#game-header nav .right {

}

#game-header nav .right .search-wrap {
overflow: hidden;
width: 300px;
border-radius: 20px;
background-color: rgba(0, 0, 0, .28);
}

#game-header nav .right .search-wrap input {
width: calc(100% - 38px);
height: 38px;
background-color: transparent;
padding: 10px 12px 9px 14px;
border: none;

color: #ffffff;
font-size: 15px;

}

#game-header nav .right .search-wrap input:focus {
outline: none;
}

#game-header nav .right .search-wrap button {
width: 38px;
height: 38px;
background-color: transparent;
border: none;
}

#game-header nav .right .ticket-wrap {
position: relative;
width: 40px;
height: 40px;
margin-left: 10px;
}

#game-header nav .right .ticket-wrap .btn-ticket {
display: block;
width: 40px;
height: 40px;
border: solid 1px #ffffff;
}

#game-header nav .right .ticket-wrap .bubble-msg {
position: absolute;
width: 165px;
background-color: #697183;
border-radius: 8px;

padding: 10px 12px;
top: 50px;
left: 50%;
transform: translateX(-50%);

font-size: 14px;
color: #ffffff;
font-weight: 600;

z-index: 100;

학습한 내용 중 어려웠던 점 또는 해결못한 것들

해결방법 작성

학습 소감

좋은 웹페이지 즐겨찾기