Spaces:
Running
Running
v4.1
Browse files- index.html +18 -19
index.html
CHANGED
|
@@ -331,18 +331,17 @@
|
|
| 331 |
|
| 332 |
/* Mobile menu animation */
|
| 333 |
.mobile-menu {
|
| 334 |
-
|
| 335 |
-
|
|
|
|
|
|
|
|
|
|
| 336 |
}
|
| 337 |
|
| 338 |
.mobile-menu.show {
|
| 339 |
-
|
| 340 |
opacity: 1;
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
.mobile-menu.hide {
|
| 344 |
-
transform: scaleY(0);
|
| 345 |
-
opacity: 0;
|
| 346 |
}
|
| 347 |
</style>
|
| 348 |
</head>
|
|
@@ -386,7 +385,7 @@
|
|
| 386 |
</div>
|
| 387 |
|
| 388 |
<!-- Mobile menu -->
|
| 389 |
-
<div class="mobile-menu
|
| 390 |
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
|
| 391 |
<a href="#home" class="text-gray-900 block px-3 py-2 text-base font-medium color-transition">Home</a>
|
| 392 |
<a href="#about" class="text-gray-600 hover:text-gray-900 block px-3 py-2 text-base font-medium color-transition">About</a>
|
|
@@ -510,7 +509,7 @@
|
|
| 510 |
</div>
|
| 511 |
<div class="p-4 border border-orange-200 rounded-lg color-transition hover:bg-orange-50">
|
| 512 |
<p class="text-sm text-gray-600 mb-2">Why this assignee was suggested:</p>
|
| 513 |
-
<p class="text-sm text-gray-900">This person was
|
| 514 |
</div>
|
| 515 |
</div>
|
| 516 |
</div>
|
|
@@ -762,14 +761,8 @@
|
|
| 762 |
|
| 763 |
if (mobileMenuButton && mobileMenu) {
|
| 764 |
mobileMenuButton.addEventListener('click', function() {
|
| 765 |
-
// Toggle the
|
| 766 |
-
|
| 767 |
-
mobileMenu.classList.remove('hide');
|
| 768 |
-
mobileMenu.classList.add('show');
|
| 769 |
-
} else {
|
| 770 |
-
mobileMenu.classList.remove('show');
|
| 771 |
-
mobileMenu.classList.add('hide');
|
| 772 |
-
}
|
| 773 |
});
|
| 774 |
}
|
| 775 |
|
|
@@ -778,10 +771,16 @@
|
|
| 778 |
mobileMenuLinks.forEach(link => {
|
| 779 |
link.addEventListener('click', function() {
|
| 780 |
mobileMenu.classList.remove('show');
|
| 781 |
-
mobileMenu.classList.add('hide');
|
| 782 |
});
|
| 783 |
});
|
| 784 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 785 |
// Smooth scrolling for anchor links
|
| 786 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 787 |
anchor.addEventListener('click', function (e) {
|
|
|
|
| 331 |
|
| 332 |
/* Mobile menu animation */
|
| 333 |
.mobile-menu {
|
| 334 |
+
max-height: 0;
|
| 335 |
+
overflow: hidden;
|
| 336 |
+
transition: max-height 0.4s ease-out, opacity 0.4s ease-out, transform 0.4s ease-out;
|
| 337 |
+
opacity: 0;
|
| 338 |
+
transform: translateY(-20px);
|
| 339 |
}
|
| 340 |
|
| 341 |
.mobile-menu.show {
|
| 342 |
+
max-height: 500px;
|
| 343 |
opacity: 1;
|
| 344 |
+
transform: translateY(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
}
|
| 346 |
</style>
|
| 347 |
</head>
|
|
|
|
| 385 |
</div>
|
| 386 |
|
| 387 |
<!-- Mobile menu -->
|
| 388 |
+
<div class="mobile-menu">
|
| 389 |
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
|
| 390 |
<a href="#home" class="text-gray-900 block px-3 py-2 text-base font-medium color-transition">Home</a>
|
| 391 |
<a href="#about" class="text-gray-600 hover:text-gray-900 block px-3 py-2 text-base font-medium color-transition">About</a>
|
|
|
|
| 509 |
</div>
|
| 510 |
<div class="p-4 border border-orange-200 rounded-lg color-transition hover:bg-orange-50">
|
| 511 |
<p class="text-sm text-gray-600 mb-2">Why this assignee was suggested:</p>
|
| 512 |
+
<p class="text-sm text-gray-900">This person was assignee on previous issues related to similar performance problems.</p>
|
| 513 |
</div>
|
| 514 |
</div>
|
| 515 |
</div>
|
|
|
|
| 761 |
|
| 762 |
if (mobileMenuButton && mobileMenu) {
|
| 763 |
mobileMenuButton.addEventListener('click', function() {
|
| 764 |
+
// Toggle the show class
|
| 765 |
+
mobileMenu.classList.toggle('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 766 |
});
|
| 767 |
}
|
| 768 |
|
|
|
|
| 771 |
mobileMenuLinks.forEach(link => {
|
| 772 |
link.addEventListener('click', function() {
|
| 773 |
mobileMenu.classList.remove('show');
|
|
|
|
| 774 |
});
|
| 775 |
});
|
| 776 |
|
| 777 |
+
// Close mobile menu when clicking outside
|
| 778 |
+
document.addEventListener('click', function(event) {
|
| 779 |
+
if (mobileMenu && !mobileMenu.contains(event.target) && !mobileMenuButton.contains(event.target)) {
|
| 780 |
+
mobileMenu.classList.remove('show');
|
| 781 |
+
}
|
| 782 |
+
});
|
| 783 |
+
|
| 784 |
// Smooth scrolling for anchor links
|
| 785 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 786 |
anchor.addEventListener('click', function (e) {
|