λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°
SITE

[SITE] μ›Ήμ‚¬μ΄νŠΈ - μΉ΄λ“œ μœ ν˜•02

by _토맀토 2022. 8. 10.
728x90

CardType02

μ›ΉνŽ˜μ΄μ§€ μ‹€μŠ΅μ„ μœ„ν•œ μΉ΄λ“œνƒ€μž… νŽ˜μ΄μ§€ 기초 μ‹€μŠ΅ν•˜κΈ°! - 2쀄 μœ ν˜•


< figma : λ””μžμΈ ν•˜κΈ° >

ν”Όκ·Έλ§ˆλ₯Ό 톡해 μ›ν•˜λŠ” μΉ΄λ“œ μœ ν˜•μ„ λ””μžμΈ ν•©λ‹ˆλ‹€. λ””μžμΈμ„ ν•  땐 λ§Œλ“€κ³ μž ν•˜λŠ” νŽ˜μ΄μ§€μ˜ 성격을 잘 νŒŒμ•…ν•˜μ—¬ κ·Έλ¦¬λ“œλ₯Ό λ§Œλ“€μ–΄μ£ΌλŠ” 것이 μ€‘μš”ν•©λ‹ˆλ‹€.

TIP ! μΉ΄λ“œ μ„Ήμ…˜μ˜ λ””μžμΈμ΄ λ™μΌν•œλ° λ§Žμ„ 경우 μ»΄ν¬λ„ŒνŠΈλ₯Ό μ΄μš©ν•˜λ©΄ 효율적인 μž‘μ—…μ΄ κ°€λŠ₯ν•˜λ‹€.
μ»΄ν¬λ„ŒνŠΈλ₯Ό 처음 μ μš©μ‹œν‚¨ μΉ΄λ“œκ°€ 원본가 되며 원본을 μˆ˜μ •ν•˜λ©΄ λ³΅λΆ™ν–ˆλ˜ μΉ΄λ“œλ“€λ„ ν•¨κ»˜ μˆ˜μ •λœλ‹€.


< HTML μ†ŒμŠ€ : λ ˆμ•„μ•„μ›ƒ ꡬ쑰 νŒŒμ•…ν•˜κΈ° >

λ””μžμΈν•œ μ›Ή νŽ˜μ΄μ§€ μ‹œμ•ˆμ„ 보며 νŽ˜μ΄μ§€ ꡬ쑰λ₯Ό νŒŒμ•…ν•œ ν›„ μ›Ή ν‘œμ€€μ„±κ³Ό 접근성에 λ§žλŠ”μ‹œλ©˜ν‹±ν•œ λ§ˆν¬μ—…μ„ ν•΄μ€λ‹ˆλ‹€.

ꡬ쑰 νŒŒμ•…ν•˜κΈ°
1.ꡬ쑰λ₯Ό λ¨Όμ € κΌΌκΌΌν•˜κ²Œ νŒŒμ•…ν•˜μ—¬ μ‹œλ©˜ν‹±ν•œ λ§ˆν¬μ—…μ„ ν•˜λŠ” 것이 κ°€μž₯ μ€‘μš”ν•˜λ‹€. λ•Œλ¬Έμ— λ³΅μž‘ν•œ ꡬ쑰일 수둝 ꡬ쑰λ₯Ό 잘 μ§œμ£Όμ–΄μ•Ό μŠ€νƒ€μΌμ΄λ‚˜ 슀크립트λ₯Ό κ΅¬ν˜„ν•  λ•Œ 효율적으둜 μž‘μ—…ν•  수 μžˆλ‹€.
2. ꡬ쑰가 λ³΅μž‘ν•  수둝 큰 덩어리뢀터 천천히 λ§ˆν¬μ—…ν•˜λŠ” 것이 μ’‹λ‹€. 큰덩어리 ꡬ쑰가 작히면 κ·Έ ν›„ 세뢀적인 ꡬ쑰λ₯Ό λ§ˆν¬μ—…ν•΄μ€€λ‹€. (css도 λ§ˆμ°¬κ°€μ§€!)
3. μΉ΄λ“œ λ ˆμ΄μ•„μ›ƒμ€ 보톡 μ›Ή 메인 νŽ˜μ΄μ§€μ˜ μ„Ήμ…˜ 뢀뢄에 μœ„μΉ˜ν•œλ‹€. λ•Œλ¬Έμ— μ‹œλ©˜ν‹± νƒœκ·ΈμΈ <section>을 μ‚¬μš©ν•΄μ£Όμ–΄ μΉ΄λ“œ μ˜μ—­μ— ν•΄λ‹Ήν•˜λŠ” λͺ¨λ“  μš”μ†Œλ₯Ό λ¬Άμ–΄μ€€λ‹€.
4. μΉ΄λ“œμ˜μ—­μ΄ 두 쀄 ν˜•νƒœμ΄κΈ° λ•Œλ¬Έμ— κΈ°μ‘΄ λΆ€λͺ¨μΈ .card__inner containerλ₯Ό 두 개 λ§Œλ“  λ’€ <article>(= μΉ΄λ“œ ν•œ 개)을 4κ°œμ”© λ¬Άμ–΄μ„œ λ§ˆν¬μ—… ν•΄μ€€λ‹€.

