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

[์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ] ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜• 01

by ์ฝ”๋”ฉ๊ณต์ฑ… 2022. 9. 1.
๋ฐ˜์‘ํ˜•

์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ : ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜• STUDY 01

์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” Figma์—์„œ ๋งŒ๋“  ์ด๋ฏธ์ง€/ํ…์ŠคํŠธ ์œ ํ˜•์„ HTML๊ณผ CSS ์ฝ”๋“œ๋กœ ์˜ฎ๊ธฐ๋Š” ์ž‘์—…์„ ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.


Figma

๋จผ์ € ๋งŒ๋“ค๊ณ ์ž ํ•˜๋Š” ์›น ์‚ฌ์ดํŠธ์˜ ๋ชจ์–‘์„ Figma๋ผ๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ด์šฉํ•˜์—ฌ ์•„๋ž˜์™€ ๊ฐ™์ด ๋งŒ๋“ค์–ด์ฃผ๋„๋ก ํ•˜์ž.

HTML ์†Œ์Šค

์›น ํ‘œ์ค€ ์ค€์ˆ˜๋ฅผ ์œ„ํ•ด ์‹œ๋งจํ‹ฑ ํƒœ๊ทธ๋ฅผ ์ ๊ทน ์‚ฌ์šฉํ•˜๋„๋ก ํ•˜์ž.

<body>
    <section id="imgTextType" class="imgText__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="/">CSS ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="/">WebGL ์‚ฌ์ดํŠธ</a></li>
                    <li><a href="/">Youtube ์‚ฌ์ดํŠธ</a></li>
                </ul>
            </div>
            <div class="imgText__img img1">
                <a href="/">๋ ˆํผ๋Ÿฐ์Šค ์‚ฌ์ดํŠธ</a>
            </div>
            <div class="imgText__img img2">
                <a href="/" class="blue">ํŠœํ† ๋ฆฌ์–ผ ์‚ฌ์ดํŠธ</a>
            </div>
        </div>
    </section>
</body>

CSS ์†Œ์Šค

reset์—์„œ margin๊ฐ’๊ณผ padding๊ฐ’์„ 0์œผ๋กœ ์ดˆ๊ธฐํ™” ์‹œํ‚ค๋Š” ์ž‘์—…๋ถ€ํ„ฐ ์‹œ์ž‘ํ•œ๋‹ค.

<style>
    /* 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%;    /* ์ด๋ฏธ์ง€ ํŠ€์–ด๋‚˜์˜จ ๊ฑฐ ์ง‘์–ด๋„ฃ๊ธฐ */
    }
    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 > h1 {
        font-size: 50px;
        line-height: 1;
        text-align: center;
        margin-bottom: 20px;
    }
    .section > p {
        font-size: 22px;
        font-weight: 300;
        text-align: center;
        margin-bottom: 70px;
        color: #666;
    }
    .gray {
        background-color: #f5f5f5;
    }

    /* imgTextType */
    .imgText__inner {
        display: flex;
        justify-content: space-between;
    }
    .imgText__inner > div {
        width: 32%;
        height: 500px;
        
    }
    .imgText__txt {}
    .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: #2b387c;
    }
    .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;
    }
</style>

์ตœ์ข… ๊ฒฐ๊ณผ

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€


Reference Book

JavaScript
HTML
CSS
๊ด‘๊ณ  ์ค€๋น„์ค‘์ž…๋‹ˆ๋‹ค.