본문 바로가기
웹/CSS

[코딩 공부_59] the space project-2, 코딩하기

by BEE_0o0 2021. 4. 27.

<index.html>

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous">
<title>
    The Space
</title>
</head>
<body>
    <div class="wrap">
        <div class="inner">
            <!-- header -->
            <header>
                <div class="inner">
                    <ul class="login">
                        <li><a href="#">로그인</a></li>
                        <li><a href="#">회원가입</a></li>
                        <li><a href="#">ENG</a></li>
                    </ul>
                    <br>
                    <a href="#"><h1 class="logo">
                        <i class="fas fa-globe-asia"></i>The Space
                    </a>
                    </h1>
                    <ul class="gnb">
                        <li><a href="#">회사소개</a></li>
                        <li><a href="#">제품소개</a></li>
                        <li><a href="#">고객지원</a></li>
                    </ul>
                </div>
            </header>
            <!-- section.main_visual -->
            <section class="main_visual">
                <div class="inner">
                    <div class="photo">
                        <img src="./src/image/main_visual_earth.jpg" alt="">
                    </div>
                    <div class="content">
                        <h2>세계로 뻗어나가는 <br>
                            디지털 트랜스포메이션 솔루션 </h2>
                        <p>
                            시시각각 변하는 현대사회에 최적화된 디지털 상품 정보 관리 시스템 보험, <br>
                            금융 산업의 대표 기업이 선택한 Space Product를 확인해보세요
                        </p>
                        <a href="#"><div class="add">더보기</div></a>
                    </div>
                </div>
            </section>
            <!-- section.about -->
            <section class="about">
                <div class="inner">
                    <div class="photo">
                        <img src="./src/image/about_photo_1.png" alt="">
                        <img src="./src/image/about_photo_2.png" alt="">
                    </div>
                    <div class="desc">
                        <div class="line"></div>
                        <h2>Space Product</h2>
                        <p>
                            Space Product는 상품의 기준 정보와 업무 규칙을 통합 관리하는 디지털 상품 정보 관리 시스템으로 상품 기획, 개발, 릴리스, 운영 및 판매 분석에 이르는 상품 라이프 사이클을 더 효율적으로 수행할 수 있도록 합니다.
                            강력한 자체 개발 룰 엔진을 기반으로 기업 내∙외부 환경 변화에 신속한 대응이 가능한 상품 시스템의 구축이 가능해집니다.
                        </p>
                    </div>
                </div>
            </section>
            <!-- item -->
            <section class="item">
                <div class="title">
                    <h1>The Space는 혁신적입니다</h1>
                </div>
                <ul class="work">
                    <a href="#">
                        <li class="cardItem">
                            <img src="./src/image/item_photo_1.png" alt="">
                            <h3>금융</h3>
                            <p>
                                급변하는 금융 시장에서 기업이 시장 경쟁력을 강화할 수 있게 최적의 솔루션을 제안하겠습니다.
                            </p>
                        </li>
                    </a>
                    <a href="#">
                        <li class="cardItem">
                            <img src="./src/image/item_photo_2.png" alt="">
                            <h3>제조</h3>
                            <p>
                                기업은 방대한 데이터를 처리하며 변화에 신속하게 대응할 수 있는 시스템을 갖추어야 합니다.
                            </p>
                        </li>
                    </a>
                    <a href="#">
                        <li class="cardItem">
                            <img src="./src/image/item_photo_3.png" alt="">
                            <h3>교육</h3>
                            <p>
                                네트워크화를 통한 글로벌 디지털화와 함께 새로운 변화를 맞이하고 있습니다.
                            </p>
                        </li>
                    </a>
                </ul>
            </section>
            <!-- quick_menu -->
            <section class="quick_menu">
                <div class="inner">
                    <ul class="work-menu">
                        <a href="#"><li>
                            <i class="fas fa-house-user"></i>
                            <h3>솔루션센터</h3>
                        </li></a>
                        <a href="#"><li>
                            <i class="fas fa-video"></i>
                            <h3>리소스센터</h3>
                        </li></a>
                        <a href="#"><li>
                            <i class="far fa-newspaper"></i>
                            <h3>뉴스</h3> 
                        </li></a>
                        <a href="#"><li>
                            <i class="fas fa-user-friends"></i>
                            <h3>고객사례</h3> 
                        </li></a>
                    </ul>
                </div>
            </section>
        </div>
        <!-- footer -->
        <footer>
            <div class="inner">
                <ul class="info">
                    <li class="footer-title">기업소개</li>
                    <li><a href="#">뉴스</a></li>
                    <li><a href="#">IR</a></li>
                    <li><a href="#">HR</a></li>
                </ul>
                <ul class="contact">
                    <li class="footer-title">솔루션</li>
                    <li><a href="#">솔루션 컨설팅</a></li>
                    <li><a href="#">솔루션 구축</a></li>
                    <li><a href="#">메인터넌스</a></li>
                </ul>
                <ul class="service">
                    <li class="footer-title">라이브러리</li>
                    <li><a href="#">고객사례</a></li>
                    <li><a href="#">리소스센터</a></li>
                    <li><a href="#">기타</a></li>
                </ul>
                <p class="copy">
                    사업자등록번호: 123-12-1234 | 이름 : 이예빈 | H.P: 010-6552-3304 <br>
                    Copyright © chaos Corp. All rights reserved.
                </p>
            </div>
        </footer>
        <!-- <div class="nav-bar">
            <input type="checkbox" id="mainMenu">
            <nav class="huge">
                <label for="mainMenu">sns</label>
                <ul class="sub">
                    <a href="#"><li>ins</li></a>
                    <a href="#"><li>fab</li></a>
                    <a href="#"><li>yut</li></a>
                </ul>
            </nav>
        </div> -->
        <a href="#">
            <div class="btnTop">
                top
            </div>
        </a>
    </div>