<section id="cardType" class="card__wrap gmarket section">
    <h2>νŒŒμŠ€νƒ€ μš”λ¦¬ν•˜κΈ°πŸ</h2>
    <p>ν† λ§ˆν† μ™€ 였일 그리고 크림 λ“± λ‹€μ–‘ν•œ νŒŒμŠ€νƒ€λ₯Ό λ§Œλ‚˜λ³΄μ„Έμš”!<br />
        그리고 νŒŒμŠ€νƒ€μ˜ 맀λ ₯을 λŠκ»΄λ³΄μ„Έμš”!
    </p>
    <div class="card__inner container top">
            <article class="card"> 
                <figure class="card__header">
                    <img src="img/card_bg04.jpg" alt="νŒŒμŠ€νƒ€01">
                </figure>
                <div class="card__body">
                    <div class="card__body__header">
                        <h3 class="tit">νŒŒμŠ€νƒ€μ˜ μ •μ˜</h3>
                        <a href="#" class="btn">
                            <span aria-hidden="true">
                                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                    <rect width="24" height="24" rx="5" fill="white"/>
                                    <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                    <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                                </svg>
                            </span>
                        </a>
                    </div>
                    <p class="desc">
                        νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                    </p>
                </div>
            </article>
            <article class="card">
                <figure class="card__header">
                    <img src="img/card_bg10.jpg" alt="νŒŒμŠ€νƒ€02">
                </figure>
                <div class="card__body">
                    <div class="card__body__header">
                        <h3 class="tit">νŒŒμŠ€νƒ€ 면의 μ’…λ₯˜</h3>
                        <a href="#" class="btn">
                            <span aria-hidden="true">
                                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                    <rect width="24" height="24" rx="5" fill="white"/>
                                    <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                    <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                                </svg>
                            </span>
                        </a>
                    </div>
                    <p class="desc">
                        νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                    </p>
                </div> 
            </article>
            <article class="card">
                <figure class="card__header">
                    <img src="img/card_bg05.jpg" alt="νŒŒμŠ€νƒ€03">
                </figure>
                <div class="card__body">
                    <div class="card__body__header">
                        <h3 class="tit">νŒŒμŠ€νƒ€μ˜ μ’…λ₯˜</h3>
                        <a href="#" class="btn">
                            <span aria-hidden="true">
                                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                    <rect width="24" height="24" rx="5" fill="white"/>
                                    <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                    <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                                </svg>
                            </span>
                        </a>
                    </div>
                    <p class="desc">
                        νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                    </p>
                </div> 
            </article>
            <article class="card">
                <figure class="card__header">
                    <img src="img/card_bg06.jpg" alt="νŒŒμŠ€νƒ€04">
                </figure>
                <div class="card__body">
                    <div class="card__body__header">
                        <h3 class="tit">νŒŒμŠ€νƒ€μ˜ 재료</h3>
                        <a href="#" class="btn">
                            <span aria-hidden="true">
                                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                    <rect width="24" height="24" rx="5" fill="white"/>
                                    <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                    <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                                </svg>
                            </span>
                        </a>
                    </div>
                    <p class="desc">
                        νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                    </p>
                </div> 
            </article>

    </div>
    <div class="card__inner container bottom">
        <article class="card">
            <figure class="card__header">
                <img src="img/card_bg07.jpg" alt="νŒŒμŠ€νƒ€05">
            </figure>
            <div class="card__body">
                <div class="card__body__header">
                    <h3 class="tit">ν† λ§ˆν†  νŒŒμŠ€νƒ€</h3>
                    <a href="#" class="btn">
                        <span aria-hidden="true">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <rect width="24" height="24" rx="5" fill="white"/>
                                <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                            </svg>
                        </span>
                    </a>
                </div>
                <p class="desc">
                    νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                </p>
            </div>
        </article>
        <article class="card">
            <figure class="card__header">
                <img src="img/card_bg08.jpg" alt="νŒŒμŠ€νƒ€06">
            </figure>
            <div class="card__body">
                <div class="card__body__header">
                    <h3 class="tit">였일 νŒŒμŠ€νƒ€</h3>
                    <a href="#" class="btn">
                        <span aria-hidden="true">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <rect width="24" height="24" rx="5" fill="white"/>
                                <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                            </svg>
                        </span>
                    </a>
                </div>
                <p class="desc">
                    νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                </p>
            </div> 
        </article>
        <article class="card">
            <figure class="card__header">
                <img src="img/card_bg11.jpg" alt="νŒŒμŠ€νƒ€07">
            </figure>
            <div class="card__body">
                <div class="card__body__header">
                    <h3 class="tit">둜제 νŒŒμŠ€νƒ€</h3>
                    <a href="#" class="btn">
                        <span aria-hidden="true">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <rect width="24" height="24" rx="5" fill="white"/>
                                <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                            </svg>
                        </span>
                    </a>
                </div>
                <p class="desc">
                    νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                </p>
            </div> 
        </article>
        <article class="card">
            <figure class="card__header">
                <img src="img/card_bg09.jpg" alt="νŒŒμŠ€νƒ€08">
            </figure>
            <div class="card__body">
                <div class="card__body__header">
                    <h3 class="tit">크림 νŒŒμŠ€νƒ€</h3>
                    <a href="#" class="btn">
                        <span aria-hidden="true">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <rect width="24" height="24" rx="5" fill="white"/>
                                <rect width="24" height="24" rx="5" fill="#884A4A"/>
                                <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
                            </svg>
                        </span>
                    </a>
                </div>
                <p class="desc">
                    νŒŒμŠ€νƒ€λŠ” μ΄νƒˆλ¦¬μ•„μ˜ 전톡 μŒμ‹ 쀑 ν•˜λ‚˜λ‘œ 면이 μ£Ό μš”λ¦¬ 재료인 μŒμ‹μž…λ‹ˆλ‹€. νŒŒμŠ€νƒ€λ₯Ό 더 μ•Œμ•„λ³ΌκΉŒμš”?
                </p>
            </div> 
        </article>
    </div>
