๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Site ์ œ์ž‘

03. ํ…์ŠคํŠธ ์œ ํ˜• - 2

by Youcodein 2022. 8. 31.
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

๋Œ“๊ธ€