Skip to content

add resources nav-item to contain resources and videos as row #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 19, 2025
5 changes: 5 additions & 0 deletions assets/scss/_navbar_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
color: $primary !important;
}

.down-icon{
font-size: 0.75rem;
}

// @media (min-width: 768px) {
// &:hover {
// .dropdown-menu {
Expand Down Expand Up @@ -61,6 +65,7 @@
}
}
}

.dropdown{
position: static;
}
Expand Down
41 changes: 39 additions & 2 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,44 @@
<li class="nav-item">
<a id="kanvas" class="nav-link" href="/kanvas/"> Kanvas</a>
</li>
<li class="nav-item">
<a id="videos" class="nav-link" href="/videos"> Videos</a>
<li class="nav-item dropdown" data-bs-theme="dark">
<div
class="nav-link"
id="resourcesDropdown"
role="button"
data-toggle="dropdown"
>
Resources<span class="down-icon">&#9660;</span>
</div>
<div class="dropdown-menu" aria-labelledby="resourcesDropdown" style="visibility:hidden;">
<a
class="dropdown-item"
href="https://cloud.layer5.io/academy/overview"
target="_blank"
>
<div class="logo-container">
<img
src="/images/logos/learning-path.svg"
alt="Meshery Logo"
/>
</div>
<span>Academy</span>
</a>
<div class="dropdown-divider"></div>
<a
class="dropdown-item"
href="https://docs.layer5.io/videos"
target="_blank"
>
<div class="logo-container">
<img
src="/images/logos/video-play.svg"
alt="Meshery Logo"
/>
</div>
<span>Videos</span>
</a>
</div>
</li>
</div>
<div class="d-flex ms-auto">
Expand Down Expand Up @@ -196,6 +232,7 @@


setupDropdown("productsDropdown");
setupDropdown("resourcesDropdown");
// console.log(window.location.pathname == "/cloud/");
// check if the current page ic cloud
let cur;
Expand Down
1 change: 1 addition & 0 deletions static/images/logos/video-play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.