</section>

! html μ£Όμ˜μ‚¬ν•­ !
β€’ imgνƒœκ·Έμ˜ 속성 쀑 altμ•ˆμ— 이미지에 λŒ€ν•œ μ„€λͺ…을 λ„£μ–΄μ€˜μ•Ό μ‹œκ° 및 청각 μž₯애인듀도 μŠ€ν¬λ¦°λ¦¬λ”κΈ°λ₯Ό 톡해 이해 κ°€λŠ₯
β€’ μŠ€ν¬λ¦°λ¦¬λ”κΈ°κ°€ svg값을 읽지 μ•Šκ²Œ ν•˜κΈ° μœ„ν•΄ 속성 aria-hidden="true"λ₯Ό μΆ”κ°€
β€’ img νƒœκ·Έμ™€ 같은 κ·Έλ¦Ό, λ„ν‘œ 자료 νƒœκ·Έλ“€μ€ figure νƒœκ·Έμ•ˆμ— λ„£μ–΄μ£ΌλŠ” 것이 μ›Ή ν‘œμ€€μ„ μ€€μˆ˜ν•œ 것

< CSS μ†ŒμŠ€ : μŠ€νƒ€μΌ μ μš©ν•˜κΈ° >

ꡬ쑰 μ§œμž„μ˜ μˆœμ„œλŒ€λ‘œ css μŠ€νƒ€μΌμ„ μ μš©μ‹œμΌœ λ΄…μ‹œλ‹€. 이 λ•Œ λ””μžμΈ μ‹œμ•ˆμ„ 보며 λ§ˆν¬μ—… 된 μš”μ†Œλ₯Ό 큰 덩어리 λΆ€ν„° μŠ€νƒ€μΌμ„ μ μš©μ‹œμΌœ λ‚˜κ°€λŠ” 것이 μ€‘μš”ν•©λ‹ˆλ‹€.

