๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
SITE

[SITE] ์›น์‚ฌ์ดํŠธ - ์ด๋ฏธ์ง€ ํ…์ŠคํŠธ ์œ ํ˜•01

by _ํ† ๋งคํ†  2022. 9. 2.
728x90

ImageTextType01

์›นํŽ˜์ด์ง€ ์‹ค์Šต์„ ์œ„ํ•œ ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜•์„ ์‹ค์Šตํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค! ์ด๋ฒˆ ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜•์€ ์ด๋ฏธ์ง€์™€ ํ…์ŠคํŠธ ์˜์—ญ์ด ํ•จ๊ป˜ ๋“ค์–ด์žˆ๋Š” ํƒ€์ž…์ž…๋‹ˆ๋‹ค.
๊ทธ๋Ÿผ ์•„๋ž˜์˜ ์ฝ”๋“œ๋ฅผ ๋ณด๋ฉฐ ํ•จ๊ป˜ ์‹ค์Šต ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค~๐Ÿ˜†


< figma : ๋””์ž์ธ ํ•˜๊ธฐ >

์ด๋ฒˆ ์œ ํ˜•์€ ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ํƒ€์ž…์œผ๋กœ ๊ฐ ์ฃผ์ œ์™€ ์˜์—ญ์— ๋งž๊ฒŒ ๋ ˆ์ด์•„์›ƒ๊ณผ ๋””์ž์ธ์„ ์„ค์ •ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

์•„๋ž˜์˜ ํ”ผ๊ทธ๋งˆ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ HTML, CSS๋ฅผ ์„ค์ •ํ•ด๋ด…์‹œ๋‹ค. ๐Ÿ˜‡


< HTML ์†Œ์Šค : ๋ ˆ์•„์•„์›ƒ ๊ตฌ์กฐ ํŒŒ์•…ํ•˜๊ธฐ >

๋””์ž์ธํ•œ ์›น ํŽ˜์ด์ง€ ์‹œ์•ˆ์„ ๋ณด๋ฉฐ ํŽ˜์ด์ง€ ๊ตฌ์กฐ๋ฅผ ํŒŒ์•…ํ•œ ํ›„ ์›น ํ‘œ์ค€์„ฑ๊ณผ ์ ‘๊ทผ์„ฑ์— ๋งž๋Š”์‹œ๋ฉ˜ํ‹ฑํ•œ ๋งˆํฌ์—…์„ ํ•ด์ค๋‹ˆ๋‹ค.

TIP !
โ€ข ์„น์…˜, ์•„ํ‹ฐํด๊ณผ ๊ฐ™์€ ์‹œ๋ฉ˜ํ‹ฑ ํƒœ๊ทธ์—๋Š” ๊ผญ ํ—ค๋”ฉ ํƒœ๊ทธ๋ฅผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•ด์ฃผ์–ด์•ผ ์›นํ‘œ์ค€์„ ์ค€์ˆ˜ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.
โ€ข ์„น์…˜ ์˜์—ญ์— ์›นํ‘œ์ค€ ์ค€์ˆ˜๋ฅผ ์œ„ํ•ด ์„ ์–ธํ•œ h2ํƒœ๊ทธ๊ฐ€ ์‚ฌ์šฉ์ž ๋ˆˆ์— ๋ณด์ด์ง€ ์•Š๋„๋ก ๋ธ”๋ผ์ธ๋“œ ์†์„ฑ์„ ์ฃผ๊ธฐ ์œ„ํ•ด ์„ ํƒ์ž๋กœ ๋ธ”๋ผ์ธ๋“œ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
โ€ข ๋‹ค์Œ์œผ๋กœ ํฐ ๋ฉ์–ด๋ฆฌ์ธ ํ…์ŠคํŠธ ์˜์—ญ / ์ด๋ฏธ์ง€์˜์—ญ1 / ์ด๋ฏธ์ง€์˜์—ญ2๋กœ ๊ตฌ์กฐ๋ฅผ ๋จผ์ € ์„ค์ •ํ•œ ๋’ค ์„ธ๋ถ€ ๊ตฌ์กฐ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

<section id="imgTextType01" class="image__wrap nexon section gray">
    <h2 class="blind">๋ฉ๋ฉ ์œ ์น˜์› ์‚ดํŽด๋ณด๊ธฐ</h2>
    <div class="imgText__inner container">
        <div class="imgText__txt">
            <span>์ด๋ฏธ์ง€ ํ…์ŠคํŠธ ์œ ํ˜•01</span>
            <h3>๋ฉ๋ฉ ์œ ์น˜์› ์‚ดํŽด๋ณด๊ธฐ</h3>
            <p>๋Œ•๋Œ•์ด๋ฅผ ์ข‹์•„ํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•œ ๋ฉ๋ฉ ์œ ์น˜์› ์†Œ๊ฐœ ์‚ฌ์ดํŠธ ์ž…๋‹ˆ๋‹ค.</p>
            <ul>
                <li><a href="#">๋ฉ๋ฉ ์œ ์น˜์› ์‚ฌ์ดํŠธ</a></li>
                <li><a href="#">๋Œ•๋Œ•๊พธ๋Ÿฌ๊ธฐ ์†Œ๊ฐœ</a></li>
                <li><a href="#">์นญ์ฐฌํ•ด์š”</a></li>
                <li><a href="#">์„œ์šดํ•ด์š”</a></li>
                <li><a href="#">๊ณต์ง€์‚ฌํ•ญ</a></li>
                <li><a href="#">๋Œ•๋Œ• Youtube</a></li>
            </ul>
        </div>
        <div class="imgText__img img1">
            <li><a href="#">๋ฉ๋ฉ ์œ ์น˜์› ์‚ฌ์ดํŠธ</a></li>
        </div>
        <div class="imgText__img img2">
            <li><a href="#">๋ฉ๋ฉ ์œ ์น˜์› ์‚ฌ์ดํŠธ</a></li>
        </div>
    </div>
