공부기록/html

html 실습

jhs0129 2021. 8. 9. 14:11
320x100
반응형

home.html

<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300&display=swap" rel="stylesheet">
        <link href="style.css" rel="stylesheet">
    </head>
    <body>
       <div class="intro">
           <div class="header">
               <div class=search>
                    <form>
                        <input type="search" placeholder="Search">
                        <span>검색</span>
                    </form>
               </div>
                <ul class="navi">
                    <li><a href="#">HOME</a></li>
                    <li><a href="#link_main">ABOUT</a></li>
                    <li><a href="#link_service">SERVICE</a></li>
                    <li><a href="#link_contact">CONTACT</a></li>
                </ul>   
           </div>
           <!-- header finish search form and naivigator -->
           <div class="intro_text" id="link_intro">
                <h1 class="content48">총알오징어, 세마리에 만원</h1>
                <h4 class="content20">우리는 전기를 이용해 실수인척 새끼 오징어를 불법 포획합니다</h4>
           </div>
        </div>
        <!-- intro finish -->
        <ul class="detail">
            <li>
                <div>
                    <div class="content20">
                        지금까지 해먹은 돈
                    </div>   
                    <div class="content24">
                        $128,021
                    </div>
                </div>
            </li>
            <li>
                <div>
                    <div class="content20">
                        씨를 말린 오징어 마릿수
                    </div>   
                    <div class="content24">
                        93,234
                    </div>
                </div>
            </li>
            <li>
                <div>
                    <div class="content20">
                        최종 목표 마릿수
                    </div>   
                    <div class="content24">
                        100,000+
                    </div>
                </div>
            </li>
            <li>
                <div>
                    <div class="content20">
                        와사비 간장
                    </div>   
                    <div class="content24">
                        57,221,084
                    </div>
                </div>
            </li>
            
            
        </ul>
        
        <div class="main" id="link_main">
            <h1>ABOUT</h1>
            <h4 class="content20">우리는 재규어처럼 재빠르게, 남들과는 다르게 오징어를 낚아챕니다</h4>
            <ul class="icon">
                <li>
                    <div>
                        <img src="image/image3.svg">
                    </div>
                    <div class="content18">
                        치밀한 계획
                    </div>
                    <div class="content14">
                        우리는 계획적으로 단속을 피해서<br>
                         치밀하게 일을 처리합니다
                    </div>
                    <div class="button">
                        More
                    </div>
                </li>
                <li>
                    <div>
                        <img src="image/image1.svg">
                    </div>
                    <div class="content18">
                        은신 기술자 확보
                    </div>
                    <div class="content14">
                        우리는 언제든지 환술에 걸린것처럼<br>
                         순식간에 사이에서 사라질 수 있습니다.
                    </div>
                    <div class="button">
                        More
                    </div>
                </li>
                <li>
                    <div>
                        <img src="image/image2.svg">
                    </div>
                    <div class="content18">
                        한번에 쓸어담기
                    </div>
                    <div class="content14">
                        다량의 오징어를 한번에 싹쓸이 하여<br>
                        시중에 유통할 수 있는 기술력이 있습니다
                    </div>
                    <div class="button">
                        More
                    </div>
                </li>
            </ul>
        </div>
        <!-- main -->
        <div class="service" id="link_service">
            <h1>SERVICE</h1>
            <div class="content20">엄격한 유통과정으로 까다로운 미식가들에게 납품하고 있습니다</div>
            <div class="text">
                <div class="image">
                    <img src="image/food.png">
                </div>
                <div>
                    <div class="content24">이것이 오징어야, 문어야?</div>
                    <div class="main_text">
                        이것이 오징어인지 문어인지 헷갈리시는 분들도 있을거에요.<br>
                        왜냐면 이것은 그냥 Pixabay에서 오징어라고 검색했더니 나온 이미지인데<br>
                        오징어 같은 아무것이나 검색이 된것 같아요. <br>
                        <br>
                        총알오징어는, <br>
                        사실 어떤 특정한 품종을 가진 게 아니랍니다. <br>
                        <br>
                        우리가 사먹지 말아야 한다는 것이죠. <br>
                        불과 약 5년전만 해도 시장에 가면 냉동오징어 한마리에 천원이면 샀는데, <br>
                        이젠 두마리에 7~8천원씩 하니, 더이상 서민음식이 아니게 된거죠. <br>
                        얼마전에는 가격을 비교해 보았더니 마른오징어를 기준으로 같은 그람수에 <br>
                        같은 가격이 나올 정도로 천정부지로 오징어값이 치솟았답니다. <br>
                        <br>
                        그런 오징어, 못생겼다고 놀리지 말고 이제 소중하게 대해주어야 하지 않을까요?
                    </div>
                </div> 
            </div>
        </div>
        <!-- service -->
        <div class="contact" id="link_contact">
            <ul>
                <li>
                    <div>
                        <h1>CONTACT</h1>
                    </div>
                    <div>
                        우리의 파트너십을 신청하거나, 고객이 되어주세요
                    </div>
                    <div class="button">
                        더 알아보기
                    </div>
                </li>
                <li>

                </li>
            </ul>
        </div>
        <footer>
            <div class="logo1">LOGO</div>
            <div class="logo2">
                CEO. jhs
                <br>Addr. 서울시
                <br>Fax/Tel. 010-1234-5678
                <br>COPYRIGHT 2019.ALL RIGHT RESERVED.
            </div>
        </footer>
    </body>
