210706 UIUX WebDesign CSS 연습_64_3(index.html -> main.css)

ITisIT210·2021년 7월 10일
0

CSS

목록 보기
87/93
post-thumbnail
@charset "uft-8";

@keyframes iconBG {
    0% {
        background-position: 70px 35px;
    }

    50% {
        background-position: 70px 30px;
    }

    100% {
        background-position: 70px 35px;
    }
}

/* header 영역 */
#header {
    border-top: 5px solid #009132;
}

#header .inner {
    height: 170px;
    position: relative;
    z-index: 999;
}

#header h1 {
    position: absolute;
    left: 50%;
    /* left: calc(50% - 101px); */
    /* transform: translateX(-50%); */
    top: 35px;
}

#header .util {
    position: absolute;
    right: 0px;
    top: 40px;
}

#header .util li {
    padding-left: 20px;
    float: left;
    position: relative;
}

#header .util li:not(:first-child):before {
    content: "";
    width: 1px;
    height: 10px;
    background: #ddd;
    position: absolute;
    left: 9px;
    top: 8px;
    transform: skewX(-10deg);
}

#header .util li a {
    color: #999;
    transition: color 0.5s;
}

#header .util li a:hover {
    color: #000;
}

/* GNB 영역 */
#header .gnb {
    width: 80%;
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
}

#header .gnb > li {
    float: left;
    width: calc(100% / 5);
}

#header .gnb > li > a {
    padding: 20px 0px;
    display: block;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

#header .gnb > li:hover > a {
    color: #009132;
}

/* depth2 영역*/
#header .gnb > li:hover .dp2 {
    display: block;
}

#header .dp2 {
    padding: 15px 0px;
    display: none;
    background: #009132;
}

#header .dp2 li a {
    padding: 5px 0px;
    display: block;
    color: #fff;
    text-align: center;
}

#header .dp2 li a:hover {
    color: #fdcc31;
}


/* Banner 영역 */
#mainBanner {
    height: 500px;
    background: url("../images/main_banner.png") no-repeat center top;
    position: relative;
}

#mainBanner .quickMenu {
    position: absolute;
    left: 50%;
    bottom: 0px;
}

#mainBanner .quickMenu li {
    float: left;
}

#mainBanner .quickMenu li a {
    padding: 30px 70px 30px 120px;
    display: block;
    font-size: 24px;
    font-weight: 600;
}

#mainBanner .quickMenu li:nth-child(1) a {
    background: #fdcc31 url("../images/icon_map.png") no-repeat 70px 35px;
    border-radius: 30px 0px 0px 0px;
}

#mainBanner .quickMenu li:nth-child(2) a {
    color: #fff;
    background: #009223 url("../images/icon_franchise.png") no-repeat 70px 35px;
    border-radius: 0px 0px 30px 0px;
}

#mainBanner .quickMenu li a:hover {
    animation: iconBG 0.8s infinite;
}

/* Menu 영역 */
#menu {
    padding: 150px 0px;
}

#menu h2 {
    padding: 30px 0px 50px 20px;
    font-family: "Poppins";
    font-size: 40px;
    font-weight: 900;
    position: relative;
}

#menu h2::before {
    content: "";
    width: 60px;
    height: 60px;
    background: #fdcc31;
    position: absolute;
    left: 0px;
    top: 0px;
    border-radius: 50px 50px 0px 50px;
    z-index: -1;
}

#menu ul li {
    width: calc(100% / 4);
    float: left;
    text-align: center;
    transition: transform 0.5s;
}

#menu ul li:hover {
    transform: scale(1.2, 1.2);
}

#menu ul li a {
    display: block;
    position: relative;
}

#menu ul li a::before {
    width: 98px;
    height: 98px;
    content: "";
    background: url("../images/btn_more.png") no-repeat center center;
    position: absolute;
    left: calc(50% - 45px);
    top: 90px;
    transition:  opacity 0.5s;
    opacity: 0;
}

#menu ul li:hover a::before { /* li에 hover 했을 때 && a의 before 일 때 */
    opacity: 1;
}

#menu dl dt {
    font-size: 20px;
    font-weight: 600;
}

#menu dl dd {
    padding-top: 10px;
    color: #999;
}

/* Franchise 영역 */
#franchise {
    padding: 100px 0px;
    background: url("../images/franchise_bg.jpg") no-repeat center center fixed;
    background-size: cover;
    text-align: center;
    color: #fff;
}

#franchise h2 {
    padding-bottom: 50px;
    font-family: "Poppins";
    font-size: 40px;
    font-weight: 900;
}

#franchise .comment {
    opacity: 0.7;
}

#franchise .btn a {
    margin-top: 20px;
    padding: 10px 50px;
    display: inline-block;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    transition: color 0.5s, background 0.5s;
}

#franchise .btn a:hover {
    color: #000;
    background: #fff;
}

/* Guide 영역 */
#guide {
    padding: 100px 0px;
    background: url("../images/bg_contents.gif");
}

#guide .inner div {
    transition: transform 0.5s, box-shadow 0.5s;
}

#guide h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

#guide .btn a {
    margin-top: 30px;
    padding: 10px 30px;
    display: inline-block;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    transition: color 0.5s, background 0.5s;
}

#guide .btn a:hover {
    color: #000;
    background: #fff;
}

#guide .method {
    padding: 50px;
    width: 400px;
    height: 300px;
    float: left;
    background: #01a5e2 url("../images/bg_method.png") no-repeat 180px 80px;
    border-radius: 30px 0px 30px 30px;
}

#guide .inner div:hover {
    transform: translate(10px, 10px);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

#guide .history {
    padding: 50px 50px 50px 420px;
    width: 770px;
    height: 300px;
    float: right;
    background: #ff8201 url("../images/bg_history.jpg") no-repeat 0px 0px;
    border-radius: 30px 0px;
}

/* footer 영역*/
#footer {
    padding: 50px 0px;
    background: #333;
}

#footer .inner {
    height: 120px;
    position: relative;
}

#footer .footerLink {
    position: absolute;
    left: 0px;
    top: 0px;
}

#footer .footerLink li {
    float: left;
}

#footer .footerLink li a {
    padding-right: 20px;
    display: block;
    color: rgba(255, 255, 255, 0.5);
}

#footer address {
    position: absolute;
    left: 0px;
    top: 50px;
    color: rgba(255, 255, 255, 0.3);
}

#footer .copy {
    position: absolute;
    left: 0px;
    top: 75px;
    color: rgba(255, 255, 255, 0.3);
}

#footer .sns {
    position: absolute;
    right: 0px;
    top: 0px;
}

#footer .sns li {
    padding-left: 10px;
    float: left;
    opacity: 0.5;
    transition: opacity 0.5s;
}

#footer .sns li:hover {
    opacity: 1;
}

/* goTop 영역 */
.goTop {
    display: block;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.3) url("../images/gotop.png") no-repeat center center;
    text-indent: -9999px;
    position: fixed;
    right: 50px;
    bottom: 50px;
    border-radius: 50px;
}
profile
Engineering is the closest thing to magic that exists in the world.

0개의 댓글

관련 채용 정보