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

μ›Ήμ‚¬μ΄νŠΈ λ§Œλ“€κΈ° : μΉ΄λ“œ μœ ν˜• λ ˆμ΄μ•„μ›ƒ01

by μ½”νŒŒμΉ΄ 2022. 8. 8.
728x90

λ ˆμ΄μ•„μ›ƒ : μΉ΄λ“œ μœ ν˜•01

λ‹€μŒκ³Ό 같은 μΉ΄λ“œ μœ ν˜•μ˜ λ ˆμ΄μ•„μ›ƒμ„ μž‘μ—…ν•΄ 보도둝 ν•˜κ² μŠ΅λ‹ˆλ‹€.

CSS μ†ŒμŠ€

/* fonts */
@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;
}
            
/* 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;
    justify-content: space-between;
}
            
.card {
    width: 32%;
    background-color: #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;
}

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="brn" 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>
        <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="brn" 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="brn" 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>
    </div>
</section>
    

κ²°κ³Ό

728x90

λŒ“κΈ€

κ°μ‚¬ν•©λ‹ˆλ‹€. πŸ¦™

CSS
κ΄‘κ³  쀀비쀑