</html>

style.css

*{
    font-family: 'Noto Sans KR', sans-serif;
    list-style: none;
    text-decoration: none;
    border-collapse: collapse;
    margin: 0px;
    padding: 0px;
    color: #000;
}
.content48{
    font-size: 48px;
    font-weight: 100;
}
.content20{
    font-size: 20px;
    font-weight: 10;
}
.content24{
    font-size: 24px;
    font-weight: 50;
}
.content18{
    font-size: 18px;
    font-weight: 10;
}
.content14{
    font-size: 14px;
    font-weight: 10;
}
.intro{
    background-image:url("image/intro.png");
    height: 718px;
}
.header{
    display: flex;
    width: 1280px;
    height: 86px;
    margin: auto;
}
.search{
    width: 300px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    margin-top: 24px;
    border-radius: 5px;

}
.search form input{
    border: none;
    background: rgba(0, 0, 0, 0.0);
    width: 260px;
    height: 40px;
    color: #fff;
    padding: 6px;
}
.search form span{
    width: 40px;
    color: #fff;
    cursor: pointer;
}
.navi{
    display: flex;
    width: 980px;
    justify-content: flex-end;
    line-height: 86px;
}
.navi li{
    margin-left: 84px;
}
.navi li a{
    color: #fff;
}
.intro_text{
    text-align: center;
    margin: 231px auto auto auto;
}
.intro_text h1,
.intro_text h4{
    color: #fff;
}
.detail {
    position: relative;
    top: -66px;
    display: flex;
    width: 1280px;
    margin: auto;
    background: white;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.5);
}
.detail li{
    flex: 1;
    height: 132px;
}
.detail >li> div{
    color: #000;
    text-align: center;
    height: 57px;
    margin-top: 37px;
}
.detail li:not(:last-child)>div{
    border-right: 1px solid rgba(126, 124, 124, 0.5);
}
.main{
    background: #f1f2f3;
    width: 100%;
    height: 601px;
    margin-top: -132px;
}
.main >h1{
    width: 144px;
    height: 57px;
    font-size: 48px;
    font-weight: 200;
    padding-top: 116px;
    padding-left: 878px;
    color: #000;
}
.main> .content20{
    width: 600px;
    height: 24px;
    padding-top: 3px;
    padding-left: 688px;
    color:#000;
}
.icon{
    display: flex;
    width: 1280px;
    margin: 49px auto auto auto;
}
.icon> li{
    height: 302px;
    flex: 1;
    background: white;
}
.icon> li:not(:last-child){
    margin-right: 20.6px;
}
.icon> li{
    text-align: center;
}
.icon> li> div> img{
    margin-top: 36px;
}
.icon .button{
    width: 100px;
    height: 30px;
    margin: 25px auto auto auto;
    background: #2f7af4;
    text-align: center;
    line-height: 30px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.service{
    width: 100%;
    height: 659px;
    background: #fff;
}
.service> h1{
    width: 168px;
    height: 57px;
    font-size: 48px;
    font-weight: 50;
    color: #000;
    margin: 50px auto auto 876px;
}
.service> .content20{
    width: 550px;
    height: 24px;
    font-size: 20px;
    font-weight: 20;
    color: #000;
    margin: 3px auto auto 713px;
}
.text{
    width: 1280px;
    height: 426.5px;
    margin: 49px auto auto auto;
    display: flex;
}
.text> div{
    flex: 1;
}
.text> .image{
    padding: 20px;
}
.text .content24{
    margin-bottom: 27px;
    font-weight: 1000;
}
.text .main_text{
    font-size: 16px;
}
.contact{
    width: 100%;
    height: 420px;
    background-image: url("image/contact.png");
}
.contact>ul{
    display: flex;
    padding-top: 138px;
}
.contact>ul>li{
    flex:1;
    text-align: center;
}
.contact>ul>li>div>h1,
.contact>ul>li>div{
    color: #fff;
}
.contact>ul>li>.button{
    border: 1px solid #fff;
    width: 220px;
    height: 40px;
    margin: 10px auto;
    cursor: pointer;
    line-height: 40px;
}
footer{
    height: 244px;
    display: flex;
    background: #1f1f1f;
}
footer>.logo1{
    flex:3;
    text-align: center;
    padding-top: 95px;
    color: #fff;
    font-size: 48px;
}
footer>.logo2{
    flex: 9;
    color: #fff;
    padding-top: 51px;
    font-size: 20px;
    margin-left: 207px;
}

home.html
0.01MB
style.css
0.00MB

320x100
반응형