Skip to content

items for contact page update #1178

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 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@
StaticNavLink::new("Fraud Detection".to_string(), "/test2".to_string()).icon("e911_emergency").disabled(true),
StaticNavLink::new("Forecasting".to_string(), "/test2".to_string()).icon("avg_pace").disabled(true),
];

let company_links = vec![
StaticNavLink::new("About".to_string(), "/about".to_string()).icon("smart_toy"),
StaticNavLink::new("Contact".to_string(), "/contact".to_string()).icon("alternate_email")
];

struct mobile_navs {
collapse: String,
links: Vec<StaticNavLink>
}

let mobile_nav_items = vec![
mobile_navs {
collapse: "solutions-collapse".to_string(),
links: solutions_links.clone()
},
mobile_navs {
collapse: "company-collapse".to_string(),
links: company_links.clone()
}
];
%>

<div class="sticky-top-nav" data-controller="navigation-navbar-marketing">
Expand All @@ -35,7 +56,7 @@

<div class="collapse navbar-collapse drawer-submenu-container navbarSupportedContent" id="navbarSupportedContent">
<!-- Main Menu -->
<div class="nav-item w-100 d-xl-flex flex-column flex-xl-row align-items-xl-center collapse collapse-horizontal solutions-collapse show drawer-submenu">
<div class="nav-item w-100 d-xl-flex flex-column flex-xl-row align-items-xl-center collapse collapse-horizontal show drawer-submenu <% for item in &mobile_nav_items {%> <%- item.collapse %><% } %>">
<ul class="navbar-nav flex-grow-1 gap-4 me-auto my-4 my-xl-0">

<% if !standalone_dashboard { %>
Expand All @@ -55,7 +76,14 @@
<%+ MarketingLink::new().link(StaticNavLink::new("Blog".to_string(), "/blog/speeding-up-vector-recall-by-5x-with-hnsw".to_string())) %>

<% if !standalone_dashboard { %>
<%+ MarketingLink::new().link(StaticNavLink::new("Company".to_string(), "/about".to_string())) %>
<div class="d-none d-xl-flex">
<%+ MarketingLink::new()
.name("Company")
.links(company_links.clone()) %>
</div>
<li class="nav-item d-flex align-items-center d-flex d-xl-none">
<a class="nav-link p-0 fw-semibold" href="#" data-bs-toggle="collapse" data-bs-target=".company-collapse">Company</a>
</li>
<% } %>

<li class="nav-item d-none d-xl-flex align-items-center">
Expand Down Expand Up @@ -105,25 +133,25 @@
</div>


<!-- Solutions nav for less than large screens -->
<div class="nav-item collapse-horizontal solutions-collapse collapse drawer-submenu">
<!-- subnavs for less than large screens -->
<% for item in mobile_nav_items { %>
<div class="nav-item collapse-horizontal <%- item.collapse %> collapse drawer-submenu">
<ul class="sub-menu-dropdown mb-5 d-flex flex-column gap-3">
<a class="btn btn-tertiary-web-app" data-bs-toggle="collapse" data-bs-target=".solutions-collapse">
<a class="btn btn-tertiary-web-app" data-bs-toggle="collapse" data-bs-target=".<%- item.collapse%>">
<span class="material-symbols-outlined icon-back-btn">
arrow_back
</span>
Back
</a>
<% for link in solutions_links { %>
<% for link in item.links { %>
<%+ MarketingLink::new().link(
StaticNavLink::new(link.name.to_string(), link.href.to_string())
.disabled(link.disabled)
) %>
<% } %>
</ul>
</div>


<% } %>
</div>

</div>
Expand Down
5 changes: 5 additions & 0 deletions pgml-dashboard/static/css/scss/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
&:active {
background: $hp-gradient-active;
}

--bs-btn-disabled-color: #{$gray-900};
&:disabled {
background: #{$gray-200};
}
}

.btn-secondary {
Expand Down
4 changes: 4 additions & 0 deletions pgml-dashboard/static/css/scss/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@
--bs-danger-text: #{$error};
}

.form-control:invalid.form-control:not(:placeholder-shown) {
border-color: #{$error};
}

.hourly-rate {
display: flex;
flex-direction: row;
Expand Down