|
1 | | -<% use crate::templates::components::GithubIcon; %> |
2 | | -<% use crate::templates::components::PostgresLogo; %> |
| 1 | +<% |
| 2 | + use crate::templates::components::GithubIcon; |
| 3 | + use crate::templates::components::PostgresLogo; |
| 4 | + use crate::components::navigation::navbar::marketing_link::MarketingLink; |
| 5 | + use crate::components::static_nav_link::StaticNavLink; |
| 6 | + |
| 7 | + let solutions_links = vec![ |
| 8 | + StaticNavLink::new("ChatBot".to_string(), "/chatbot".to_string()).icon("smart_toy"), |
| 9 | + StaticNavLink::new("Site Search".to_string(), "/test2".to_string()).icon("manage_search").disabled(true), |
| 10 | + StaticNavLink::new("Forcasting".to_string(), "/test2".to_string()).icon("avg_pace").disabled(true), |
| 11 | + StaticNavLink::new("Frad Detection".to_string(), "/test2".to_string()).icon("e911_emergency").disabled(true), |
| 12 | + ]; |
| 13 | +%> |
3 | 14 |
|
4 | 15 | <divclass="sticky-top-nav"data-controller="navigation-navbar-marketing"> |
5 | | -<navclass="navbar-marketing-site horizontal navbar-expand-lg"data-controller="search topnav-styling"> |
6 | | -<divclass="container gap-4"> |
| 16 | +<navclass="navbar-marketing-site horizontal navbar-expand-xl"data-controller="search topnav-styling"> |
| 17 | +<divclass="containercolumn-gap-4"> |
7 | 18 | <divclass="controls"> |
8 | 19 | <%+ PostgresLogo::new("/") %> |
9 | | -<buttonclass="navbar-toggler"type="button"data-bs-toggle="collapse"data-bs-target="#navbarSupportedContent"aria-controls="navbarSupportedContent"aria-expanded="false"aria-label="Toggle navigation"> |
10 | | -<spanclass="navbar-toggler-icon"></span> |
11 | | -</button> |
12 | | -</div> |
13 | 20 |
|
14 | | -<divclass="collapse navbar-collapse"id="navbarSupportedContent"> |
15 | | -<ulclass="navbar-nav flex-grow-1 gap-4 me-auto mb-4 mb-lg-0"> |
16 | | -<% if !standalone_dashboard { %> |
17 | | -<liclass="nav-item d-flex align-items-center"> |
18 | | -<aclass="nav-link p-0"href="/pricing">Pricing</a> |
19 | | -</li> |
20 | | -<% } %> |
21 | | -<liclass="nav-item d-flex align-items-center"> |
22 | | -<aclass="nav-link p-0"href="/docs/guides/">Docs</a> |
23 | | -</li> |
24 | | -<liclass="nav-item d-flex align-items-center"> |
25 | | -<aclass="nav-link p-0"href="/blog/speeding-up-vector-recall-by-5x-with-hnsw">Blog</a> |
26 | | -</li> |
27 | | -</ul> |
28 | | - |
29 | | -<ulclass="navbar-nav gap-4 gap-lg-3 mb-2 mb-lg-0"> |
30 | | -<liclass="align-items-center d-none d-lg-flex"> |
31 | | -<%+ GithubIcon {show_stars: true} %> |
32 | | -</li> |
33 | | -<liclass="d-flex align-items-center d-block d-lg-none"> |
34 | | -<aclass="nav-link p-0"href="https://github.com/postgresml/postgresml">Open Source</a> |
35 | | -</li> |
36 | | -<liclass="nav-item d-flex align-items-center"> |
37 | | -<buttontype="text"class="btn nav-link btn-search-alt p-0"name="search"data-bs-toggle="modal"data-bs-target="#search"autocomplete="off"data-search-target="searchTrigger"data-action="search#openSearch"> |
38 | | - Search |
| 21 | +<divclass="d-flex flex-row gap-1"> |
| 22 | +<liclass="nav-item d-flex align-items-center d-block d-xl-none"> |
| 23 | +<buttontype="text"class="btn nav-link btn-search-alt border-0 p-0"name="search"data-bs-toggle="modal"data-bs-target="#search"autocomplete="off"data-search-target="searchTrigger"data-action="search#openSearch"> |
| 24 | +<spanclass="material-symbols-outlined">search</span> |
39 | 25 | </button> |
40 | 26 | </li> |
41 | | -<% if !standalone_dashboard { %> |
42 | | -<divclass="vr my-2 opacity-100 d-lg-block d-none"style="width: 2px"></div> |
43 | | -<% if current_user.as_ref().is_none() || current_user.as_ref().unwrap().id == -1 { %> |
44 | | -<liclass="nav-item d-flex align-items-center"> |
45 | | -<aclass="nav-link p-0"href="/login">Sign In</a> |
46 | | -</li> |
47 | | -<liclass="d-flex align-items-center"> |
48 | | -<aclass="btn btn-primary py-2 px-3"href="/signup">Sign Up</a> |
49 | | -</li> |
50 | | -<% } else { %> |
51 | | -<liclass="nav-item d-flex align-items-center"> |
52 | | -<aclass="nav-link p-0"href="/logout">Sign Out</a> |
53 | | -</li> |
54 | | -<liclass="d-flex align-items-center"> |
55 | | -<aclass="btn btn-primary py-2 px-3"href="/clusters">Console</a> |
56 | | -</li> |
| 27 | + |
| 28 | +<buttonclass="navbar-toggler"type="button"data-bs-toggle="collapse"data-bs-target=".navbarSupportedContent"aria-controls="navbarSupportedContent"aria-expanded="false"aria-label="Toggle navigation"> |
| 29 | +<spanclass="navbar-toggler-icon"></span> |
| 30 | +</button> |
| 31 | +</div> |
| 32 | +</div> |
| 33 | + |
| 34 | +<divclass="navbarSupportedContent underline collapse"></div> |
| 35 | + |
| 36 | +<divclass="collapse navbar-collapse drawer-submenu-container navbarSupportedContent"id="navbarSupportedContent"> |
| 37 | +<!-- Main Menu --> |
| 38 | +<divclass="nav-item w-100 d-xl-flex flex-column flex-xl-row align-items-xl-center collapse collapse-horizontal solutions-collapse show drawer-submenu"> |
| 39 | +<ulclass="navbar-nav flex-grow-1 gap-4 me-auto my-4 my-xl-0"> |
| 40 | + |
| 41 | +<% if !standalone_dashboard { %> |
| 42 | +<divclass="d-none d-xl-flex"> |
| 43 | +<%+ MarketingLink::new() |
| 44 | + .name("Solutions") |
| 45 | + .links(solutions_links.clone()) %> |
| 46 | +</div> |
| 47 | +<liclass="nav-item d-flex align-items-center d-flex d-xl-none"> |
| 48 | +<aclass="nav-link p-0 fw-semibold"href="#"data-bs-toggle="collapse"data-bs-target=".solutions-collapse">Solutions</a> |
| 49 | +</li> |
| 50 | + |
| 51 | +<%+ MarketingLink::new().link(StaticNavLink::new("Pricing".to_string(), "/pricing".to_string())) %> |
57 | 52 | <% } %> |
58 | | -<% } %> |
59 | 53 |
|
60 | | -<% if standalone_dashboard { %> |
61 | | -<liclass="nav-item d-flex align-items-center"> |
62 | | -<aclass="btn btn-primary py-2 px-3"href="/dashboard">Dashboard</a> |
63 | | -</li> |
64 | | -<% } %> |
65 | | -</ul> |
| 54 | +<%+ MarketingLink::new().link(StaticNavLink::new("docs".to_string(), "/docs/guides/".to_string())) %> |
| 55 | +<%+ MarketingLink::new().link(StaticNavLink::new("Blog".to_string(), "/blog/speeding-up-vector-recall-by-5x-with-hnsw".to_string())) %> |
| 56 | + |
| 57 | +<liclass="nav-item d-none d-xl-flex align-items-center"> |
| 58 | +<buttontype="text"class="btn nav-link btn-search-alt border-0 p-0"name="search"data-bs-toggle="modal"data-bs-target="#search"autocomplete="off"data-search-target="searchTrigger"data-action="search#openSearch"> |
| 59 | +<spanclass="material-symbols-outlined">search</span> |
| 60 | +</button> |
| 61 | +</li> |
| 62 | +</ul> |
| 63 | + |
| 64 | +<ulclass="navbar-nav gap-4 mb-2 mb-xl-0"> |
| 65 | +<liclass="align-items-center d-none d-xl-flex"> |
| 66 | +<%+ GithubIcon {show_stars: true} %> |
| 67 | +</li> |
| 68 | + |
| 69 | +<divclass="d-block d-xl-none"> |
| 70 | +<%+ MarketingLink::new().link(StaticNavLink::new("GitHub".to_string(), "https://github.com/postgresml/postgresml".to_string())) %> |
| 71 | +</div> |
| 72 | + |
| 73 | + |
| 74 | +<divclass="mb-5 mt-4 my-xl-0 d-flex flex-column flex-xl-row gap-4"> |
| 75 | +<% if !standalone_dashboard { %> |
| 76 | +<% if current_user.as_ref().is_none() || current_user.as_ref().unwrap().id == -1 { %> |
| 77 | +<liclass="nav-item d-flex align-items-center"> |
| 78 | +<aclass="btn btn-secondary w-100"data-controller="btn-secondary"data-btn-secondary-target="btnSecondary"href="/login">Sign In</a> |
| 79 | +</li> |
| 80 | +<liclass="d-flex align-items-center"> |
| 81 | +<aclass="btn btn-primary w-100"href="/signup">Start Your Project</a> |
| 82 | +</li> |
| 83 | +<% } else { %> |
| 84 | +<liclass="nav-item d-flex align-items-center"> |
| 85 | +<aclass="btn btn-secondary w-100"data-controller="btn-secondary"data-btn-secondary-target="btnSecondary"href="/logout">Sign Out</a> |
| 86 | +</li> |
| 87 | +<liclass="d-flex align-items-center"> |
| 88 | +<aclass="btn btn-primary w-100"href="/clusters">Console</a> |
| 89 | +</li> |
| 90 | +<% } %> |
| 91 | +<% } %> |
| 92 | + |
| 93 | +<% if standalone_dashboard { %> |
| 94 | +<liclass="nav-item d-flex align-items-center"> |
| 95 | +<aclass="btn btn-primary w-100"href="/dashboard">Dashboard</a> |
| 96 | +</li> |
| 97 | +<% } %> |
| 98 | + |
| 99 | +</div> |
| 100 | +</ul> |
| 101 | +</div> |
| 102 | + |
| 103 | + |
| 104 | +<!-- Solutions nav for less than large screens --> |
| 105 | +<divclass="nav-item collapse-horizontal solutions-collapse collapse drawer-submenu"> |
| 106 | +<ulclass="sub-menu-dropdown mb-5 d-flex flex-column gap-3"> |
| 107 | +<aclass="btn btn-tertiary-web-app"data-bs-toggle="collapse"data-bs-target=".solutions-collapse"> |
| 108 | +<spanclass="material-symbols-outlined icon-back-btn"> |
| 109 | + arrow_back |
| 110 | +</span> |
| 111 | + Back |
| 112 | +</a> |
| 113 | +<% for link in solutions_links { %> |
| 114 | +<%+ MarketingLink::new().link( |
| 115 | + StaticNavLink::new(link.name.to_string(), link.href.to_string()) |
| 116 | + .disabled(link.disabled) |
| 117 | + ) %> |
| 118 | +<% } %> |
| 119 | +</ul> |
| 120 | +</div> |
| 121 | + |
| 122 | + |
66 | 123 | </div> |
| 124 | + |
67 | 125 | </div> |
68 | 126 | </nav> |
69 | 127 | </div> |
|