본문 바로가기
SiteType

사이트 만들기(텍스트 유형 - 01)

by 코딩 냠냠 2022. 8. 30.
728x90
반응형

사이트 만들기(텍스트 유형 - 01)

텍스트 형식의 사이트를 만들어 봅시다✏️


CSS

/* textType01 */
.text__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.text {
    padding: 20px;
    width: 29%;
    height: 260px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}
.text:hover {
    background-color: #f5f5f5;
}
.text .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    text-align: center;
    line-height: 70px;
}
.text .icon.icon01 {
    background-color: #ffeeb0c0;
}
.text .icon.icon02 {
    background-color: #ffafafb2;
}
.text .icon.icon03 {
    background-color: #ffc69ec0;
}
.text .icon.icon04 {
    background-color: #c4ffedc3;
}
.text .icon.icon05 {
    background-color: #c0e4ffb3;
}
.text .icon.icon06 {
    background-color: #d2ceffb2;
}
.text__body .tit {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}
.text__body .desc {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.4;
}
.text__body .btn {
    font-size: 16px;
    text-decoration: underline;
    color: #666;
}

HTML

<section id="textType01" class="text__wrap nexon section">
    <p>텍스트 유형01</p>
    <h2>텍스트 유형 첫번째</h2>
    <div class="text__inner container">
        <article class="text">
            <div class="icon icon01">
                <img src="img/icon01.svg" alt="텍스트 아이콘">
            </div>
            <div class="text__body">
                <h3 class="tit">텍스트로 보기</h3>
                <p class="desc">검색 이펙트를 보여줍니다.검색 이펙트를 보여줍니다.검색 이펙트를 보여줍니다.검색 이펙트를 보여줍니다.검색 이펙트를 보여..</p>
                <a class="btn" href="/">더보기</a>
            </div>
        </article>
    </div>
</section>

결과


댓글


자바스크립트

Javascript

자세히 보기
html
css
광고 준비중입니다.
<