</section>

< CSS ์†Œ์Šค : ์Šคํƒ€์ผ ์ ์šฉํ•˜๊ธฐ >

๊ตฌ์กฐ ์งœ์ž„์˜ ์ˆœ์„œ๋Œ€๋กœ css ์Šคํƒ€์ผ์„ ์ ์šฉ์‹œ์ผœ ๋ด…์‹œ๋‹ค. ์ด ๋•Œ ๋””์ž์ธ ์‹œ์•ˆ์„ ์ฐธ๊ณ ํ•˜๋ฉด์„œ html์™€ ๋ฒˆ๊ฐˆ์•„๊ฐ€๋ฉฐ ํฐ ๋ฉ์–ด๋ฆฌ ๋ถ€ํ„ฐ ์Šคํƒ€์ผ์„ ์ ์šฉ์‹œ์ผœ ๋‚˜๊ฐ€๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค.
์†์„ฑ์— ๋Œ€ํ•œ ๋‚ด์šฉ์€ ์ฝ”๋“œ์™€ ์ฃผ์„์„ ๋ณด๋ฉด์„œ ์ดํ•ดํ•ด๋ด…์‹œ๋‹ค!

TIP !
โ€ข ๋จผ์ € ์ „์ฒด ์ดˆ๊ธฐํ™”(Reset)์™€ ํฐํŠธ ๋””ํดํŠธ ์„ค์ •์„ ํ•ด์ฃผ๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
โ€ข ๊ฐ ์˜์—ญ๊ณผ ์„น์…˜์— ๋ฐ˜๋ณต์ ์œผ๋กœ ๋“ค์–ด๊ฐ€๋Š” ์†์„ฑ๋“ค์€ ๊ณตํ†ต ์†์„ฑ์œผ๋กœ ๋”ฐ๋กœ ์„ค์ •ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
โ€ข ์ปจํ…Œ์ด๋„ˆ ์„ค์ •์„ ํ†ตํ•ด ๋ฉ”์ธ ํ™”๋ฉด ํฌ๊ธฐ์™€ ์—ฌ๋ฐฑ์„ ์„ค์ •ํ•ด์ค€ ๋’ค ๋ฉ”์ธ ์ฝ˜ํ…์ธ ์ธ ์„น์…˜์—๊ฒŒ ์Šคํƒ€์ผ์„ ์ ์šฉ์‹œํ‚ต๋‹ˆ๋‹ค.
โ€ข span ํƒœ๊ทธ๋Š” display: block๋ฅผ ๋จผ์ € ์„ค์ •ํ•˜์—ฌ ์ž‘์—…ํ•˜๋Š” ๊ฒƒ์ด ํŽธ๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
โ€ข text-underline-position: under๋Š” ํฌ๋กฌ ๋ธŒ๋ผ์šฐ์ €์—๊ฒŒ๋งŒ ์ ์šฉ๋˜๋Š” ์†์„ฑ์œผ๋กœ ์–ธ๋”๋ผ์ธ๊ณผ ํ…์ŠคํŠธ์˜ ๊ฐ„๊ฒฉ์ด ์กฐ๊ธˆ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
โ€ข ์ด๋ฏธ์ง€๋Š” background: url()์„ ์ด์šฉํ•˜์—ฌ ๋ฐฐ๊ฒฝ์— ์‚ฝ์ž…ํ•ฉ๋‹ˆ๋‹ค.

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

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

/* reset */
* {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: #000;
}
img {
    width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}
em,
i,
address {
    font-style: normal;
}
li {
    list-style: none;
}
.blind{
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
}

/* 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;
}
.gray {
    background-color: #f5f5f5;
}

/* imageType */
.imgText__inner {
    display: flex;
    justify-content: space-between;
}
.imgText__inner > div {
    width: 32%;
    height: 500px;
}
.imgText__txt span {
    font-size: 16px;
    color: #666;
    text-decoration: underline;
    text-underline-position: under;
    margin-bottom: 20px;
    display: block;
}
.imgText__txt h3 {
    font-size: 50px;
    font-weight: 300;
    word-break: keep-all;
    line-height: 1.4;
    margin-bottom: 20px;
}
.imgText__txt p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
}
.imgText__txt ul {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
}
.imgText__txt ul li {
    position: relative;
    padding-left: 20px;
}
.imgText__txt ul li a {
    color: #666;
}
.imgText__txt ul li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    position: absolute;
    left: 5px;
    top: 9px;
    background: #666;
}
.imgText__img {
    border-radius: 10px;
    position: relative;
}
.imgText__img a {
    position: absolute;
    left: 30px;
    bottom: 30px;
    background-color: #7c2b39;
    color: #fff;
    font-size: 18px;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
}
.imgText__img a.blue {
    background-color: #7c2b39;
}

.imgText__img.img1 {
    background: url(img/imgText_bg01.jpg) no-repeat center / cover;
}
.imgText__img.img2 {
    background: url(img/imgText_bg02.jpg) no-repeat center / cover;
}

๐ŸŽ‰ ๊ฒฐ๊ณผ๋ณด๊ธฐ ๐ŸŽ‰

728x90

๋Œ“๊ธ€


Lucky Charms Rainbow
js
html
css