개발일지 17일차
학습 내용
- 네이버 블로그
blog.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<header id="blog-header">
<div class="blog-header-top">
<div class="blog-container">
<div class="blog-header-left">
<h2><a href="#">블로그</a></h2>
<div class="blog-header-input-wrap">
<div class="blog-search-wrap">
<input type="text">
<button type="button" class="btn-search"></button>
</div>
<button class="btn-total-search">통합 검색</button>
</div>
</div>
<div class="blog-header-right">
<a href="#" class="btn-login">로그인</a>
<button type="button" class="btn-menu"></button>
</div>
</div>
</div>
<div class="blog-header-nav">
<div class="blog-container">
<nav class="nav-left">
<ul>
<li class="on"><a href="blog.html">블로그 홈</a></li>
<li><a href="#">주제별 보기</a></li>
<li><a href="#">이달의 블로그</a></li>
<li><a href="#">공식 블로그</a></li>
<li><a href="blog-detail.html">챌린지 프로그램</a></li>
</ul>
</nav>
<nav class="nav-right">
<ul>
<li class="on"><a href="#">블로그 마켓 가입</a></li>
<li><a href="#">아이템 팩토리</a></li>
<li><a href="#">블로그팀 공식 블로그</a></li>
</ul>
</nav>
</div>
</div>
</header>
<main role="main" class="blog-main">
<div id="hot-topic">
<div class="blog-container">
<div class="hot-topic-left">
<div class="topic-heading">
<h3>핫토픽</h3>
<i></i>
<a href="#">다꾸를 해요</a>
</div>
<ul class="topic-lists">
<li>
<img src="https://via.placeholder.com/252x240">
<p>초보 다꾸러의 다꾸 팁 공개!</p>
</li>
<li>
<img src="https://via.placeholder.com/252x240">
<p>초보 다꾸러의 다꾸 팁 공개!</p>
</li>
<li>
<img src="https://via.placeholder.com/252x240">
<p>초보 다꾸러의 다꾸 팁 공개!</p>
</li>
</ul>
<div class="pagination-wrap">
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">5</a>
</div>
</div>
<div class="hot-topic-right">
<div class="topic-banner"></div>
<div class="pagination-wrap">
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">5</a>
</div>
</div>
</div>
</div>
<div id="blog-main-content" class="blog-container">
<div class="blog-main-left">
<div id="blog-main-notification">
<p>
로그아웃 상태입니다.<br>
로그인하여 이웃 새글을 확인해보세요.
</p>
</div>
<div id="blog-article">
<nav class="blog-article-nav">
<ul>
<li><a href="#">전체</a></li>
<li><a href="#">음악</a></li>
<li><a href="#">사진</a></li>
<li><a href="#">취미</a></li>
</ul>
</nav>
<ul class="blog-article-lists">
<li>
<a href="#">
<div class="blog-article-info">
<div class="blog-profile-wrap">
<img src="https://via.placeholder.com/32x32">
<div class="blog-profile-info">
<h3>이재경</h3>
<p>13시간 전</p>
</div>
</div>
<h2>Title 1</h2>
<p class="paragraph">
동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록
</p>
<div class="comment">
<span>공감 <em>46</em></span>
<span>댓글 <em>11</em></span>
</div>
</div>
<img src="https://via.placeholder.com/167x167">
</a>
</li>
<li>
<a href="#">
<div class="blog-article-info">
<div class="blog-profile-wrap">
<img src="https://via.placeholder.com/32x32">
<div class="blog-profile-info">
<h3>이재경</h3>
<p>13시간 전</p>
</div>
</div>
<h2>Title 1</h2>
<p class="paragraph">
동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록
</p>
<div class="comment">
<span>공감 <em>46</em></span>
<span>댓글 <em>11</em></span>
</div>
</div>
<img src="https://via.placeholder.com/167x167">
</a>
</li>
<li>
<a href="#">
<div class="blog-article-info">
<div class="blog-profile-wrap">
<img src="https://via.placeholder.com/32x32">
<div class="blog-profile-info">
<h3>이재경</h3>
<p>13시간 전</p>
</div>
</div>
<h2>Title 1</h2>
<p class="paragraph">
동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록
</p>
<div class="comment">
<span>공감 <em>46</em></span>
<span>댓글 <em>11</em></span>
</div>
</div>
<img src="https://via.placeholder.com/167x167">
</a>
</li>
<li>
<a href="#">
<div class="blog-article-info">
<div class="blog-profile-wrap">
<img src="https://via.placeholder.com/32x32">
<div class="blog-profile-info">
<h3>이재경</h3>
<p>13시간 전</p>
</div>
</div>
<h2>Title 1</h2>
<p class="paragraph">
동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록
</p>
<div class="comment">
<span>공감 <em>46</em></span>
<span>댓글 <em>11</em></span>
</div>
</div>
<img src="https://via.placeholder.com/167x167">
</a>
</li>
<li>
<a href="#">
<div class="blog-article-info">
<div class="blog-profile-wrap">
<img src="https://via.placeholder.com/32x32">
<div class="blog-profile-info">
<h3>이재경</h3>
<p>13시간 전</p>
</div>
</div>
<h2>Title 1</h2>
<p class="paragraph">
동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록동해물과 백두산이 마르고 닳도록
</p>
<div class="comment">
<span>공감 <em>46</em></span>
<span>댓글 <em>11</em></span>
</div>
</div>
<img src="https://via.placeholder.com/167x167">
</a>
</li>
</ul>
</div>
</div>
<div class="blog-main-right">
<div id="blog-account">
<p>네이버를 더 안전하고 편안하게 이용하세요.</p>
<a href="#">로그인</a>
<div class="account_sub">
<div class="left">
<span>아이디</span>
<span>비밀번호 찾기</span>
</div>
<span>회원가입</span>
</div>
</div>
<div id="blog-banner"></div>
<div id="blog-guide">
<a href="#">
<p>
온라인 셀러를 위한<br>
<span>블로그 마켓 가입</span>
</p>
<i></i>
</a>
</div>
<div id="blog-guide">
<a href="#">
<p>
꼭 한번 확인해야 할<br>
<span>블로그 가이드</span>
</p>
<i></i>
</a>
</div>
<div id="blog-guide">
<a href="#">
<p>
누구보다 발빠르게<br>
<span>블로그 새소식</span>
</p>
<i></i>
</a>
</div>
<div id="blog-notice">
<div class="blog-notice-title-wrap">
<a href="#">
<h3>공지사항</h3>
<i></i>
</a>
<ul class="blog-notice-lists">
<li><a href="#">[안내] 아이템팩토리 정기 점검 안내</a></li>
<li><a href="#">[8] 네이버페이 DB 점검 안내</a></li>
<li><a href="#">[안내] 블로그 글발행 해피빈콩 지급 안내</a></li>
</ul>
</div>
</div>
<div id="blog-helper">
<ul class="blog-helper-lists">
<li><a href="#">블로그 앱 간편설치</a></li>
<li><a href="#">개발 가이드</a></li>
<li><a href="#">블로그 글 권리보호</a></li>
<li><a href="#">블로그 스마트봇</a></li>
</ul>
</div>
</div>
</div>
</main>
<footer id="blog-footer">
<div class="blog-container">
<ul>
<li><a href="#">이용약관</a></li>
<li><a href="#">이용약관</a></li>
<li><a href="#">이용약관</a></li>
<li><a href="#">이용약관</a></li>
</ul>
<p>Copyright © NAVER Corp. All Rights Reserved.</p>
</div>
</footer>
</body>
</html>
style.css
/* 네이버 블로그 페이지 */ .blog-container { width: 1080px; margin: 0 auto; } #blog-header .blog-header-top { height: 60px; background-color: #00c73c; border-bottom: solid 1px #51b036; } #blog-header .blog-header-top .blog-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } /* blog-header-top */ #blog-header .blog-header-top .blog-header-left { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; } #blog-header .blog-header-top .blog-header-left h2 { font-size: 20px; margin-right: 20px; } #blog-header .blog-header-top .blog-header-left h2 a { color: #ffffff; font-weight: 700; } #blog-header .blog-header-top .blog-header-input-wrap { display: flex; flex-wrap: wrap; align-items: center; } #blog-header .blog-header-top .blog-search-wrap { display: flex; flex-wrap: wrap; align-items: center; width: 325px; height: 40px; background-color: #ffffff; margin-right: 5px; } #blog-header .blog-header-top .blog-search-wrap input { width: calc(100% - 40px); height: 40px; background-color: #ffffff; border: solid 1px #4da733; padding: 0 15px; } #blog-header .blog-header-top .blog-search-wrap input:focus { outline: none; } #blog-header .blog-header-top .blog-search-wrap .btn-search { width: 40px; height: 40px; background-color: #28a93a; border: solid 1px #239e36; } #blog-header .blog-header-top .btn-total-search { width: auto; height: 40px; background-color: #28a93a; border: solid 1px #239e36; line-height: 40px; color: #ffffff; padding: 0 5px; } #blog-header .blog-header-top .blog-header-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; } #blog-header .blog-header-top .blog-header-right .btn-login { display: inline-block; border: solid 1px #239e36; padding: 2px 5px; margin-right: 20px; color: #ffffff; font-size: 12px; } #blog-header .blog-header-top .blog-header-right .btn-menu { width: 60px; height: 60px; background-color: #00c73c; border-left: solid 1px #239e36; border-right: solid 1px #239e36; cursor: pointer; } #blog-header .blog-header-nav { height: 40px; background-color: #ffffff; border-bottom: solid 1px #e5e5e5; } #blog-header .blog-header-nav .blog-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } #blog-header .blog-header-nav .nav-left { } #blog-header .blog-header-nav .nav-left ul { display: flex; flex-wrap: wrap; align-items: center; } #blog-header .blog-header-nav .nav-left ul li { height: 40px; margin-right: 16px; border-bottom: solid 2px transparent; /* border-bottom: solid 2px #00ab33; */ } #blog-header .blog-header-nav .nav-left ul li.on { border-bottom: solid 2px #00ab33; } #blog-header .blog-header-nav .nav-left li a { display: block; width: 100%; height: 100%; line-height: 40px; font-size: 13px; } #blog-header .blog-header-nav .nav-right { } #blog-header .blog-header-nav .nav-right ul { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; } #blog-header .blog-header-nav .nav-right ul li { width: auto; height: 26px; margin-left: 8px; } #blog-header .blog-header-nav .nav-right li.on a { background-color: #00c73c; border: solid 1px rgba(0, 0, 0, 0.07); color: #ffffff; } #blog-header .blog-header-nav .nav-right li a { display: block; width: 100%; height: 100%; background-color: #ffffff; border: solid 1px #cecece; line-height: 26px; padding: 0 10px; font-size: 13px; } .blog-main #hot-topic { height: 305px; background-color: #f5f5f6; padding: 20px 0 15px; } .blog-main #hot-topic .blog-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .blog-main #hot-topic .hot-topic-left { position: relative; width: 770px; } .blog-main #hot-topic .hot-topic-left .topic-heading { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 11px; } .blog-main #hot-topic .hot-topic-left .topic-heading h3 { font-size: 16px; font-weight: 600; color: #e55e5e; } /* i 태그는 인라인 요소의 성격을 가짐 */ .blog-main #hot-topic .hot-topic-left .topic-heading i { display: block; width: 8px; height: 13px; margin: 0 8px; background-color: grey; } .blog-main #hot-topic .hot-topic-left .topic-heading a { font-size: 16px; } .blog-main #hot-topic .hot-topic-left .topic-lists { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .blog-main #hot-topic .hot-topic-left .topic-lists li { position: relative; width: 252px; height: 240px; } .blog-main #hot-topic .hot-topic-left .topic-lists li img { position: absolute; width: 100%; height: 100%; } .blog-main #hot-topic .hot-topic-left .topic-lists li p { position: absolute; width: 100%; bottom: 0; padding: 20px 0; color: #ffffff; background-color: rgba(55, 66, 87, 0.9); text-align: center; } .blog-main #hot-topic .pagination-wrap { display: flex; flex-wrap: wrap; align-items: flex-end; position: absolute; top: 0; right: 0; } .blog-main #hot-topic .pagination-wrap a { display: block; width: 20px; height: 20px; margin-left: 4px; border: solid 1px rgba(221, 221, 223, 0.8); background-color: #f6f6f7; color: #888; font-size: 12px; text-align: center; line-height: 20px; } .blog-main #hot-topic .hot-topic-right { position: relative; width: 280px; padding-top: 30px; } .blog-main #hot-topic .hot-topic-right .topic-banner { width: 280px; height: 240px; background-color: black; } .blog-main #blog-main-content { display: flex; flex-wrap: wrap; justify-content: space-between; } .blog-main #blog-main-content .blog-main-left { width: 770px; } .blog-main #blog-main-content .blog-main-left #blog-main-notification { background-color: #ffffff; padding: 54px 0; text-align: center; } .blog-main #blog-main-content .blog-main-left #blog-main-notification p { font-size: 16px; line-height: 30px; } .blog-main #blog-main-content .blog-main-left #blog-article .blog-article-nav { background-color: #ffffff; border-top: solid 1px #999999; border-bottom: solid 1px #999999; padding: 10px 0; font-size: 14px; } .blog-main #blog-main-content .blog-main-left .blog-article-nav ul { display: flex; flex-wrap: wrap; align-items: center; } .blog-main #blog-main-content .blog-main-left .blog-article-nav ul li { margin-right: 22px; } .blog-main #blog-main-content .blog-main-left .blog-article-nav ul li a { } .blog-main #blog-main-content .blog-article-lists .blog-article-lists { } .blog-main #blog-main-content .blog-article-lists li { width: 100%; border-bottom: solid 1px #eeeeef; padding: 25px 0 23px; } .blog-main #blog-main-content .blog-article-lists li a { display: block; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; width: 100%; height: 100%; } .blog-main #blog-main-content .blog-article-lists .blog-article-info { width: 573px; } .blog-main #blog-main-content .blog-article-lists .blog-profile-wrap { display: flex; flex-wrap: wrap; align-items: center; } .blog-main #blog-main-content .blog-article-lists .blog-profile-wrap img { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; } .blog-main #blog-main-content .blog-article-lists .blog-profile-info { } .blog-main #blog-main-content .blog-article-lists .blog-profile-info h3 { font-size: 14px; margin-bottom: 3px; } .blog-main #blog-main-content .blog-article-lists .blog-profile-info p { font-size: 11px; color: #959595; } .blog-main #blog-main-content .blog-article-lists h2 { margin-top: 16px; font-size: 17px; } blog-main #blog-main-content .blog-article-lists .paragraph { margin-top: 17px; font-size: 13px; color: #666666; } .blog-main #blog-main-content .blog-article-lists .comment { margin-top: 14px; color: #959595; font-size: 12px; } .blog-main #blog-main-content .blog-article-lists .comment span { margin-right: 9px; } .blog-main #blog-main-content .blog-article-lists .comment span em { font-style: normal; } .blog-main #blog-main-content .blog-main-right { width: 280px; } .blog-main #blog-main-content .blog-main-right #blog-account { width: 100%; background-color: #f5f5f6; border: solid 1px #dddddf; padding: 20px 15px; margin-bottom: 12px; } .blog-main #blog-main-content .blog-main-right #blog-account p { font-size: 11px; margin-bottom: 7px; } .blog-main #blog-main-content .blog-main-right #blog-account a { display: block; width: 100%; background-color: #fff; border: solid 1px #cccccc; border-radius: 4px; padding: 10px 0; margin-bottom: 12px; text-align: center; font-size: 13px; color: #000000; font-weight: 700; } .blog-main #blog-main-content .blog-main-right #blog-account .account_sub{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 8px; } .blog-main #blog-main-content .blog-main-right #blog-account .account_sub span { font-size: 11px; color: #888; } .blog-main #blog-main-content .blog-main-right #blog-banner { width: 100%; height: 240px; border: solid 1px #dddddf; background-color: black; } .blog-main #blog-main-content .blog-main-right #blog-guide { background-color: #ffffff; border: solid 1px #dddddf; border-width: 0 1px 1px; padding: 19px 20px; } .blog-main #blog-main-content .blog-main-right #blog-guide a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .blog-main #blog-main-content .blog-main-right #blog-guide p { width: 145px; font-size: 15px; line-height: 25px; color: #222; } .blog-main #blog-main-content .blog-main-right #blog-guide p span { font-size: 16px; font-weight: 700; } .blog-main #blog-main-content .blog-main-right #blog-guide i { display: block; width: 88px; height: 65px; background-color: green; } .blog-main #blog-main-content .blog-main-right #blog-notice { background-color: #ffffff; border: solid 1px #dddddf; border-width: 0 1px 1px; padding: 24px 22px 22px; } .blog-main #blog-main-content #blog-notice .blog-notice-title-wrap { margin-bottom: 13px; } .blog-main #blog-main-content #blog-notice .blog-notice-title-wrap a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .blog-main #blog-main-content #blog-notice .blog-notice-title-wrap h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; } .blog-main #blog-main-content #blog-notice .blog-notice-title-wrap i { width: 8px; height: 13px; background-color: #000000; } .blog-main #blog-main-content #blog-notice .blog-notice-lists { font-size: 12px; } .blog-main #blog-main-content #blog-notice .blog-notice-lists li { margin-bottom: 4px; } .blog-main #blog-main-content #blog-notice .blog-notice-lists li:last-child { margin-bottom: 0; } .blog-main #blog-main-content #blog-helper { border: solid 1px #dddddf; border-width: 0 1px 1px; background-color: #ffffff; padding: 24px 16px; } .blog-main #blog-main-content #blog-helper li { font-size: 14px; margin-bottom: 10px; } /* padding을 사용하게 되면 글자만 영향을 받는다. */ /* background-size로 이미지의 크기 조정 가능 (순서 width height )*/ .blog-main #blog-main-content #blog-helper li a { display: block; height: 35px; line-height: 35px; padding-left: 40px; background-image: url(../img/checkbox.png); background-repeat: no-repeat; background-position: left; background-size: 20px 20px; } #blog-footer { padding-top: 40px; padding-bottom: 55px; background-color: #f6f6f6; text-align: center; } #blog-footer ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 20px; } #blog-footer ul li a:before { content: ''; display: inline-block; width: 1px; height: 12px; background-color: #d7d7d7; margin: 0 6px; vertical-align: -1px; } #blog-footer ul li:first-child a:before { content: initial; }
결과
- 네이버 블로그 상세페이지
blog-detail.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<header id="blog-header">
<div class="blog-header-top">
<div class="blog-container">
<div class="blog-header-left">
<h2><a href="#">블로그</a></h2>
<div class="blog-header-input-wrap">
<div class="blog-search-wrap">
<input type="text">
<button type="button" class="btn-search"></button>
</div>
<button class="btn-total-search">통합 검색</button>
</div>
</div>
<div class="blog-header-right">
<a href="#" class="btn-login">로그인</a>
<button type="button" class="btn-menu"></button>
</div>
</div>
</div>
<div class="blog-header-nav">
<div class="blog-container">
<nav class="nav-left">
<ul>
<li><a href="blog.html">블로그 홈</a></li>
<li><a href="#">주제별 보기</a></li>
<li><a href="#">이달의 블로그</a></li>
<li><a href="#">공식 블로그</a></li>
<li class="on"><a href="blog-detail.html">챌린지 프로그램</a></li>
</ul>
</nav>
<nav class="nav-right">
<ul>
<li class="on"><a href="#">블로그 마켓 가입</a></li>
<li><a href="#">아이템 팩토리</a></li>
<li><a href="#">블로그팀 공식 블로그</a></li>
</ul>
</nav>
</div>
</div>
</header>
<main role="main" class="blog-main-detail">
<div id="program">
<div class="blog-container">
<h3>챌린지 프로그램</h3>
<p>화제의 토픽, 영화 리뷰, 미션위젯과 함께 목표에 다가가는 당신의 도전을 기다립니다!</p>
</div>
</div>
<nav id="program-nav">
<div class="blog-container">
<h4><a href="#">HOT TOPIC 도전</a></h4>
<ul>
<li><a href="#">블로거 영화를 말하다</a></li>
<li><a href="#">목표달성! 미션위젯</a></li>
</ul>
</div>
</nav>
<div id="program-info">
<div class="blog-container">
<div class="program-info-wrap">
<h4>
핫토픽 도전으로<br>
인기 블로거가<br>
되어보세요.
</h4>
<div class="program-txt-wrap">
<p>
핫토픽 도전은 매주 화/목/금 블로그씨 질문에 답한 도전글에서 선정되며<br>
선정된 글과 동영상은 블로그 홈 HOT TOPIC 영역에 일정기간 노출됩니다.
</p>
<a href="#">HOT TOPIC 도전 가이드</a>
</div>
</div>
<div class="program-msg-box blog-border">
<span class="from">From, 블로그씨</span>
<div class="program-msg-wrap">
<p class="question">
<span class="date">5월 19일</span>
<span class="txt">DO IT YOURSELF! 손수 만든 물건이 있나요? 영상과 함께 나의 DIY 취미를 공유해 주세요~</span>
</p>
<a href="#">블로그씨의 질문에 답하기</a>
</div>
</div>
</div>
</div>
<div id="program-day">
<div class="blog-container">
<ul class="program-day-lists">
<li class="program-day-list">
<div class="program-day-title-wrap">
<span class="date">5월 19일</span>
<span class="txt">우리 동네 자랑</span>
<span class="msg">집밥 잘 챙겨 먹고 계시나요?</span>
</div>
<ul class="program-image-lists">
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
</ul>
</li>
<li class="program-day-list">
<div class="program-day-title-wrap">
<span class="date">5월 19일</span>
<span class="txt">우리 동네 자랑</span>
<span class="msg">집밥 잘 챙겨 먹고 계시나요?</span>
</div>
<ul class="program-image-lists">
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
</ul>
</li>
<li class="program-day-list">
<div class="program-day-title-wrap">
<span class="date">5월 19일</span>
<span class="txt">우리 동네 자랑</span>
<span class="msg">집밥 잘 챙겨 먹고 계시나요?</span>
</div>
<ul class="program-image-lists">
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
<li class="blog-border">
<a href="#">
<img src="https://via.placeholder.com/170x130">
<h4>우리동네는 매력적이다</h4>
<span>이재경</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</main>
<footer id="blog-footer">
<div class="blog-container">
<ul>
<li><a href="#">이용약관</a></li>
<li><a href="#">이용약관</a></li>
<li><a href="#">이용약관</a></li>
<li><a href="#">이용약관</a></li>
</ul>
<p>Copyright © NAVER Corp. All Rights Reserved.</p>
</div>
</footer>
</body>
</html>
style.css
/* 블로그 챌린지 프로그램 */ .blog-border { border: solid 1px #eaeaec; } .blog-main-detail { padding-top: 0; padding-bottom: 100px; } .blog-main-detail #program { background-color: #634ea4; padding: 62px 0 50px; color: #ffffff; } .blog-main-detail #program h3 { font-size: 48px; font-weight: 400; margin-bottom: 10px; } .blog-main-detail #program p { font-size: 16px; } .blog-main-detail #program-nav { border-bottom: solid 1px #ebebeb; background-color: #ffffff; padding: 10px 0; } .blog-main-detail #program-nav .blog-container { display: flex; flex-wrap: wrap; align-items: center; } .blog-main-detail #program-nav a { font-size: 14px; color: #666; } .blog-main-detail #program-nav h4 { font-weight: 600; } .blog-main-detail #program-nav h4 a { color: #000; } .blog-main-detail #program-nav ul { display: flex; flex-wrap: wrap; align-items: center; } .blog-main-detail #program-nav ul li a:before { content: ''; display: inline-block; width: 1px; height: 12px; background-color: #ababab; margin: 0 12px; vertical-align: -1px; } .blog-main-detail #program-info { background-color: #f8f8f8; padding: 44px 0 36px; } .blog-main-detail #program-info .program-info-wrap { display: flex; flex-wrap: wrap; margin-bottom: 50px; } .blog-main-detail #program-info .program-info-wrap h4 { font-size: 32px; color: #7d55c8; line-height: 44px; margin-right: 120px; } .blog-main-detail #program-info .program-info-wrap p { font-size: 18px; line-height: 28px; color: #262626; margin-bottom: 18px; } .blog-main-detail #program-info .program-info-wrap a { font-size: 13px; color: #7d55c8; } .blog-main-detail #program-info .program-msg-box { padding: 29px; background-color: #ffffff; } .blog-main-detail #program-info .program-msg-box .from { display: block; font-size: 13px; font-weight: 600; color: #7d55c8; margin-bottom: 6px; } .blog-main-detail #program-info .program-msg-box .program-msg-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; } .blog-main-detail #program-info .program-msg-box p { width: 810px; font-size: 18px; } .blog-main-detail #program-info .program-msg-box .date { color: #693bbc; } .blog-main-detail #program-info .program-msg-box .txt:before { content: ''; display: inline-block; width: 1px; height: 18px; background-color: #d5d5d5; margin: 0 9px; vertical-align: -1px; } .blog-main-detail #program-info .program-msg-box a { display: block; width: 179px; height: 40px; background-color: #7d55c8; font-size: 14px; color: #ffffff; line-height: 40px; text-align: center; } /* opacity를 사용하면 글자까지 적용되기 때문에 rgba()를 사용한다. */ .blog-main-detail #program-info .program-msg-box a:hover { background-color: rgba(125, 85, 200, 0.8); } .blog-main-detail #program-day { background-color: #ffffff; } .blog-main-detail #program-day .program-day-lists { } .blog-main-detail #program-day .program-day-list { } .blog-main-detail #program-day .program-day-title-wrap { padding: 36px 0 16px; } .blog-main-detail #program-day .program-day-title-wrap .date { color: #693bbc; font-size: 16px; } .blog-main-detail #program-day .program-day-title-wrap .txt { font-size: 16px; } .blog-main-detail #program-day .program-day-title-wrap .txt:before { content: ''; display: inline-block; width: 1px; height: 18px; background-color: #d5d5d5; margin: 0 9px; vertical-align: -4px; } .blog-main-detail #program-day .program-day-title-wrap .msg { font-size: 14px; color: #666666; } .blog-main-detail #program-day .program-image-lists { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .blog-main-detail #program-day .program-image-lists li { width: 175px; height: 228px; } .blog-main-detail #program-day .program-image-lists li img { width: 100%; margin-bottom: 15px; } .blog-main-detail #program-day .program-image-lists li h4 { font-size: 14px; color: #333; margin-bottom: 15px; } .blog-main-detail #program-day .program-image-lists li span { font-size: 12px; color: #959595; }
결과
학습한 내용 중 어려웠던 점 또는 해결하지 못한 것들
opacity와 rgba()의 투명도 차이점 이해를 알지 못했었다.
해결한 방법
opacity는 rgba()와 다르게 글자에도 투명도의 영향을 받는다.
학습 소감
그 동안 했던 것들을 반복하다 보니 이해하기 수월했고, 어느 정도 틀을 짤 수 있을 것 같다.
Author And Source
이 문제에 관하여(개발일지 17일차), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@hijaekyeoung/개발일지-17일차저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)