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

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

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

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

ํ…์ŠคํŠธ ์œ ํ˜• ๋ ˆ์ด์•„์›ƒ ์‚ฌ์ดํŠธ์ž…๋‹ˆ๋‹ค.

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

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

HTML

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

<body>
    <section id="textType03" class="card__wrap nexon section">
        <h2>๐ŸžYoucodein ๋ฒ ์ด์ปค๋ฆฌ ํ›„๊ธฐ๐Ÿฅ</h2>
        <p>
            ์šฐ๋ฆฌ ๋ฒ ์ด์ปค๋ฆฌ ์†๋‹˜๋“ค์˜ ์ง„์งœ 100% ๋ฆฌ์–ผ ํ›„๊ธฐ๋“ค์ž…๋‹ˆ๋‹ค.
        </p>
        <div class="container text__inner">
            <article class="text">
                <p class="desc">
                    ์ตœ๊ณ ์˜ ๋ฒ ์ด์ปค๋ฆฌ. ํ•œ๊ตญ, ์•„๋‹ˆ ์šฐ์ฃผ์—์„œ ๊ฐ€์žฅ ๋ง›์žˆ๋Š” ๋นต๋“ค์ž…๋‹ˆ๋‹ค.
                    ์‚ฌ์žฅ๋‹˜์ด ์ •๋ง ์ •์„ฑ์„ ๋‹ด์•„ ๋นต์„ ๋งŒ๋“œ๋Š” ๊ฒŒ ๋ณด์ž…๋‹ˆ๋‹ค.
                    ์ œ๊ฐ€ ๊ฐ€์žฅ ์ข‹์•„ํ•˜๋Š” ๋นต์€ ์Šˆํฌ๋ฆผ์ธ๋ฐ์š” ๋ฐ”์‚ญํ•œ ๋นต๊ณผ ๋‹ฌ์ฝคํ•˜๋ฉด์„œ๋„
                    ๊นŠ์€ ๋ง›์˜ ํฌ๋ฆผ์ด ํ™˜์ƒ์˜ ์กฐํ•ฉ์ž…๋‹ˆ๋‹ค. ์š” ์Šˆํฌ๋ฆผ์ด ์•„์ฃผ ๋ฏธX..๋…€์„์ž…๋‹ˆ๋‹ค
                </p>
                <hr>
                <div class="profile">
                    <div class="icon">
                        <img src="img/icon02_1.png" alt="ํ”„๋กœํ•„ ์•„์ด์ฝ˜">
                    </div>
                    <div class="name">๋ฐ•์„ ํ˜œ</div>
                    <div class="date">
                        22. 08. 31
                    </div>

                    <div class="star">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                    </div>
                </div>
                <hr>
                <div class="more">
                    <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                </div>
            </article>

            <article class="text">
                <p class="desc">
                    ์นœ๊ตฌ๊ฐ€ ์ถ”์ฒœํ•ด์„œ ์†Œ๊ธˆ๋นต ๋จน์–ด๋ดค๋Š”๋ฐ ๋„ˆ๋ฌด๋„ˆ๋ฌด ๋ง›์žˆ์—ˆ์–ด์š”!
                    ์–ด์ฉœ ์ด๋ ‡๊ฒŒ ๋ง›์žˆ๋Š”์ง€ ์ œ๊ฐ€ ๋จน์–ด๋ณธ ์†Œ๊ธˆ๋นต์ค‘ ์ œ์ผ ๋ง›์žˆ์—ˆ์–ด์š”~
                    ๋‹ค์Œ์— ๋˜ ๊ฐ€์„œ ์‚ฌ๋จน์œผ๋ ค๊ตฌ์šฉ ใ…Žใ…Ž ๋‹ค์Œ์—” ์น˜์ฆˆ๋นต? ์„ ํ•œ๋ฒˆ ๋จน์–ด๋ณด๋ ค ํ•ด์š”.
                    ์นœ๊ตฌ๋Š” ์ฟ ํ‚ค๊ฐ€ ๋ง›์žˆ๋‹ค๊ณ  ํ•˜๋Š”๋ฐ ๊ทธ๊ฒƒ๋„ ๋„ˆ๋ฌด๋„ˆ๋ฌด ๊ถ๊ธˆํ•˜๋„ค์š”~ใ…Žใ…Ž...
                </p>
                <hr>
                <div class="profile">
                    <div class="icon">
                        <img src="img/icon02_2.png" alt="ํ”„๋กœํ•„ ์•„์ด์ฝ˜">
                    </div>
                    <div class="name">๊ถŒํ˜œ์ง„</div>
                    <div class="date">
                        22. 08. 05
                    </div>

                    <div class="star">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                    </div>
                </div>
                <hr>
                <div class="more">
                    <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                </div>
            </article>

            <article class="text">
                <p class="desc">
                    ๋Œ€๋ฐ•์งฑ์ž„ ์—ฌ๊ธฐ์„œ ์ผ€์ดํฌ ์ƒ€๋Š”๋ฐ ๋„ˆ๋ฌด ๋งŒ์กฑ์Šค๋Ÿฌ์›Œ์š”.
                    ์นœ๊ตฌ ์ƒ์ผ์ผ€์ดํฌ์˜€๋Š”๋ฐ ์˜ˆ์˜๊ธฐ๋„ ๋„ˆ๋ฌด ์˜ˆ์˜๊ณ  ๋ง›๋„ ์ง„์งœ ์žฅ๋‚œ์•„๋‹ˆ๊ฒŒ
                    ๋ง›์žˆ์—ˆ์–ด์š” ์กฐ๊ธˆ ๋น„์‹ธ๋‹ค ๋Š๊ปด์ง€๊ธด ํ–ˆ์ง€๋งŒ ๋จน์–ด๋ณด๊ณ  ์™œ ์ด ๊ฐ€๊ฒฉ์ธ์ง€ ์•Œ๊ฒ ๋”๋ผ๊ตฌ์š”
                    ํฌ๋ฆผ๊ณผ ๋ฒ„ํ„ฐ๋ฅผ ์ •๋ง ์ข‹์€๊ฑธ ์“ฐ๋Š” ๊ฒƒ ๊ฐ™์•„์š” ๋‹ค์Œ์—๋„ ๋˜ ์‚ฌ๋จน์„๊ฒŒ์š”~...
                </p>
                <hr>
                <div class="profile">
                    <div class="icon">
                        <img src="img/icon02_3.png" alt="ํ”„๋กœํ•„ ์•„์ด์ฝ˜">
                    </div>
                    <div class="name">์ดํฌ์ง„</div>
                    <div class="date">
                        22. 07. 25
                    </div>

                    <div class="star">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                        <img src="img/star.png" alt="๋ณ„">
                    </div>
                </div>
                <hr>
                <div class="more">
                    <a href="#">์ž์„ธํžˆ ๋ณด๊ธฐ</a>
                </div>
            </article>
        </div>

        </div>
    </section>