</body>
</html>

 

<index.css>

<style>
@charset "utf-8";
@import url(./reset.css);
/* godo체 */
@font-face {
    font-family: 'Godo';
    font-style: normal;
    font-weight: 400;
    src: url('//cdn.jsdelivr.net/korean-webfonts/1/corps/godo/Godo/GodoM.woff2') format('woff2'), url('//cdn.jsdelivr.net/korean-webfonts/1/corps/godo/Godo/GodoM.woff') format('woff');
}
@font-face {
    font-family: 'Godo';
    font-style: normal;
    font-weight: 700;
    src: url('//cdn.jsdelivr.net/korean-webfonts/1/corps/godo/Godo/GodoB.woff2') format('woff2'), url('//cdn.jsdelivr.net/korean-webfonts/1/corps/godo/Godo/GodoB.woff') format('woff');
}
/* wrap */
.wrap {
    /* background: #000; */
    scroll-behavior: smooth;
}
.inner {
    transition: 1s;
    margin: 0 auto;
    padding: 2rem 0;
    /* background: var(--font-second-color); */
}
/* header */
header .inner {
    max-width: 1200px;
    background: rgba(0, 0, 0, 0);
}
header {
    background: rgb(0, 0, 0);
    color: #fff;
    width: 100%;
    height: 150px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}