Css μŠ€νƒ€μΌ νŒŒμ•…ν•˜κΈ°
1. λ¨Όμ € 전체 μ΄ˆκΈ°ν™”μ™€ 폰트 섀정을 ν•΄μ£ΌλŠ” 것이 μ’‹λ‹€.
2. μ»¨ν…Œμ΄λ„ˆ 섀정을 톡해 메인 ν™”λ©΄ 크기와 여백을 μ„€μ •ν•΄μ€€ λ’€ 메인 μ½˜ν…μΈ μΈ μ„Ήμ…˜μ—κ²Œ μŠ€νƒ€μΌμ„ 적용
3. μ„Ήμ…˜μ˜ μŠ€νƒ€μΌ 적용이 λλ‚œ ν›„ μΉ΄λ“œ μ˜μ—­μ— μŠ€νƒ€μΌμ„ μ μš©μ‹œν‚¨λ‹€.(μŠ€νƒ€μΌμ΄ λ˜‘κ°™κΈ° λ•Œλ¬Έμ— λΆ€λͺ¨μš”μ†Œλ₯Ό λ™μΌν•˜κ²Œ ν•˜μ—¬ λΉ λ₯΄κ³  효율적인 μž‘μ—…μ„ ν•  수 μžˆλ„λ‘ ν•œλ‹€.)

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

.gmarket {
    font-family: 'GmarketSans';
    font-weight: 400;
}

/* reset */
* {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;   /* ν…μŠ€νŠΈ 효과λ₯Ό μ΄ˆκΈ°ν™” */
}
img {
    width: 100%;            /* 이미지가 λ°–μœΌλ‘œ λ‚˜μ˜€λŠ” 것을 막아쀀닀. */
}
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;    /* ν…μŠ€νŠΈ κ΅΅κΈ°λ₯Ό μ΄ˆκΈ°ν™” */
}

/* common */
.container {
    width: 1160px;
    padding: 0 20px;
    margin: 0 auto;
}
.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;
    flex-wrap: wrap;
    justify-content: space-between; /* 쀑심을 κΈ°μ€€μœΌλ‘œ 간격을 λ–¨μ–΄λœ¨λ¦°λ‹€.*/
}
.card {
    width: 23.5%;
}
.card__body {
    padding: 16px 0 20px 0;
}
.card__body .card__body__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 쀑심을 κΈ°μ€€μœΌλ‘œ 간격을 λ–¨μ–΄λœ¨λ¦°λ‹€.*/
}
.card__body .tit {
    font-size: 24px;
    margin-bottom: 10px;
}
.card__body .desc {
    font-size: 18px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 50px;
    font-weight: 300;
}
.card__body .btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background-color: #884A4A;
    display: flex;
    flex-wrap: wrap;
}

!였늘의 포인트!

aria-hidden="true"
μŠ€ν¬λ¦°λ¦¬λ”κΈ°κ°€ svg와 같이 λ‚΄μš©μ΄ μ—†λŠ” μš”μ†Œμ˜ 값을 읽지 μ•Šκ²Œ ν•˜κΈ° μœ„ν•΄ μ‚¬μš©ν•˜λŠ” 속성

 <!-- μ˜ˆμ‹œ -->
<span aria-hidden="true">
    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
        <rect width="24" height="24" rx="5" fill="white"/>
        <rect width="24" height="24" rx="5" fill="#884A4A"/>
        <path d="M6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13V11ZM18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L12.3431 4.92893C11.9526 4.53841 11.3195 4.53841 10.9289 4.92893C10.5384 5.31946 10.5384 5.95262 10.9289 6.34315L16.5858 12L10.9289 17.6569C10.5384 18.0474 10.5384 18.6805 10.9289 19.0711C11.3195 19.4616 11.9526 19.4616 12.3431 19.0711L18.7071 12.7071ZM6 13L18 13V11L6 11V13Z" fill="white"/>
    </svg>
</span>

결과보기

728x90

λŒ“κΈ€


Lucky Charms Rainbow
js
html
css