Back to Postgresml

Template

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

2.10.02.6 KB
Original Source

% use crate::templates::components::GithubIcon; use crate::templates::components::PostgresLogo; use crate::components::navigation::navbar::marketing_link::MarketingLink; use crate::components::static_nav_link::StaticNavLink; use pgml_components::Component; let product_open_source_links = vec![StaticNavLink::new("Korvus".to_string(), "https://github.com/postgresml/korvus".to_string()).custom_icon(Component::from(r#""#)), StaticNavLink::new("PGML".to_string(), "https://github.com/postgresml/postgresml".to_string()).custom_icon(Component::from(r#""#)), StaticNavLink::new("PgCat".to_string(), "https://github.com/postgresml/pgcat".to_string()).custom_icon(Component::from(r#""#)),]; let product_deployment_options_links = vec![StaticNavLink::new("PostgresML Cloud".to_string(), "/docs/cloud/overview".to_string()).icon("filter_drama"), StaticNavLink::new("VPC".to_string(), "/docs/cloud/enterprise/vpc".to_string()).icon("vpn_key"),]; let solutions_use_cases_links = vec![StaticNavLink::new("RAG".into(), "/rag".into()).icon("manage_search"), StaticNavLink::new("Search".into(), "/docs/open-source/pgml/guides/improve-search-results-with-machine-learning".into()).icon("feature_search"), StaticNavLink::new("Chatbot".into(), "/chatbot".into()).icon("smart_toy"),]; let solutions_tasks_links = vec![StaticNavLink::new("LLMs".into(), "/docs/open-source/pgml/guides/llms/".into()).icon("description"), StaticNavLink::new("Embeddings".into(), "/docs/open-source/pgml/guides/embeddings/".into()).icon("subtitles"), StaticNavLink::new("Vector Database".into(), "/docs/open-source/pgml/guides/vector-database".into()).icon("open_with"), StaticNavLink::new("Supervised Learning".into(), "/docs/open-source/pgml/guides/supervised-learning/".into()).icon("model_training"),]; let company_links = vec![StaticNavLink::new("About".to_string(), "/about".to_string()).icon("smart_toy"), StaticNavLink::new("Careers".to_string(), "/careers".to_string()).icon("work"), StaticNavLink::new("Contact".to_string(), "/contact".to_string()).icon("alternate_email")]; struct DrawerNav { collapse_name: String, links: Vec, to_expand: Vec } let drawer = |item: DrawerNav| { let collapse_name = item.collapse_name; let links = item.links.iter().map(|link| { link.clone().render_once().unwrap() }).collect::>().join("\n"); let to_expand = item.to_expand.join(" "); format!(r#"

arrow_back Back {links}

"#) }; let link_to_drawer = |name: &str, target: &str| { format!(r##" - {name} "##) }; let close_mobile_main_nav_items = vec!["solutions-collapse", "company-collapse", "product-collapse"]; %>