header .inner {
    margin-top: 1.5rem;
    padding: 0;
}
header .logo {
    font-family: 'Godo';
    display: inline-block;
    height: 70px;
    font-weight: bold;
    font-size: 3rem;
}
header .logo .fas {
    margin-right: .5rem;
    animation: rotate-logo 10s 1s infinite forwards;
}
@keyframes rotate-logo {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(300deg);
    }
    
}
/* login */
header .login {
    display: inline-block;
    text-align: right;
    width: 100%;
    font-size: 0;
}
header .login li {
    display: inline-block;
    height: 30px;
    width: 100px;
    text-align: center;
    font-size: 1rem;
}
header .login li a {
    position: relative;
    height: 30px;
}
header .login li a:hover {
    color: var(--hover-color);
}
header .login li a:hover:after {
    width: 100%;
    transform: translateX(-50%);
    color: var(--hover-color);
}
header .login li a:active {
    color: var(--active-color);
}
header .login li a:hover:after {
    color: var(--active-color);
}
/* gnb */
header .gnb {
    font-family: 'Godo';

    width: 50%;
    font-size: 1.5rem;
    text-align: left;
    display: inline-block;
    margin-left: 3rem;
}
header .gnb li {
    height: 70px;
    width: 150px;
    text-align: center;
    padding: 25px;
    display: inline-block;
}
header .gnb li a {
    position: relative;
    height: 30px;
    padding-bottom: 0.4rem;
}
header .gnb li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    /* background: #000; */
    transition: all .5s;
}
header .gnb li a:hover {
    color: var(--hover-color);

}
header .gnb li a:hover:after {
    width: 100%;
    transform: translateX(-50%);
    background: var(--hover-color);
}
header .gnb li a:active {
    color: var(--active-color);

}
header .gnb li a:active:after {
    background: var(--active-color);
}
/* section.main_visual */
.main_visual {
    position: relative;
}
.main_visual .inner {
    width: 100%;
    height: 600px;
    display: inline-block;
}
.main_visual img {
    width: 100%;
    display: inline;
    /* height: 600px; */
}
.main_visual:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.541);
    width: 100%;
    height: 99%;
}
.main_visual .content {
    width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}
