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

01. ์นด๋“œ ์œ ํ˜•-1

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

์นด๋“œ์œ ํ˜•

์นด๋“œ ์œ ํ˜• ๋ ˆ์ด์•„์›ƒ ์‚ฌ์ดํŠธ์ž…๋‹ˆ๋‹ค. html๊ณผ css๋กœ ์ž‘์—…ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

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

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

HTML

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

<section id="cardType" class="card__wrap nexon section">
    <h2>๋‹ค์ด์–ด๋ฆฌ ๊พธ๋ฏธ๊ธฐ</h2>
    <p>๋‹น์‹ ๋งŒ์˜ ๋ฉ‹์ง„ ๊ธฐ๋ก์žฅ, ๊ฐœ์„ฑ์žˆ๋Š” ๋‹ค์ด์–ด๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด๋ณด์„ธ์š”!</p>
    <div class="card__inner container">
        <article class="card">
            <figure class="card__header">
                <img src="img/card_bg01.jpg" alt="๋ฉ‹์ง„ ๊ธ€์„ ์ ์–ด๋ณด์„ธ์š”.">
            </figure>
            <div class="card__body">
                <h3 class="tit">๋ฉ‹์ง„ ๊ธ€์„ ์ ์–ด๋ณด์„ธ์š”.</h3>
                <p class="desc">์–ด๋– ํ•œ ๊ธ€์ด ๋ฉ‹์ง„ ๊ธ€์ด๋ผ๊ณ  ์ •ํ™•ํžˆ ์ •ํ•  ์ˆ˜๋Š” ์—†์Šต๋‹ˆ๋‹ค๋งŒ ๋‹น์‹ ์ด ์“ฐ๋Š” ๊ธ€์ด๋ผ๋ฉด ์–ด๋–ค ๊ธ€์ด๋“  ๋ฉ‹์งˆ ๊ฑฐ์˜ˆ์š”! ์—ฐํ•„์„ ๋“ค๊ณ  ์ข…์ด์— ์ ์–ด๋ณผ๊นŒ์š”?</p>
                <a class="btn" href="/">
                    ๋” ์ž์„ธํžˆ ๋ณด๊ธฐ
                    <span>
                        <svg width="65" height="8" viewBox="0 0 65 8" fill="none"
                            xmlns="http://www.w3.org/2000/svg">
                            <path
                                d="M64.3536 4.35355C64.5488 4.15829 64.5488 3.84171 64.3536 3.64645L61.1716 0.464466C60.9763 0.269204 60.6597 0.269204 60.4645 0.464466C60.2692 0.659728 60.2692 0.976311 60.4645 1.17157L63.2929 4L60.4645 6.82843C60.2692 7.02369 60.2692 7.34027 60.4645 7.53553C60.6597 7.7308 60.9763 7.7308 61.1716 7.53553L64.3536 4.35355ZM0 4.5H64V3.5H0V4.5Z"
                                fill="black" />
                        </svg>
                    </span>
                </a>
            </div>
        </article>

        <article class="card">
            <figure class="card__header">
                <img src="img/card_bg02.jpg" alt="๋‹น์‹ ์˜ ์ถ”์–ต์„ ๊ธฐ๋กํ•˜์„ธ์š”">
            </figure>
            <div class="card__body">
                <h3 class="tit">๋‹น์‹ ์˜ ์ถ”์–ต์„ ๊ธฐ๋กํ•˜์„ธ์š”</h3>
                <p class="desc">๊ธฐ์–ต์œผ๋กœ ๋‚จ๊ธฐ๋Š” ๊ฒƒ๋„ ์ข‹์€ ๋ฐฉ๋ฒ•์ด์ง€๋งŒ ๊ธฐ๋ก์œผ๋กœ ๋‚จ๊ธฐ์ง€ ์•Š์€ ๊ธฐ์–ต์€ ๊ธˆ๋ฐฉ ํœ˜๋ฐœ๋˜๋Š” ๋ฒ•์ด์ฃ . ๋‹น์‹ ์˜ ๊ธฐ์–ต๊ณผ ๊ฐ์ •์„ ์–ด๋”˜๊ฐ€์— ๋ฐ•์ œํ•˜์„ธ์š”.</p>
                <a class="btn" href="/">
                    ๋” ์ž์„ธํžˆ ๋ณด๊ธฐ
                    <span>
                        <svg width="65" height="8" viewBox="0 0 65 8" fill="none"
                            xmlns="http://www.w3.org/2000/svg">
                            <path
                                d="M64.3536 4.35355C64.5488 4.15829 64.5488 3.84171 64.3536 3.64645L61.1716 0.464466C60.9763 0.269204 60.6597 0.269204 60.4645 0.464466C60.2692 0.659728 60.2692 0.976311 60.4645 1.17157L63.2929 4L60.4645 6.82843C60.2692 7.02369 60.2692 7.34027 60.4645 7.53553C60.6597 7.7308 60.9763 7.7308 61.1716 7.53553L64.3536 4.35355ZM0 4.5H64V3.5H0V4.5Z"
                                fill="black" />
                        </svg>
                    </span>
                </a>
            </div>
        </article>

        <article class="card">
            <figure class="card__header">
                <img src="img/card_bg03.jpg" alt="๋‹น์‹ ์˜ ์ถ”์–ต์„ ์žฅ์‹ํ•˜์„ธ์š”">
            </figure>
            <div class="card__body">
                <h3 class="tit">๋‹น์‹ ์˜ ์ถ”์–ต์„ ์žฅ์‹ํ•˜์„ธ์š”</h3>
                <p class="desc">๋‹น์‹ ์˜ ๊ฐ์ •์„ ์‹œ๊ฐ์ ์œผ๋กœ ํ‘œํ˜„ํ•˜๊ณ  ์‹ถ์ง€ ์•Š์œผ์‹ ๊ฐ€์š”? ์Šคํ‹ฐ์ปค๋ฅผ ๋ถ™์ด์„ธ์š”. ๊ทธ๋ฆผ์„ ๊ทธ๋ฆฌ์„ธ์š”. ๋‹น์‹ ์˜ ์ถ”์–ต์„ ์žฅ์‹ํ•˜์„ธ์š”. ์ ์ ˆํ•œ ์žฅ์‹์€ ๊ฐ์ •์„ ์‹ค๊ฐ๋‚˜๊ฒŒ
                    ํ‘œํ˜„ํ•ด์ค๋‹ˆ๋‹ค.</p>
                <a class="btn" href="/">
                    ๋” ์ž์„ธํžˆ ๋ณด๊ธฐ
                    <span aria-hidden="true">
                        <svg width="65" height="8" viewBox="0 0 65 8" fill="none"
                            xmlns="http://www.w3.org/2000/svg">
                            <path
                                d="M64.3536 4.35355C64.5488 4.15829 64.5488 3.84171 64.3536 3.64645L61.1716 0.464466C60.9763 0.269204 60.6597 0.269204 60.4645 0.464466C60.2692 0.659728 60.2692 0.976311 60.4645 1.17157L63.2929 4L60.4645 6.82843C60.2692 7.02369 60.2692 7.34027 60.4645 7.53553C60.6597 7.7308 60.9763 7.7308 61.1716 7.53553L64.3536 4.35355ZM0 4.5H64V3.5H0V4.5Z"
                                fill="black" />
                        </svg>
                    </span>
                </a>
            </div>
        </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: 20px;
}

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

/* cardType */
.card__inner {
    display: flex;
    justify-content: space-between;
}

.card {
    width: 32%;
    background: #f5f5f5;
}

.card__body {
    padding: 24px;
}

.card__body .tit {
    font-size: 24px;
    margin-bottom: 10px;
}

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

.card__body .btn {}
728x90
๋ฐ˜์‘ํ˜•

'Site ์ œ์ž‘' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

02. ์ด๋ฏธ์ง€ ์œ ํ˜• - 3  (4) 2022.08.21
02. ์ด๋ฏธ์ง€ ์œ ํ˜• - 2  (3) 2022.08.18
02. ์ด๋ฏธ์ง€ ์œ ํ˜• - 1  (3) 2022.08.18
03. ์นด๋“œ ์œ ํ˜• - 3  (11) 2022.08.11
02. ์นด๋“œ ์œ ํ˜•-2  (7) 2022.08.10

๋Œ“๊ธ€