19.아웃백 헤더(2단세로메뉴, white-space, nowrap, visiblity hidden 페이드 효과)
html
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width = 1260" />
<meta name="format-detection" content="telephone=no" />
<meta name="description" content="OUTBACK STEAKHOUSE" />
<title>아웃백 본앤본 프레스티지 스테이크 | 메뉴 | 아웃백</title>
<meta property="og:title" content="아웃백 스테이크하우스" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.outback.co.kr/" />
<meta
property="og:image"
content="https://www.outback.co.kr/asset/images/common/sns.jpg"
/>
<link rel="icon" href="./assets/images/favicon.ico?v=2" />
<meta property="og:description" content="OUTBACK STEAKHOUSE" />
<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="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat: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="./css/common.css" />
<link rel="stylesheet" href="./css/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="./assets/images/logo_white_type_02.png" alt="OUTBACK"
/></a>
</h1>
<nav class="gnb_wrap">
<ul class="gnb">
<li>
<a href="#">BRAND</a>
<ul class="depth2">
<li>
<a href="/main.do?menuIdx=38">OUTBACK STORY</a>
</li>
<li>
<a href="/main.do?menuIdx=317">KERRR FAMILY</a>
</li>
<li>
<a href="/main.do?menuIdx=183">BEEF STORY</a>
</li>
<li>
<a href="/main.do?menuIdx=241">STEAK ACADEMY</a>
</li>
<li>
<a href="/main.do?menuIdx=235">OUTBACK CSR</a>
</li>
</ul>
</li>
<li>
<a href="#">MENU</a>
<ul class="depth2">
<li>
<a href="/main.do?menuIdx=314">BONE&BONE PRESTIGE STEAK</a>
</li>
<li>
<a href="/main.do?menuIdx=292"
>PERFECT BONE-IN STEAK EDITION</a
>
</li>
<li>
<a href="/main.do?menuIdx=228">TOMAHAWK STEAK</a>
</li>
<li>
<a href="/main.do?menuIdx=247">PORTERHOUSE STEAK</a>
</li>
<li>
<a href="/main.do?menuIdx=333">BLACK LABEL CHEF EDITION</a>
</li>
<li>
<a href="/main.do?menuIdx=225">STEAK & FAVORITES</a>
</li>
<li>
<a href="/main.do?menuIdx=224">LUNCH SET</a>
</li>
<li>
<a href="/main.do?menuIdx=223">PASTA & SALADS</a>
</li>
<li>
<a href="/main.do?menuIdx=257">WINES</a>
</li>
<li>
<a href="/main.do?menuIdx=222">DESSERTS & OTHERS</a>
</li>
<li>
<a href="/main.do?menuIdx=244">DELIVERY</a>
</li>
<li>
<a href="/main.do?menuIdx=310"
>LIMITED SPECIAL MENU FOR JEJU</a
>
</li>
</ul>
</li>
<li>
<a href="#">MEMBERSHIP</a>
<ul class="depth2">
<li>
<a href="/main.do?menuIdx=301">BOOMERANG MEMBERSHIP</a>
</li>
<li>
<a href="/main.do?menuIdx=302">MEMBERSHIP BENEFIT</a>
</li>
</ul>
</li>
<li>
<a href="#">BENEFIT</a>
<ul class="depth2">
<li>
<a href="/main.do?menuIdx=51">CREDIT CARDS</a>
</li>
<li>
<a href="/main.do?menuIdx=52">SKT&KT</a>
</li>
<li>
<a href="/main.do?menuIdx=53">POINT PAYMENT</a>
</li>
<li>
<a href="/main.do?menuIdx=54">VOUCHER</a>
</li>
<li>
<a href="/main.do?menuIdx=186">EVENT</a>
</li>
</ul>
</li>
<li>
<a href="#">STORE</a>
</li>
</ul>
</nav>
<ul class="login">
<li><a href="#">고객의 소리</a></li>
<li><a href="#">채용</a></li>
<li><a href="#">로그인</a></li>
<li class="join"><a href="#">회원가입</a></li>
</ul>
</div>
</header>
<main id="container">
<section class="main_slider">
<h2 class="blind">메인 슬라이더</h2>
<a href="#"
><img src="./assets/images/back_img1.jpeg" alt="bon & bon"
/></a>
</section>
</main>
</div>
</body>
</html>
css
:root {
--point-color1: #c30606;
--point-color2: #907354;
--txt-color-400: #999;
--txt-color-500: #666;
--txt-color-600: #222;
}
#wrap {
min-width: 1260px;
height: 1500px;
}
#header {
position: fixed;
left: 0;
top: 0;
background: rgba(52, 52, 54, 1);
width: 100%;
z-index: 9999;
min-width: 1260px;
}
#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;
position: relative;
}
#header .gnb > li > a {
display: block;
line-height: 100px;
color: #fff;
font-size: 19px;
font-family: 'Akrobat', sans-serif;
letter-spacing: 0.12em;
position: relative;
}
#header .gnb > li > a::after {
content: '';
position: absolute;
left: 0;
bottom: 30px;
width: 100%;
height: 3px;
background: var(--point-color1);
display: none;
}
#header .gnb > li:hover > a::after {
display: block;
}
#header .gnb > li:hover .depth2 {
opacity: 1;
visibility: visible;
}
#header .gnb .depth2 {
position: absolute;
left: 0;
top: 100px;
background: rgba(0, 0, 0, 0.6);
padding: 28px 30px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: all 0.5s;
}
#header .gnb .depth2 li + li {
margin-top: 15px;
}
#header .gnb .depth2 a {
color: #fff;
}
#header .login {
margin-left: auto;
display: flex;
gap: 0 20px;
}
#header .login a {
color: var(--txt-color-400);
font-size: 13px;
display: block;
line-height: 30px;
}
#header .login .join a {
width: 86px;
background: #555;
text-align: center;
color: #fff;
}
#container {
padding-top: 100px;
}
.main_slider {
overflow: hidden;
height: 900px;
position: relative;
}
.main_slider a {
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
}
.main_slider img {
max-width: none;
}