File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<!DOCTYPE html>
<html lang="en">
<!-- 헤더 -->
<body>
<div class="header">
<div class="header-area flex justify-between align-center">
<a href="/views/index.html" class="logo"></a>
<div class="mobil-wrap">
<button class="mobile-menu-button">☰</button>
<button class="mobile-menu-button-close" style="display: none;">x</button>
</div>
<nav>
<ul class="web-menu">
<li>
<a href="../../views/pages/AboutUs.html">About Us</a>
</li>
<li><a href="../../views/pages/Solution.html">Solution</a></li>
<li>
<a href="#">Portfolio</a>
<ul class="dropdown ">
<li><a href="../../views/pages/Data.html">Data</a></li>
<li><a href="../../views/pages/Visualization.html">Visualization</a></li>
<li><a href="../../views/pages/SmartCtiy.html">Smart City</a></li>
<li><a href="../../views/pages/DataAnalysis.html">Data Analysis</a></li>
<li><a href="../../views/pages/Customized.html">Customized Consulting</a></li>
<li><a href="../../views/pages/Etc.html">ETC</a></li>
</ul>
</li>
<li><a href="../../views/pages/Marketing.html">Marketing</a></li>
</ul>
</nav>
<nav class="mobil-menu">
<ul>
<li>
<a href="../../views/pages/AboutUs.html">About Us</a>
</li>
<li><a href="../../views/pages/Solution.html">Solution</a></li>
<li>
<details>
<summary style="list-style-type: none;"><a>Portfolio</a></summary>
<ul>
<li><a href="../../views/pages/Data.html">Data</a></li>
<li><a href="../../views/pages/Visualization.html">Visualization</a></li>
<li><a href="../../views/pages/SmartCtiy.html">Smart City</a></li>
<li><a href="../../views/pages/DataAnalysis.html">Data Analysis</a></li>
<li><a href="../../views/pages/Customized.html">Customized Consulting</a></li>
<li><a href="../../views/pages/Etc.html">ETC</a></li>
</ul>
</details>
</li>
<li><a href="../../views/pages/Marketing.html">Marketing</a></li>
</ul>
</nav>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<script>
var portfolioItem = document.querySelector('nav ul li:nth-child(3)'); // Portfolio가 세 번째 항목이라고 가정
var dropdownMenu = portfolioItem.querySelector('.dropdown');
portfolioItem.addEventListener('mouseover', function () {
dropdownMenu.classList.add('show');
});
portfolioItem.addEventListener('mouseleave', function () {
dropdownMenu.classList.remove('show');
});
var navLinks = document.querySelectorAll('nav > ul > li > a');
var currentUrl = window.location.href;
navLinks.forEach(function (link) {
if (link.href === currentUrl) {
link.classList.add('clicked');
} else {
link.classList.remove('clicked');
}
});
var logoDiv = document.querySelector('.logo');
logoDiv.addEventListener('click', function () {
var currentLocation = window.location.pathname;
if (currentLocation === '/index.html' || currentLocation === '/') {
// 현재 위치가 메인 페이지인 경우, 페이지를 새로고침하거나 현재 위치를 유지
window.location.href = '/';
} else {
// 다른 페이지에 있는 경우, 메인 페이지로 이동
window.location.href = '/';
}
});
logoDiv.style.cursor = 'pointer';
$('.mobile-menu-button').click(function () {
$('.mobil-menu').show();
$('.mobile-menu-button-close').show();
$('.mobile-menu-button').hide();
});
$('.mobile-menu-button-close').click(function () {
$('.mobil-menu').hide();
$('.mobile-menu-button-close').hide();
$('.mobile-menu-button').show();
});
</script>
<style>
.clicked {
color: #213F99 !important;
}
#header {
background-color: transparent;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 55px;
}
.logo {
background: url(../../resources/img/component/logo-w.png) no-repeat;
width: 200px;
background-size: contain;
height: 25px;
}
.logo a {
width: 200px;
}
.header-area {
width: 100%;
margin: 0 auto;
padding: 10px 20px 7px 20px;
}
nav ul li {
width: 200px;
display: inline-block;
position: relative;
}
nav ul li a {
color: white;
font-size: 1.8rem;
font-weight: 500;
display: block;
padding: 8px;
text-align: center;
}
.mobil-menu {
display: none;
}
.dropdown {
opacity: 0;
visibility: hidden;
position: absolute;
top: 45px;
right: 0;
width: 100%;
margin: 0 auto;
text-align: center;
font-weight: 400;
background-color: #ffffff38;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 1;
}
/* 드롭다운 메뉴 보임 */
.dropdown.show {
opacity: 1;
visibility: visible;
}
</style>
</html>