CSS
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@200&display=swap");
* {
font-family: "Noto Sans KR", sans-serif;
text-decoration: none;
}
a {
text-decoration: none !important;
color: black;
}
a:link {
color: black;
}
a:visited {
color: black;
}
a:hover {
color: orangered;
}
a:active {
color: black;
}
.nav-item:hover {
background-color: orangered;
}
.nav-item:hover > a {
color: aliceblue;
}
.image-wrapper {
width: 100%;
text-align: center;
}
.image {
max-width: 100%;
height: auto;
transition: all 0.2s linear;
}
.image:hover {
transform: scale(1.1);
}
.video-wrapper {
width: 100%;
text-align: center;
width: 100%;
height: 500px;
overflow: hidden;
margin: 0px auto;
position: relative;
}
.video {
width: 100%;
width: 100%;
height: auto;
}
.dropdown:hover .dropdown-menu {
display: block;
margin-top: 0;
}
#txt {
font-size: 200%;
text-align: justify;
position: absolute;
top: 50%;
width: 100%;
}
.p_txt {
color: antiquewhite;
text-align: center;
color: #ffffff;
}
.han_txt {
color: rgb(12, 107, 114);
}
.hwa_txt {
color: seagreen;
}
footer {
background-color: cornflowerblue;
height: 100px;
}
#for_float::after {
content: "";
display: block;
clear: both;
}
.business_part {
width: 100%;
text-align: center;
float: left;
width: 24.5%;
}
.news_part {
width: 100%;
text-align: center;
float: left;
width: 33%;
}
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300&display=swap"
rel="stylesheet"
/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"
></script>
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"
crossorigin="anonymous"
></script>
<title>Hanhwa</title>
</head>
<body>
<div class="col-10" style="margin: 0 auto">
<header>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="https://www.hwenc.co.kr/"
><img src="./image/hanhwa.png" alt="hanhwa" style="width: 150px"
/></a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
부문소개
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="">회사개요</a>
</li>
<li>
<a class="dropdown-item" href="">회사연혁</a>
</li>
<li>
<a class="dropdown-item" href="">오시는 길</a>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
사업분야
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="">건축사업</a>
</li>
<li>
<a class="dropdown-item" href="">주택사업</a>
</li>
<li>
<a class="dropdown-item" href="">토목사업</a>
</li>
<li>
<a class="dropdown-item" href="">플랜트사업</a>
</li>
<li>
<a class="dropdown-item" href="">마스터피스</a>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
지속가능경영
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="">윤리경영</a>
</li>
<li>
<a class="dropdown-item" href="">상생경영</a>
</li>
<li>
<a class="dropdown-item" href="">안전녹색경영</a>
</li>
<li>
<a class="dropdown-item" href="">품질경영</a>
</li>
<li>
<a class="dropdown-item" href="">사회공헌</a>
</li>
<li>
<a class="dropdown-item" href="">기술제안센터</a>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
홍보센터
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="">뉴스룸</a>
</li>
<li>
<a class="dropdown-item" href="">소셜채널</a>
</li>
<li>
<a class="dropdown-item" href="">홍보자료</a>
</li>
<li>
<a class="dropdown-item" href="">CI / BI</a>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
인재채용
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="">인재상</a>
</li>
<li>
<a class="dropdown-item" href="">직무소개</a>
</li>
<li>
<a class="dropdown-item" href="">인사제도</a>
</li>
<li>
<a class="dropdown-item" href="">채용정보</a>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
고객센터
</a>
<ul class="dropdown-menu">
<li>
<a class="dropdown-item" href="">고객문의</a>
</li>
<li>
<a class="dropdown-item" href="">사이버신문고</a>
</li>
<li>
<a class="dropdown-item" href="">공지사항</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<section class="image-wrapper" id="for_float">
<h2 style="text-align: justify"><strong>사업분야</strong></h2>
<div class="business_part">
<a href="">
<img class="image" src="./image/h_icon (1).png" alt="1" />
<h4><b>주택사업</b></h4>
</a>
</div>
<div class="business_part">
<a href="">
<img class="image" src="./image/h_icon (2).png" alt="2" />
<h4><b>건축사업</b></h4>
</a>
</div>
<div class="business_part">
<a href="">
<img class="image" src="./image/h_icon (3).png" alt="3" />
<h4>
<b>플랜트사업</b>
</h4>
</a>
</div>
<div class="business_part">
<a href="">
<img class="image" src="./image/h_icon (4).png" alt="4" />
<h4><b>토목사업</b></h4>
</a>
</div>
</section>
<section class="image-wrapper" id="for_float">
<h2 style="text-align: justify"><strong>뉴스룸</strong></h2>
<div class="news_part">
<a href="">
<img class="image" src="./image/news1.jpg" alt="1" />
<h5>
㈜한화 건설부문, <br />
파나시아와 바이오가스 활용 수소생산 업무협약 체결
</h5>
</a>
<span>2022.08.12</span>
</div>
<div class="news_part">
<a href="">
<img class="image" src="./image/news2.jpg" alt="2" />
<h5>
포레나 제주에듀시티 견본주택, <br />
‘예술공간’으로 탈바꿈
</h5>
</a>
<span>2022.11.14</span>
</div>
<div class="news_part">
<a href="">
<img class="image" src="./image/news3.jpg" alt="3" />
<h5>
(주)한화 건설부문, <br />
‘BIM AWARD 2022’ 최우수상 수상
</h5>
</a>
<span>2022.12.22</span>
</div>
</section>
<section class="video-wrapper">
<video
class="video"
src="./image/hanhwa.mp4"
loop
autoplay
muted
></video>
<div id="txt" class="image">
<p class="p_txt">
혁신을 넘어 <br />
플랫폼으로 <br />
<span class="han_txt"><b>한</b></span
><span class="hwa_txt"><b>화</b></span>
</p>
</div>
</section>
<section class="image-wrapper">
<img class="image" src="./image/hanhwa (1).jpg" alt="hanhwaMain" />
</section>
<section class="image-wrapper">
<img class="image" src="./image/hanhwa (2).jpg" alt="hanhwaMain" />
</section>
<section class="image-wrapper">
<img class="image" src="./image/hanhwa (3).jpg" alt="hanhwaMain" />
</section>
<section class="image-wrapper">
<img class="image" src="./image/hanhwa (4).jpg" alt="hanhwaMain" />
</section>
</main>
<footer>
<div></div>
</footer>
</div>
</body>
</html>
Image