개발일지 38일차

이재경·2021년 7월 16일

팀별 프로젝트 진행 상황 및 업무

메인페이지 작업 및 링크 설정, 구글 API 키 발급 및 연동

오늘 강의를 통해 프로젝트에 적용한 부분

학습내용

  • 유튜브 상단 영역

    index.html

<nav id="youtube-top-nav">
			
			<div class="youtube-top-wrap flex-align-between">
				<div class="nav-left flex-align-start">
					<button class="btn-menu" type="button"></button>
					<h1>
						<a href="#">
							<img src="https://via.placeholder.com/90x20">
						</a>
					</h1>
				</div>

				<div class="nav-center flex-align-start">
					<div class="search-wrap flex-align-start">
						<input type="text" placeholder="검색">	
						<button type="button" class="btn-search"></button>
					</div>
					<button class="btn-voice"></button>
				</div>

				<div class="nav-right flex-align-end">
					<button type="button" class="btn-menu btn-menu-1"></button>
					<button type="button" class="btn-menu btn-menu-2"></button>
					<a href="#" class="btn-login">로그인</a>
				</div>
			</div>

		</nav>

style.css

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
	width: 100%;
	height: 100%;
}
ol, ul {
	list-style: none;
}
a {
	text-decoration: none;
}
img {
	vertical-align: middle;
}
button {
	background-color: transparent;
	border: none;
}
input {
	outline: none;
	border: none;
}
input:focus {
	outline: none;
}
#wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	min-width: 1320px;
}
.flex-align-between {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}
.flex-align-start {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}
.flex-align-end {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}
/* 상단 메뉴 */
#youtube-top-nav {
	position: fixed;
	width: 100%;
	height: 56px;
	background-color: #212121;
	padding: 0 16px;
}
#youtube-top-nav .nav-left {
	height: 56px;
}
#youtube-top-nav .nav-left .btn-menu {
	width: 24px;
	height: 24px;
	background-color: yellow;
}
#youtube-top-nav .nav-left h1 {
	margin-left: 16px;
}
#youtube-top-nav .nav-left h1 a {
}
#youtube-top-nav .nav-left h1 img {
	width: 90px;
	height: 20px;
}
#youtube-top-nav .nav-right {
	height: 56px;
}
#youtube-top-nav .nav-right .btn-menu {
	width: 40px;
	height: 40px;
	margin-right: 16px;
}
#youtube-top-nav .nav-right .btn-menu.btn-menu-1 {
	background-color: grey;
}
#youtube-top-nav .nav-right .btn-menu.btn-menu-2 {
	background-color: yellow;
}
#youtube-top-nav .nav-right .btn-login {
	border: solid 1px #3ea6ff;
	padding: 10px 12px 8px;
	font-size: 14px;
	color: #3ea6ff;
}
#youtube-top-nav .nav-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
#youtube-top-nav .nav-center .search-wrap {	
	width: 640px;
	height: 30px;
}
#youtube-top-nav .nav-center .search-wrap input {
	width: calc(100% - 65px);
	height: 30px;
	border: solid 1px grey;
	background-color: #212121;
	color: #fff;
	padding: 2px 6px;
	font-size: 14px;
}
#youtube-top-nav .nav-center .search-wrap .btn-search {
	width: 65px;
	height: 30px;
	border: solid 1px grey;
	background-color: grey;
}
#youtube-top-nav .nav-center .btn-voice {
	width: 24px;
	height: 24px;
	background-color: blue;
	margin-left: 16px;
}

결과

어려웠던 점과 해결방법

아쉬웠던 점

profile
I'm Closer

0개의 댓글