BannerType01
์นํ์ด์ง ์ค์ต์ ์ํ ๋ฐฐ๋ ์ ํ์ ์ค์ตํด๋ณด๊ฒ ์ต๋๋ค! ์ด๋ฒ ๋ฐฐ๋ ์ ํ์ ์ด๋ฏธ์ง์ ํ
์คํธ ์์ญ, ์์ด์ฝ์ด ํจ๊ป ๋ค์ด์๋ ํ์
์
๋๋ค.
๊ทธ๋ผ ์๋์ ์ฝ๋๋ฅผ ๋ณด๋ฉฐ ํจ๊ป ์ค์ต ํด๋ณด๊ฒ ์ต๋๋ค ~ ๐
< figma : ๋์์ธ ํ๊ธฐ >
์ด๋ฒ ์ ํ์ ๋ฐฐ๋ ํ์ ์ผ๋ก ์ปจ์ ์ ๋ง๋ ๋ ์ด์์๊ณผ ๋์์ธ์ ์ค์ ํ์๋ฉด ๋ฉ๋๋ค. ์๋์ ํผ๊ทธ๋ง๋ฅผ ์ฐธ๊ณ ํ์ฌ HTML, CSS๋ฅผ ์ค์ ํด๋ด ์๋ค. ๐
< HTML ์์ค : ๋ ์์์ ๊ตฌ์กฐ ํ์ ํ๊ธฐ >
๋์์ธํ ์น ํ์ด์ง ์์์ ๋ณด๋ฉฐ ํ์ด์ง ๊ตฌ์กฐ๋ฅผ ํ์ ํ ํ ์น ํ์ค์ฑ๊ณผ ์ ๊ทผ์ฑ์ ๋ง๋์๋ฉํฑํ ๋งํฌ์ ์ ํด์ค๋๋ค.
TIP !
โข ์น์
, ์ํฐํด๊ณผ ๊ฐ์ ์๋ฉํฑ ํ๊ทธ์๋ ๊ผญ ํค๋ฉ ํ๊ทธ๋ฅผ ํจ๊ป ์ฌ์ฉํด์ฃผ์ด์ผ ์นํ์ค์ ์ค์ํ๊ฒ ๋ฉ๋๋ค.
โข ์น์
์์ญ์ ์นํ์ค ์ค์๋ฅผ ์ํด ์ ์ธํ h2ํ๊ทธ๊ฐ ์ฌ์ฉ์ ๋์ ๋ณด์ด์ง ์๋๋ก ๋ธ๋ผ์ธ๋ ์์ฑ์ ์ฃผ๊ธฐ ์ํด ์ ํ์๋ก ๋ธ๋ผ์ธ๋๋ฅผ ์ค์ ํฉ๋๋ค.
โข ์ด๋(์ด๋ฏธ์ง ์ฝ์
) | ์ ๋ชฉ | ํ
์คํธ(ํ
์คํธ, ๋งํฌ) | ํ
์คํธ(๋จธ๋ฆฌ๋ง) ๊ตฌ์กฐ๋ก ํฐ ํ์ ์ค์ ํฉ๋๋ค.
<section id="bannerType" class="banner__wrap nexon">
<h2 class="blind">๋ฐฐ๋ ์์ญ</h2>
<div class="banner__inner">
<h3 class="title">์ ๋๋ฉ ์ ์น์</h3>
<p class="desc">์ธ์์์ ๊ท์ฌ์ด ๊ณ ์์ด๋ค์ ์๋ฆฌ๊ธฐ ์ํด ๋ง๋ ์ฌ์ดํธ ์
๋๋ค.
<a href="#" title="๊ณ ์์ด ๋ณด๋ฌ๊ฐ๊ธฐ">๋ค๋ค ๊ณ ์์ด ์๋๊ณผ ์ด๋ฏธ์ง ๋ณด๊ณ ๊ฐ์ธ์.</a>
</p>
<span class="small">๋ฐฐ๋ ์ ํ 01</span>
</div>
</section>
< CSS ์์ค : ์คํ์ผ ์ ์ฉํ๊ธฐ >
๊ตฌ์กฐ ์ง์์ ์์๋๋ก css ์คํ์ผ์ ์ ์ฉ์์ผ ๋ด
์๋ค. ์ด ๋ ๋์์ธ ์์์ ์ฐธ๊ณ ํ๋ฉด์ html์ ๋ฒ๊ฐ์๊ฐ๋ฉฐ ํฐ ๋ฉ์ด๋ฆฌ ๋ถํฐ ์คํ์ผ์ ์ ์ฉ์์ผ ๋๊ฐ๋ ๊ฒ์ด ์ค์ํฉ๋๋ค.
์์ฑ์ ๋ํ ๋ด์ฉ์ ์ฝ๋์ ์ฃผ์์ ๋ณด๋ฉด์ ์ดํดํด๋ด
์๋ค!
TIP !
โข ๋จผ์ ์ ์ฒด ์ด๊ธฐํ(Reset)์ ํฐํธ ๋ํดํธ ์ค์ ์ ํด์ฃผ๋ ๊ฒ์ด ์ข์ต๋๋ค.
โข ๊ฐ ์์ญ๊ณผ ์น์
์ ๋ฐ๋ณต์ ์ผ๋ก ๋ค์ด๊ฐ๋ ์์ฑ๋ค์ ๊ณตํต ์์ฑ์ผ๋ก ๋ฐ๋ก ์ค์ ํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
โข ์ปจํ
์ด๋ ์ค์ ์ ํตํด ๋ฉ์ธ ํ๋ฉด ํฌ๊ธฐ์ ์ฌ๋ฐฑ์ ์ค์ ํด์ค ๋ค ๋ฉ์ธ ์ฝํ
์ธ ์ธ ์น์
์๊ฒ ์คํ์ผ์ ์ ์ฉ์ํต๋๋ค.
โข span ํ๊ทธ๋ display: block๋ฅผ ๋จผ์ ์ค์ ํ์ฌ ์์
ํ๋ ๊ฒ์ด ํธ๋ฆฌํฉ๋๋ค.
โข ์ด๋ฏธ์ง๋ background: url()์ ์ด์ฉํ์ฌ ๋ฐฐ๊ฒฝ์ ์ฝ์
ํฉ๋๋ค.
/* font */
@import url('https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css');
.nexon {
font-family: 'NexonLv1Gothic';
font-weight: 400;
}
/* reset */
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
em,
i,
address {
font-style: normal;
}
li {
list-style: none;
}
.blind{
position: absolute;
clip: rect(0 0 0 0);
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
}
/* common : ๊ณตํต ์์(์ฌํ์ฉ) */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
min-width: 1160px;
}
.section {
padding: 120px 0;
}
.section > h2 {
font-size: 50px;
line-height: 1;
text-align: center;
margin-bottom: 20px;
}
.section > p {
font-size: 22px;
font-weight: 300;
color: #666;
text-align: center;
margin-bottom: 70px;
}
.gray {
background-color: #f5f5f5;
}
/* bannerType */
.banner__inner {
background-image: url(../img/banner_type01.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
text-align: center;
padding: 120px 0;
color: #fff;
}
.banner__inner .title {
font-size: 50px;
line-height: 1;
font-weight: 300;
margin-bottom: 40px;
}
.banner__inner .desc {
font-size: 24px;
line-height: 1.5;
font-weight: 300;
margin-bottom: 70px;
}
.banner__inner .desc a {
color: #fff;
display: block;
}
.banner__inner .desc a:hover {
text-decoration: underline;
}
.banner__inner .small {
display: block
font-size: 16px;
text-decoration: underline;
}
๐ ๊ฒฐ๊ณผ๋ณด๊ธฐ ๐
'SITE' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[SITE] ํตํฉ ์ ํ ์น์ฌ์ดํธ ์ ์ํ๊ธฐ 01 : ์ ๋๋ฉ ์ ์น์ (8) | 2022.09.15 |
---|---|
[SITE] ์น์ฌ์ดํธ - ํธํฐ ์ ํ 01 (1) | 2022.09.06 |
[SITE] ์น์ฌ์ดํธ - ์ฌ๋ผ์ด๋ ์ ํ01 (1) | 2022.09.06 |
[SITE] ์น์ฌ์ดํธ - ์ด๋ฏธ์ง ํ ์คํธ ์ ํ01 (2) | 2022.09.02 |
[SITE] ์น์ฌ์ดํธ - ํค๋ ์ ํ01 (4) | 2022.09.02 |
๋๊ธ