.main_visual .content h2 {
    font-size: 2.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    /* text-shadow: 0 0 20px black; */
}
.main_visual .content p {
    line-height: 1.8rem;
}
.main_visual .content .add {
    border: 1px solid #fff;
    width: 90px;
    height: 35px;
    line-height: 2rem;
    font-size: 0.8rem;
    margin-top: 2.1rem;
    display: inline-block;
    text-align: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.main_visual .content .add:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    z-index: -1;
    background: var(--hover-color);
    transition: .8s;
}
.main_visual .content .add:hover:before {
    width: 100%;
}
.main_visual .content .add:active:before {
    background: var(--acrive-color);
}
/* section.about */
.about {
}
.about .inner {
    position: relative;
    margin-top: 1rem;
    background: #fff;
    max-width: 1200px;
}
.about .line {
    width: 115px;
    height: 4px;
    background: #000;
    display: block;
    position: absolute;
    left: 500px;
    top: 90px;
}
.about .photo {
    /* position: relative; */
    padding: 1.7rem 0 1.7rem 1.7rem;
    max-width: 100%;
    text-align: center;
    display: inline-block;
}
.about .photo img:nth-of-type(1) {
    width: 85%;
}
.about .photo img:nth-of-type(2) {
    position: absolute;
    right: 390px;
    bottom: -20px;
    width: 40%;
}
.about .desc {
    margin-top: 2.2rem;
    display: inline-block;
    vertical-align: top;
    width: 42%;
}
.about .desc h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
}
.about .desc p {
    line-height: 1.7rem;
    /* display: inline-block; */
}
/* item-title */
.item .title {
    text-align: center;
    margin-top: 10rem;
    margin-bottom: 2rem;
}
.item .title h1 {
    display: inline-block;
    position: relative;
    font-size: 2rem;
    font-weight: bold;
    z-index: 1;
}
.item .title h1:after {
    content: '';
    position: absolute;
    left: -15px;
    bottom: 6px;
    /* right: 0; */
    z-index: -1;
    width: 100%;
    height: 15px;
    border-radius: 10px;
    margin: 0 15px;
    background: var(--bg-color);
}
/* item ul */
.work {
    width: 100%;
    /* position: absolute; */
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    text-align: center;
}
.work .cardItem {
    width: 300px;
    position: relative;
    display: inline-block;
    margin: 1rem;
}
.work .cardItem:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 98%;
    transition: .5s;
}
.work .cardItem:hover:before {
    background: rgba(0, 0, 0, 0.527);
}
.work .cardItem img {
    width: 300px;
}
.work .cardItem h3 {
    position: absolute;
    top: -20rem;
    left: 140px;
    transition: .5s;
    text-align: center;
    opacity: 0;
    color: #fff;
}
.work .cardItem:hover h3 {
    top: 30%;
    transform: translateY(-50%);
    left: 127px;
    font-weight: bold;
    font-size: 1.5rem;
    opacity: 1;
}
.work .cardItem p {
    position: absolute;
    bottom: -2.2rem;
    left: 25px;
    opacity: 0;
    transition: .5s;
    color: #fff;
    width: 250px;

}
.work .cardItem:hover p {
    width: 250px;
    bottom: 25%;
    left: 25px;
    opacity: 1;
}
/* quick_menu */
.quick_menu .inner {
    max-width: 1200px;
    text-align: center;
}
.quick_menu .work-menu {
    font-size: 0;
}
.quick_menu .work-menu li {
    display: inline-block;
    font-size: 1rem;
    width: 200px;
    text-align: left;
    box-shadow: 1px 1px 5px #000;
    margin: 1rem;
    border-radius: 10px;
    padding: 1rem;
    /* text-align: center; */
}
.quick_menu .work-menu i,
.quick_menu .work-menu h3 {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: bold;
}
.quick_menu .work-menu i{
    margin-left: 0.8rem;
    margin-right: 0.5rem;
}
.quick_menu .work-menu a:hover li {
    background: rgb(223, 221, 221);
}
.quick_menu .work-menu a:active li {
    background: var(--active-color);
}
/* footer */
footer {
    width: 100%;
    padding: 0;
}
footer .inner {
    background: #000;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 0;
}
footer ul {
    margin: 1.5rem;
    display: inline-block;
}
footer .copy {
    padding-bottom: 1rem;
    line-height: 1rem;
    font-size: 0.8rem;
    border-top: 1px solid #fff;
    padding-top: 1.2rem;
}
footer ul.info li a,
footer ul {
    width: 250px;
    line-height: 40px;
}
footer .footer-title {
    font-weight: bold;
}
footer ul li a:hover {
    text-decoration: underline;
}
footer .copy {
    line-height: 20px;
}
/* nav-bar */
/* input[id="mainMenu"] {
    display: none;
}
.huge {
    position: fixed;
    width: 50px;
    height: 50px;
    background: slategrey;
    right: 20px;
    bottom: 140px;
    transform: translate(100%);
    transition: .5s;
}
.huge label {
    position: absolute;
    top: 50px;
    right: 100%;
    width: 50px;
    height: 50px;
    background: slategrey;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
}
.huge label:hover,
.sub li a:hover {
    color: #000;
    background: #999;
}
.sub {
    display: inline-block;
    font-size: 0;
    width: 500px;
    height: 100px;
}
.sub li {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    display: inline-block;
    border-radius: 50%;
    background: slategrey;

} */
/* .sub li a {
    display: block;
    width: 30%; */
    /* height: 50px; */
    /* text-align: center;
    line-height: 50px; */
    /* margin-left: 2rem; */
/* }
input[id="mainMenu"]:checked + .huge {
    transform: translate(0);
} */
/* button */
.btnTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: slategrey;
    border-radius: 50%;
    line-height: 45px;
    text-align: center;
}
.btnTop:hover {
    background: rgb(149, 169, 189);
}
.btnTop:active {
    background: rgb(86, 97, 109);
}
</style>

<reset.css>

<style>
@charset "utf-8";
* {
    margin: 0;
    box-sizing: border-box;
}
ul {
    padding: 0;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
}
h1, h2, h3 {
    font-weight: normal;
    font-size: 1rem;
}
:root {
    --font-frist-color: #888;
    --font-second-color: #fff;
    --bg-color: #86ff00;
    --hover-color: rgba(212, 212, 212, 0.342);
    --active-color: rgba(92, 92, 92, 0.432);
}
</style>

너무 재미있었고 막히는 부분이 있을때 해결하면 너무너무 기분이 좋았다 

하도 오타 같은 곳에서 오류가 많이나서 오타를 어떻게 찾는지 대략 알 수 있었다 ㅎㅎ

 

댓글