Skip to content

Commit 6b6395e

Browse files
items for contact page update (#1178)
1 parent aca6c53 commit 6b6395e

File tree

3 files changed

+45
-8
lines changed

3 files changed

+45
-8
lines changed

pgml-dashboard/src/components/navigation/navbar/marketing/template.html

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,27 @@
1010
StaticNavLink::new("Fraud Detection".to_string(), "/test2".to_string()).icon("e911_emergency").disabled(true),
1111
StaticNavLink::new("Forecasting".to_string(), "/test2".to_string()).icon("avg_pace").disabled(true),
1212
];
13+
14+
let company_links = vec![
15+
StaticNavLink::new("About".to_string(), "/about".to_string()).icon("smart_toy"),
16+
StaticNavLink::new("Contact".to_string(), "/contact".to_string()).icon("alternate_email")
17+
];
18+
19+
struct mobile_navs {
20+
collapse: String,
21+
links: Vec<StaticNavLink>
22+
}
23+
24+
let mobile_nav_items = vec![
25+
mobile_navs {
26+
collapse: "solutions-collapse".to_string(),
27+
links: solutions_links.clone()
28+
},
29+
mobile_navs {
30+
collapse: "company-collapse".to_string(),
31+
links: company_links.clone()
32+
}
33+
];
1334
%>
1435

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

3657
<div class="collapse navbar-collapse drawer-submenu-container navbarSupportedContent" id="navbarSupportedContent">
3758
<!-- Main Menu -->
38-
<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">
59+
<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 %><% } %>">
3960
<ul class="navbar-nav flex-grow-1 gap-4 me-auto my-4 my-xl-0">
4061

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

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

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

107135

108-
<!-- Solutions nav for less than large screens -->
109-
<div class="nav-item collapse-horizontal solutions-collapse collapse drawer-submenu">
136+
<!-- subnavs for less than large screens -->
137+
<% for item in mobile_nav_items { %>
138+
<div class="nav-item collapse-horizontal <%- item.collapse %> collapse drawer-submenu">
110139
<ul class="sub-menu-dropdown mb-5 d-flex flex-column gap-3">
111-
<a class="btn btn-tertiary-web-app" data-bs-toggle="collapse" data-bs-target=".solutions-collapse">
140+
<a class="btn btn-tertiary-web-app" data-bs-toggle="collapse" data-bs-target=".<%- item.collapse%>">
112141
<span class="material-symbols-outlined icon-back-btn">
113142
arrow_back
114143
</span>
115144
Back
116145
</a>
117-
<% for link in solutions_links { %>
146+
<% for link in item.links { %>
118147
<%+ MarketingLink::new().link(
119148
StaticNavLink::new(link.name.to_string(), link.href.to_string())
120149
.disabled(link.disabled)
121150
) %>
122151
<% } %>
123152
</ul>
124153
</div>
125-
126-
154+
<% } %>
127155
</div>
128156

129157
</div>

pgml-dashboard/static/css/scss/components/_buttons.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
&:active {
3232
background: $hp-gradient-active;
3333
}
34+
35+
--bs-btn-disabled-color: #{$gray-900};
36+
&:disabled {
37+
background: #{$gray-200};
38+
}
3439
}
3540

3641
.btn-secondary {

pgml-dashboard/static/css/scss/components/_forms.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@
272272
--bs-danger-text: #{$error};
273273
}
274274

275+
.form-control:invalid.form-control:not(:placeholder-shown) {
276+
border-color: #{$error};
277+
}
278+
275279
.hourly-rate {
276280
display: flex;
277281
flex-direction: row;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy