html
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width = 1260" />
<meta name="desciption" content="OUTBACK STEAKHOUSE" />
<title>아웃백 스테이크 하우스(OUTBACK STEAKHOUSE)</title>
<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@100..900&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,0,0"
/>
<link rel="stylesheet" href="./common.css" />
<link rel="stylesheet" href="./main.css" />
</head>
<body>
<div id="skip_navi">
<a href="#container">본문 바로가기</a>
</div>
<div id="wrap">
<header id="header">
<div class="inner">
<h1 class="logo">
<a href="index.html">
<img src="images/logo_white_type_02.png" alt="OUTBACK" />
</a>
</h1>
<nav class="gnb_wrap">
<ul class="gnb">
<li>
<a href="#">BRAND</a>
</li>
<li>
<a href="#">MENU</a>
</li>
<li>
<a href="#">MEMBERSHIP</a>
</li>
<li>
<a href="#">BENEFIT</a>
</li>
<li>
<a href="#">STORE</a>
</li>
</ul>
</nav>
</div>
</header>
<main id="container">
<section class="main_slider">
<h2 class="blind">main banner</h2>
<a href="#"
><img src="images/back_img1.jpeg" alt="bon & bon"
/></a>
</section>
</main>
</div>
</body>
</html>
css
:root {
--point-color1: #be161e;
--point-color2: #c7b19b;
--txt-color-400: #999;
--txt-color-500: #666;
--txt-color-600: #222;
}
#wrap {
min-width: 1260px;
height: 1500px;
}
#header {
min-width: 1260px;
position: fixed;
left: 0;
top: 0;
background: rgba(52, 52, 54, 1);
width: 100%;
z-index: 9999;
}
#header .inner {
width: 1180px;
height: 100px;
margin: 0 auto;
display: flex;
align-items: center;
}
#header .gnb_wrap {
margin-left: 80px;
}
#header .gnb {
display: flex;
}
#header .gnb > li {
padding: 0 15px;
}
#header .gnb > li > a {
display: block;
color: #fff;
font-size: 19px;
font-family: 'Akrobat', sans-serif;
line-height: 100px;
letter-spacing: 0.12em;
position: relative;
}
#header .gnb > li > a::after {
content: '';
position: absolute;
left: 0;
bottom: 20px;
width: 100%;
display: block;
height: 3px;
background: var(--point-color1);
display: none;
}
#header .gnb > li:hover > a::after {
display: block;
}
#container {
padding-top: 100px;
}
.main_slider {
overflow: hidden;
position: relative;
height: 900px;
}
.main_slider a {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%);
}
.main_slider img {
max-width: none;
}
15. 한화 생명(큰 이미지 & 꾸미는 이미지, 리뉴얼 전 주소)구현
html
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width = 1140" />
<meta name="desciption" content="OUTBACK STEAKHOUSE" />
<title>한화 생명</title>
<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@100..900&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,0,0"
/>
<link rel="stylesheet" href="./common.css" />
<link rel="stylesheet" href="./main.css" />
</head>
<body>
<div id="skip_navi">
<a href="#container">본문 바로가기</a>
</div>
<div id="wrap">
<main id="container">
<section class="main_recommand">
<div class="inner">
<div class="tit_wrap">
<h2>01월의 추천상품</h2>
<p>한화생명 온슈어가 드리는 추천상품입니다.</p>
</div>
<ul class="recommand">
<li>
<a href="#">
<em>저축보험</em>
<p>저축보험 vs 은행적금 어떤걸 가입할까?</p>
</a>
</li>
<li>
<a href="#">
<em>내게 맞는 보험 찾기</em>
<p>
보험 가입이<br />고민 되시는 분께<br /><strong
>꼭 맞는 보험</strong
>을<br />찾아드립니다
</p>
</a>
</li>
</ul>
</div>
</section>
</main>
</div>
</body>
</html>
css
:root {
--point-color1: #eb6242;
--point-color2: #c7b19b;
--txt-color-400: #999;
--txt-color-500: #333;
--txt-color-600: #222;
}
#wrap {
min-width: 1140px;
height: 6000px;
}
.main_recommand {
height: 610px;
background: url(./images/mainBanner01.jpg) no-repeat center top / cover fixed;
border: 1px solid red;
padding-top: 61px;
}
.main_recommand .inner {
width: 1060px;
border: 1px solid blue;
margin: 0 auto;
}
.main_recommand .tit_wrap {
color: #fff;
border: 1px solid pink;
text-align: center;
}
.main_recommand .tit_wrap h2 {
font-size: 40px;
}
.main_recommand .tit_wrap p {
font-size: 18px;
}
.main_recommand .recommand {
display: flex;
justify-content: center;
margin-top: 30px;
}
.main_recommand .recommand li {
background: #fff;
width: 300px;
border-radius: 5px;
overflow: hidden;
}
.main_recommand .recommand li + li {
margin-left: 40px;
}
.main_recommand .recommand li:nth-child(1) {
background: #f0f0f0 url(./images/icon-top0102.png) no-repeat bottom right;
}
.main_recommand .recommand li:nth-child(2) {
background: #f0f0f0 url(./images/icon_searchResult.png) no-repeat bottom right;
}
.main_recommand .recommand a {
display: block;
height: 310px;
padding: 30px 25px;
}
.main_recommand .recommand em {
font-size: 16px;
position: relative;
padding-bottom: 20px;
display: block;
}
.main_recommand .recommand em::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 16px;
height: 3px;
background: var(--point-color1);
}
.main_recommand .recommand p {
font-size: 27px;
color: var(--txt-color-600);
margin-top: 10px;
line-height: 1.2;
}
.main_recommand .recommand strong {
color: var(--point-color1);
}