728x90
๋ฐ์ํ
ํ ์คํธ ์ ํ 02
ํ ์คํธ ์ ํ ๋ ์ด์์ ์ฌ์ดํธ์ ๋๋ค. ์ด๋ฒ ์ฌ์ดํธ๋ ์ด์ ์ฌ์ดํธ์๋ ๋ฌ๋ฆฌ ์์ด์ฝ๊ณผ ํ ์คํธ๋ก๋ง ์ด๋ฃจ์ด์ ธ ์์ต๋๋ค.
๋ ์ด์์ ์ค์
figma๋ก ๊ทธ๋ฆฌ๋์ ์ฌ์ดํธ์ ๋ ์ด์์์ ์ก์ต๋๋ค.
HTML
html ์์ค์ ๋๋ค.
<section id="textType02" class="text__wrap nexon section container">
<div class="text__title">
<div class="text_h3">
<h3>GOOD BREAD</h3>
</div>
<h2>๋นต์ ๋<br> ๋ง์๊ฒ ๋จน์!</h2>
<p>
ํ์์ ๋นต์ ์ฆ๊ฒจ ๋์๋์?<br>
๋นต์ ๋ ๋ง์๊ฒ ์ฆ๊ธฐ๋ ๋ฐฉ๋ฒ๋ค์<br>
์ง๊ธ ์ด ์๋ฆฌ์์ ์๊ฐํด๋๋ฆฝ๋๋ค!
</p>
</div>
<div class="text__inner">
<article class="text">
<div class="icon"><img src="img/icon7.png" alt="๊ทธ๋ฅ ๋จน๋๋ค"></div>
<h3 class="tit">๊ทธ๋ฅ ๋จน๋๋ค</h3>
<p class="desc">
์ ๋ง ๋ง์๋ ๋นต์ ์ด๋ ํ ๊ธฐ๊ต๋ฅผ ๋ถ๋ฆฌ์ง ์๊ณ ๋จน์ด๋ ๋ง์์ต๋๋ค.
์์ํ ๋นต์ ๋ง๋ณด์๋ฉด ์ด ๋ง์ ์๋ฏธ๋ฅผ ์๊ฒ ๋ ๊ฒ์ด๋ผ ์์ ํฉ๋๋ค.
</p>
</article>
<article class="text">
<div class="icon"><img src="img/icon2.png" alt="๊ตฌ์์"></div>
<h3 class="tit">๊ตฌ์์</h3>
<p class="desc">
๋ถ์ ๋ฐ๊ฒฌ์ ์ธ๊ฐ์๊ฒ ์์ฃผ ํ๋ช
์ ์ธ ์ผ์ด์์ต๋๋ค.
๊ทธ๋ฆฌ๊ณ ๊ทธ ๋ถ๋ก ์ฐ๋ฆฌ๋ ๋นต์ ๊ตฌ์๋จน๋ ๊ธฐ์ ์ ํํ ์ ์์์ต๋๋ค.
</p>
</article>
<article class="text">
<div class="icon"><img src="img/icon3.png" alt="ํฌ๋ฆผ, ์ผ๊ณผ"></div>
<h3 class="tit">ํฌ๋ฆผ/์ผ๊ณผ</h3>
<p class="desc">
๊ทธ๋ฅ ๋นต๋ง ๋จน๊ธฐ ์ฌ์ฌํ๋ค๋ฉด? ํฌ๋ฆผ์ด๋ ์ผ์ ์น์ด์ ๋์ธ์!
๋ฌ์ฝคํ๊ณ ๊ณ ์ํ ๋ง์ ์ถ๊ฐํ ์ ์์ด์! ๋ง์๊ฒ ๋์ธ์~
</p>
</article>
<article class="text">
<div class="icon"><img src="img/icon4.png" alt="์๋ฃ๋"></div>
<h3 class="tit">์๋ฃ๋</h3>
<p class="desc">
์ปคํผ์ ๋นต์ ์ ๋ง ๊ถํฉ์ด ์ ๋ง์ฃ
๋นต ํ ์
๊ณผ ์ปคํผ ํ ๋ชจ๊ธ์ ์์ ํ๋ณต์ ๊ฒฝํํ์ธ์. ๋น์ ์ ์ํํ์ ๋๋ผ์ธ์
</p>
</article>
</div>
</section>
CSS
css ์์ค์ ๋๋ค. figma๋ก ์ค์ ํด๋์ ๋ ์ด์์์ด๋ zaplin์ ๋ณด๋ฉฐ ์ ์ ํ๊ฒ css๋ฅผ ์ค์ ํด์ค๋๋ค.
/* fonts */
@import url('https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css');
.nexon {
font-family: 'NexonLv1Gothic';
font-weight: 400;
}
/* reset */
* {
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
a {
text-decoration: none;
color: #000;
}
img {
width: 100%;
}
/* common */
.container {
width: 1160px;
padding: 0 20px;
margin: 0 auto;
min-width: 1160px;
}
.section {
padding: 120px 0;
}
.text__title>h2 {
font-size: 50px;
font-weight: 700;
line-height: 1.4;
text-align: left;
margin-bottom: 30px;
}
.section>h3 {
font-size: 16x;
margin-bottom: 20px;
}
/* textType02 */
.text__wrap {
display: flex;
flex-wrap: wrap;
}
.text__title {
width: 373px;
}
.text_h3 {
width: 180px;
height: 25px;
border-radius: 10px;
background-color: #e43131;
margin-bottom: 20px;
text-align: center;
color: #fff;
line-height: 27px;
}
.text__title>p {
font-size: 18px;
font-weight: 400;
color: #000;
text-align: left;
margin-bottom: 10px;
line-height: 1.4;
}
.text__inner {
width: 766px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.text__inner .text:nth-child(1) {
margin-bottom: 50px;
}
.text__inner .text:nth-child(2) {
margin-bottom: 50px;
}
.text {
width: 374px;
padding: 20px;
box-sizing: border-box;
}
.tit {
font-size: 24px;
font-weight: 400;
margin-bottom: 20px;
}
.gray {
background-color: #f5f5f5;
}
.icon{
width: 60px;
height: 60px;
margin-bottom: 10px
}
.desc {
font-size: 18px;
font-weight: 300;
color: #666;
line-height: 1.4;
}
728x90
๋ฐ์ํ
'Site ์ ์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
04. ํค๋ ์ ํ 1 (1) | 2022.09.01 |
---|---|
03. ํ ์คํธ ์ ํ 3 (4) | 2022.09.01 |
03. ํ ์คํธ ์ ํ 01 (4) | 2022.08.30 |
02. ์ด๋ฏธ์ง ์ ํ - 3 (4) | 2022.08.21 |
02. ์ด๋ฏธ์ง ์ ํ - 2 (3) | 2022.08.18 |
๋๊ธ