Day 36. 오디오 상단 영역

SUN·2021년 8월 13일

08월 13일

1. 학습 내용

사전 작업

CSS

.audio-container {
	width: 1080px;

	margin: 0 auto;}

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

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

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

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

오디오 헤더

HTML

				<div class="profile-wrap">
					<img src="https://via.placeholder.com/32px" class="profile-img">
					<a href="#" class="btn-login">로그인</a>
				</div>
			</div>


		</nav>
	</div>
</header>

CSS

#audio-header {
position: fixed;
width: 100%;
background-color: #ffffff;
border-bottom: solid 1px #efeff4;

	left: 0;
	top: 0;

	z-index: 99999;}

#audio-header .audio-nav-left {
	width: 660px;}


#audio-header .audio-nav-left ul {
	padding-top: 10px;}


#audio-header .audio-nav-left li a {
	display: block;
	/* 블록으로 설정을 해야 패딩 값을 정상적으로 인식 */
	font-size: 17px;
	padding: 12px 13px 17px 12px;}

#audio-header .audio-nav-left li a.active {
	font-weight: 700;}

#audio-header .audio-nav-left li a span {
	position: relative;
	display: inline-block;
	height: 21px;
    - 밑줄을 특별한 방법으로 생성}

#audio-header .audio-nav-left li a.active span:after {
	display: block;
	position: absolute;
	content: '';
	border-bottom: solid 3px #222222;
	border-radius: 1.5px;

	z-index: 1;

	left: -4.5px;
	right: -5.5px;
	bottom: -18px;
    - 3차원 특성을 이용해 위치를 조정}



#audio-header .audio-nav-right {
	width: 330px;}

#audio-header .audio-nav-right .search-wrap {
	width: 180px;
	height: 40px;
	border: solid 2px rgba(0, 86, 201, .2);
	border-radius: 4px;

	background-color: #ffffff;}

#audio-header .audio-nav-right .search-wrap .icon-search {
	width: 40px;
	height: 100%;

	background-color: yellow;}

#audio-header .audio-nav-right .search-wrap input {
	width: calc(100% - 40px);
	height: 100%;
	padding: 8px 15px;
	font-size: 15px;
	color: #000000;

	border: none;
	outline: none;}

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


#audio-header .audio-nav-right .profile-wrap img {
	width: 32px;
	height: 32px;
	border-radius: 50%;}

#audio-header .audio-nav-right .profile-wrap .btn-login {
	font-size: 15px;
	padding-left: 8px;}

2. 학습 중 어려웠던 점

밑줄을 만드는 새로운 방법이 어렵다.

3. 해결 방안

강의를 한번 더 들어본다.

4. 학습 소감

새로운게 나오니 좀 어렵다.

profile
안녕하세요!

0개의 댓글