본문 바로가기
사이트 보기

텍스트 사이트 02

by 🐬마뇽뇽 마뇽🦄 2022. 8. 31.
728x90

텍스트 사이트 02

텍스트와 아이콘을 활용하여 웹 사이트를 디자인 해보았습니다.

01. figma

간편하게 디자인 하기 위해 피그마로 디자인 해보았습니다.

이때, 스프라이트로 아이콘을 작업해줄꺼기 때문에 이미지 스프라이트로 준비하였습니다.

02. HTML

HTML 입니다. css에서 작업을 display : flex 으로 작업을 할 예정이기 때문에 구조를 잘 잡아야 합니다.

    <section id="textTyle02" class="text__wrap Sans section box__gm">
        <div class="text__font">
            <p class="top_font">CUTE CAT</p>
            <h2>고양이가<br> 깜찍하다고</h2>
            <p class="bottom_font">그 이유를 한번씩 알아봅시다 <br>
            이유를 알 수록 빠져들거에요.</p>
        </div>
        <div class="text__inner">
            <div class="box__twx01">
                <article class="twwt">
                    <span class="img__svg img01"></span>
                    <h3 class="text__title ">귀가 쫑긋 거린다</h3>
                    <p class="text__desc">쫑긋 거리는 귀는 만지면 만질 수록 짜증을 나타내지만 
                        그래도 그게 너무 귀여워서 참을 수 없다 뒤집으면 팔랑거려요</p>
                </article>
                <article class="twwt">
                    <span class="img__svg img02"></span>
                    <h3 class="text__title ">발바닥이 말랑거린다</h3>
                    <p class="text__desc">고양이의 발바닥은 마치 라이크 젤리이다. 그 젤리를 만져보았나요?
                         맬렁맬렁하지만 역시 바닥을 딛기위해 쪼금 단단함.. 최고.</p>
                </article>
            </div>
            <div class="box__twx02">
                <article class="twwt">
                    <span class="img__svg img03"></span>
                    <h3 class="text__title ">털이 부드럽다</h3>
                    <p class="text__desc">고양이는 아주 보드라운 털을 말랑거리는 살 위에 덮어져있다. 
                        한번도 만져보지 못한 사람은 있어도 한번만 만지는 사람은 없다</p>
                </article>
                <article class="twwt">
                    <span class="img__svg img04"></span>
                    <h3 class="text__title ">은근히 집사를 좋아한다</h3>
                    <p class="text__desc">우리집 애기는 내가 있으면 관심없는 척 반경 1m이내에 있는데 
                        내가 오면 후다닥 달려와서 이제 왔냐고 화를 낸다...</p>
                </article>
            </div>
        </div>
    </section>

03. css

공통된 요소가 있으므로 그것을 제외한 뒤 작성하였습니다.

    .text__font {
        padding-right: 100px;
        
    }
    .text__font > h2 {
        font-size: 50px;    
        text-align-last: left;
        font-weight: bold;
        width: 255px;
        margin-bottom: 20px;

    }
    .text__font .top_font {
        width: 180px;
        height: 26px;
        border-radius: 50px;
        /* padding: 5px 48px; */
        background-color: #bfbbf3;
        color: #fff;
        text-align: center;
        line-height: 26px;
        margin-bottom: 20px;
    }

    .text__font .bottom_font {
        font-weight: 500;
        text-align: left;
        width: 255px;
        font-size: 18px;
    }


    /* text__inner */
    .text__inner {
        display: flex;
        flex-wrap: wrap;
        
    }

    .box__twx01 {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        margin-bottom: 20px;
    }
    .box__twx02 {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;    
    }

    /* twwt  */
    .twwt {
        width: 373px;
        height: 211px;
        margin-right: 20px;
        padding: 20px;

        display: flex;
        flex-direction: column;
    }
    .twwt:hover {
        background-color: #f5f5f5;
    }

    .twwt .img__svg {
        height: 60px;
        width: 60px;
        border-radius: 50%;
        background-color: #666;
        margin-bottom: 10px;

        background-size: 600px;
        background: url(../site_img/Group\ 5.svg) no-repeat;
    }
    .text__inner .img01 {
        background-position: -100px;
    } 

    .text__inner .img02 {
        background-position: -300px;
    }
    .text__inner .img03 {
       
    }
    .text__inner .img04 {
        background-position: -500px;
    }

    .twwt .text__title {
        font-size: 24px;
        font-weight: 500;
        text-align: left;
        margin-bottom: 10px;
    }
    .twwt .text__desc {
        font-size: 18px;
        color: #666;
        line-height: 1.4;
        font-weight: 300;
        text-align: left;
        width: 333px;
    }
728x90

'사이트 보기' 카테고리의 다른 글

텍스트 / 이미지 사이트  (6) 2022.09.01
텍스트 사이트 03  (5) 2022.08.31
텍스트 사이트 01  (3) 2022.08.31
이미지 유형 03  (5) 2022.08.21
Imge type 02  (3) 2022.08.17

댓글


고양이 고양이
고양이 고양이
고양이 고양이