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

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

by Youcodein 2022. 8. 30.
728x90
๋ฐ˜์‘ํ˜•

ํ…์ŠคํŠธ ์œ ํ˜• 01

ํ…์ŠคํŠธ ์œ ํ˜• ๋ ˆ์ด์•„์›ƒ ์‚ฌ์ดํŠธ์ž…๋‹ˆ๋‹ค. ์ด๋ฒˆ ์‚ฌ์ดํŠธ๋Š” ์ด์ „ ์‚ฌ์ดํŠธ์™€๋Š” ๋‹ฌ๋ฆฌ ์•„์ด์ฝ˜๊ณผ ํ…์ŠคํŠธ๋กœ๋งŒ ์ด๋ฃจ์–ด์ ธ ์žˆ์Šต๋‹ˆ๋‹ค.

๋ ˆ์ด์•„์›ƒ ์„ค์ •

figma๋กœ ๊ทธ๋ฆฌ๋“œ์™€ ์‚ฌ์ดํŠธ์˜ ๋ ˆ์ด์•„์›ƒ์„ ์žก์Šต๋‹ˆ๋‹ค.

HTML

html ์†Œ์Šค์ž…๋‹ˆ๋‹ค.

<section id="textType" class="text__wrap nexon section">
    <p>ํ…์ŠคํŠธ ์œ ํ˜•01</p>
    <h2>๐Ÿž๋นต์„ ๋ง›์žˆ๊ฒŒ ๋จน๋Š” ๋ฐฉ๋ฒ•๐Ÿฅ</h2>
    <div class="text__inner container">
        <article class="text">
            <div class="icon"><img src="img/icon1.png" alt="์•„์ด์ฝ˜"></div>
            <h3 class="tit">๊ทธ๋ƒฅ ๋จน๋Š”๋‹ค</h3>
            <p class="desc">
                ์ธ๊ฐ„์˜ ๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ ํ–‰์œ„์ธ ๋จน๋Š”๋‹ค๋Š” ํ–‰์œ„๋ฅผ ํ†ตํ•ด
                ๋นต์ด๋ผ๋Š” ์Œ์‹๋ฌผ์„ ์„ญ์ทจํ•ด๋ด…์‹œ๋‹ค. ๊ณต๋ณต์ผ ์‹œ ๋”์šฑ ๋ง›์žˆ์Šต๋‹ˆ๋‹ค.
            </p>
            <a href="#">๋”๋ณด๊ธฐ</a>
        </article>

        <article class="text">
            <div class="icon"><img src="img/icon2.png" alt="์•„์ด์ฝ˜"></div>
            <h3 class="tit">๊ตฌ์›Œ์„œ ๋จน๋Š”๋‹ค</h3>
            <p class="desc">
                ๋ถˆ์˜ ๋ฐœ๊ฒฌ์€ ์ธ๊ฐ„์—๊ฒŒ ์•„์ฃผ ํ˜๋ช…์ ์ธ ์ผ์ด์—ˆ์Šต๋‹ˆ๋‹ค. 
                ๊ทธ๋ฆฌ๊ณ  ๊ทธ ๋ถˆ๋กœ ์šฐ๋ฆฌ๋Š” ๋นต์„ ๊ตฌ์›Œ๋จน๋Š” ๊ธฐ์ ์„ ํ–‰ํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. 
            </p>
            <a href="#">๋”๋ณด๊ธฐ</a>
        </article>

        <article class="text">
            <div class="icon"><img src="img/icon3.png" alt="์•„์ด์ฝ˜"></div>
            <h3 class="tit">์–น์–ด์„œ ๋จน๋Š”๋‹ค</h3>
            <p class="desc">
                ๊ทธ๋ƒฅ ๋นต๋งŒ ๋จน๊ธฐ ์‹ฌ์‹ฌํ•˜๋‹ค๋ฉด? ํฌ๋ฆผ์ด๋‚˜ ์žผ์„ ์–น์–ด์„œ ๋“œ์„ธ์š”!
                ๋‹ฌ์ฝคํ•˜๊ณ  ๊ณ ์†Œํ•œ ๋ง›์„ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์–ด์š”! ๋ง›์žˆ๊ฒŒ ๋“œ์„ธ์š”~
            </p>
            <a href="#">๋”๋ณด๊ธฐ</a>
        </article>
        
        <article class="text">
            <div class="icon"><img src="img/icon4.png" alt="์•„์ด์ฝ˜"></div>
            <h3 class="tit">์ปคํ”ผ์™€ ํ•จ๊ป˜ ๋จน๋Š”๋‹ค</h3>
            <p class="desc">
                ์ปคํ”ผ์™€ ๋นต์€ ์ •๋ง ๊ถํ•ฉ์ด ์ž˜ ๋งž์ฃ  
                ๋นต ํ•œ ์ž…๊ณผ ์ปคํ”ผ ํ•œ ๋ชจ๊ธˆ์— ์ž‘์€ ํ–‰๋ณต์„ ๊ฒฝํ—˜ํ•˜์„ธ์š”. 
                ๋‹น์‹ ์˜ ์†Œํ™•ํ–‰์„ ๋Š๋ผ์„ธ์š”
            </p>
            <a href="#">๋”๋ณด๊ธฐ</a>
        </article>

        <article class="text">
            <div class="icon"><img src="img/icon5.png" alt="์•„์ด์ฝ˜"></div>
            <h3 class="tit">์„ ๋ฌผ๋กœ ์ค€๋‹ค</h3>
            <p class="desc">
                ๊ฐ€๋”์€ ๋งˆ์Œ์„ ๋ฐฐ๋ถ€๋ฅด๊ฒŒ ํ•ด๋ณด์„ธ์š”. 
                ํ‰์†Œ์— ๊ฐ์‚ฌํ•˜๋˜ ์‚ฌ๋žŒ์—๊ฒŒ ๋นต์œผ๋กœ ๊ฐ์‚ฌํ•จ์„ ์ „ํ•ด๋ณด์„ธ์š”. 
                ์ •๋ง ๊ธฐ๋ปํ• ๊ฑฐ์˜ˆ์š”!
            </p>
            <a href="#">๋”๋ณด๊ธฐ</a>
        </article>
        <article class="text">
            <div class="icon"><img src="img/icon6.png" alt="์•„์ด์ฝ˜"></div>
            <h3 class="tit">๋งŒ๋“ค์–ด ๋จน๋Š”๋‹ค</h3>
            <p class="desc">
                ์˜ˆ์ „๋ถ€ํ„ฐ ์ธ๊ฐ„์€ ์›ํ•˜๋Š” ๊ฒƒ์ด ์žˆ๋‹ค๋ฉด ๋งŒ๋“ค์–ด๋ƒˆ์Šต๋‹ˆ๋‹ค. 
                ์ž๊ธ‰์ž์กฑ์˜ ์ธ๊ฐ„! ์ด์ œ ์‹๋Ÿ‰์„ ์ž๊ธ‰์ž์กฑํ•˜์„ธ์š”! 
                ๊ตฟ์ธ๊ฐ„ ๊ตฟ๋ธŒ๋ ˆ๋“œ
            </p>
            <a href="#">๋”๋ณด๊ธฐ</a>
        </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;
}

.section>h2 {
    font-size: 50px;
    line-height: 1;
    text-align: center;
    margin-bottom: 70px;
}

.section>p {
    font-size: 22px;
    font-weight: 300;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

.gray {
    background-color: #f5f5f5;
}

/* textType01 */

.text__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.text__inner .text:nth-child(1) {
    margin-bottom: 20px;
}
.text__inner .text:nth-child(2) {
    margin-bottom: 20px;
}
.text__inner .text:nth-child(3) {
    margin-bottom: 20px;
}

.text__inner .text {
    width: 373px;
    padding: 20px;
    box-sizing: border-box;
}

.text__inner .text .tit {
    margin-bottom: 10px;
}

.desc {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.4;
    color: #666;
}

.icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.text:hover {
    background: #f5f5f5;
    border-radius: 10px;
}
.text a:hover {
    text-decoration: underline;
}
728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€