Skip to content

Commit

Permalink
navbar update
Browse files Browse the repository at this point in the history
  • Loading branch information
claud-io committed Oct 18, 2023
1 parent d145a64 commit 53ce5b6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
4 changes: 4 additions & 0 deletions www/assets/css/wpt-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ wpt-header .wptheader_nav_menu_content ul {
margin-bottom: 1rem;
}

wpt-header .wptheader_nav_menu_content .nested ul {
margin-left: 1rem;
}

wpt-header .wptheader_nav_menu_content li {
display: flex;
align-items: center;
Expand Down
39 changes: 22 additions & 17 deletions www/templates/layouts/includes/wpt-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,37 @@ function addTab($tabName, $tabUrl, $addClass = '')

<li class="wptheader_nav_menu">
<details>
<summary><span>Features</span></summary>
<summary><span>Solutions</span></summary>
<div class="wptheader_nav_menu_content">
<div class="wptheader_nav_menu_section">
<img src="/assets/images/wpt-logo-pro-dark.svg" width="143" height="17" alt="WebPageTest Pro">
</div>
<div class="wptheader_nav_menu_section">
<div class="wptheader_nav_menu_section nested">
<ul>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://product.webpagetest.org/experiments">Opportunities & Experiments</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://product.webpagetest.org/api">API</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.webpagetest.org/carbon-control/">Carbon Control (NEW)</a></li>
</ul>
</div>
<div class="wptheader_nav_menu_section wptheader_nav_cta">
<p class="wptheader_nav_title" >Enterprise Monitoring</p>
<div class="wptheader_nav_menu_section wptheader_nav_cta" style="padding: 1.5rem 0 1rem;">
<p class="wptheader_nav_title">Enterprise Monitoring</p>
<div class="wptheader_top_right_arrow"></div>
</div>
<div class="wptheader_nav_menu_section">
<ul>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/website-experience/website-performance-monitoring?utm_source=WPT&utm_medium=NavBar&utm_content=websitePerformanceMonitoring">Website Performance Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/real-user-monitoring?utm_source=WPT&utm_medium=NavBar&utm_content=rum">Real User Monitoring (RUM)</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/application-experience/api-monitoring?utm_source=WPT&utm_medium=NavBar&utm_content=apiMonitoring">API Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/network-experience/dns?utm_source=WPT&utm_medium=NavBar&utm_content=dns">DNS Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/bgp?utm_source=WPT&utm_medium=NavBar&utm_content=bgp">BGP Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/network-experience/cdn?utm_source=WPT&utm_medium=NavBar&utm_content=cdn">CDN Monitoring</a></li>
</ul>
<div class="wptheader_nav_menu_section nested">
<p class="wptheader_nav_title" style="font-weight:unset;">By Team</p>
<ul>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/website-experience/web-teams?utm_source=wpt&utm_medium=navbar&utm_content=webteams">Web/SEO Teams</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/website-experience/it-teams?utm_source=WPT&utm_medium=NavBar&utm_content=ItTeams">IT/DevOps Teams</a></li>
</ul>
<p class="wptheader_nav_title" style="font-weight:unset;">By Use Case</p>
<ul>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/real-user-monitoring?utm_source=WPT&utm_medium=NavBar&utm_content=rum">Real User Monitoring (RUM)</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/application-experience/api-monitoring?utm_source=WPT&utm_medium=NavBar&utm_content=apiMonitoring">API Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/network-experience/dns?utm_source=WPT&utm_medium=NavBar&utm_content=dns">DNS Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/bgp?utm_source=WPT&utm_medium=NavBar&utm_content=bgp">BGP Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/network-experience/cdn?utm_source=WPT&utm_medium=NavBar&utm_content=cdn">CDN Monitoring</a></li>
<li class="wptheader_nav_menu_link"><a target="_blank" href="https://www.catchpoint.com/website-experience/website-performance-monitoring?utm_source=WPT&utm_medium=NavBar&utm_content=websitePerformanceMonitoring">Website Performance Monitoring</a></li>
</ul>
</div>
</div>
</details>
Expand Down Expand Up @@ -158,7 +164,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
if ($supportsAuth && !EMBED) {
if ($supportsCPAuth) {
$is_logged_in = isset($request_context) && !is_null($request_context->getUser()) && !is_null($request_context->getUser()->getAccessToken());
?>
?>
<?php if ($is_logged_in) : ?>
<li><a href='/account'>
<?php
Expand All @@ -169,8 +175,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
My Account</a></li>
<li>
<form method='POST' action='/logout' class='logout-form'>
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>" />
<button type='submit'>Logout</button>
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token'] ?>" /> <button type='submit'>Logout</button>
</form>
</li>
<?php else : ?>
Expand All @@ -180,7 +185,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
<?php endif; ?>
<?php endif; //$is_logged_in
?>
<?php
<?php
} elseif (isset($user)) {
$logoutUrl = 'https://www.webpagetest.org/forums/member.php?action=logout';
echo "<li>Welcome, " . htmlspecialchars($user) . "</li><li><a href=\"$logoutUrl\">Logout</a></li>";
Expand Down

0 comments on commit 53ce5b6

Please sign in to comment.