</body>

CSS

css ์†Œ์Šค์ž…๋‹ˆ๋‹ค. figma๋กœ ์„ค์ •ํ•ด๋†“์€ ๋ ˆ์ด์•„์›ƒ์ด๋‚˜ zaplin์„ ๋ณด๋ฉฐ ์ ์ ˆํ•˜๊ฒŒ css๋ฅผ ์„ค์ •ํ•ด์ค๋‹ˆ๋‹ค.

/* fonts */
@import url('https://webfontworld.github.io/NexonLv1Gothic/NexonLv1Gothic.css');

.nexon {
    font-family: 'NexonLv1Gothic';
    font-weight: 400;
}

body {
    background-color: #a16e49;
}

/* 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;
    color: #fff1e0;
}

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

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

.text {
    width: 373px;
    height: 450px;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 30px;
    box-sizing: border-box;
}

.desc {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 30px;
}

hr {
    border: 1px solid #c3bab2;
}

.profile {
    display: flex;
    margin: 20px 0 20px 0;
    position: relative;
}

.icon {
    width: 54px;
    height: 54px;
    margin-right: 18px;
}

.name {
    font-size: 25px;
    margin-right: 25px;
}

.date {
    font-size: 16px;
    margin-top: 10px;
}

.star {
    margin-left: 14px;
    position: absolute;
    top: 34px;
    left: 59px;
}

.star>img {
    width: 23px;
    height: 23px;
    display: inline;
}

.more {
    width: 130px;
    height: 30px;
    background-color: #b85555;
    text-align: center;
    line-height: 30px;
    border-radius: 20px;
    margin: 30px 94px 0 88px;
}

.more > a {
    color: #f5f5f5;
}
728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€