diff --git a/pgml-dashboard/src/components/buttons/goto_btn/goto_btn.scss b/pgml-dashboard/src/components/buttons/goto_btn/goto_btn.scss new file mode 100644 index 000000000..a76b8219c --- /dev/null +++ b/pgml-dashboard/src/components/buttons/goto_btn/goto_btn.scss @@ -0,0 +1,3 @@ +div[data-controller="buttons-goto-btn"] { + +} diff --git a/pgml-dashboard/src/components/buttons/goto_btn/mod.rs b/pgml-dashboard/src/components/buttons/goto_btn/mod.rs new file mode 100644 index 000000000..eb87b8540 --- /dev/null +++ b/pgml-dashboard/src/components/buttons/goto_btn/mod.rs @@ -0,0 +1,30 @@ +use pgml_components::component; +use sailfish::TemplateOnce; + +#[derive(TemplateOnce, Default)] +#[template(path = "buttons/goto_btn/template.html")] +pub struct GotoBtn { + href: String, + text: String, +} + +impl GotoBtn { + pub fn new() -> GotoBtn { + GotoBtn { + href: String::new(), + text: String::new(), + } + } + + pub fn set_href(mut self, href: &str) -> Self { + self.href = href.into(); + self + } + + pub fn set_text(mut self, text: &str) -> Self { + self.text = text.into(); + self + } +} + +component!(GotoBtn); diff --git a/pgml-dashboard/src/components/buttons/goto_btn/template.html b/pgml-dashboard/src/components/buttons/goto_btn/template.html new file mode 100644 index 000000000..2703dba84 --- /dev/null +++ b/pgml-dashboard/src/components/buttons/goto_btn/template.html @@ -0,0 +1,6 @@ + + + <%- text %> + arrow_forward + + diff --git a/pgml-dashboard/src/components/buttons/mod.rs b/pgml-dashboard/src/components/buttons/mod.rs new file mode 100644 index 000000000..653b02b20 --- /dev/null +++ b/pgml-dashboard/src/components/buttons/mod.rs @@ -0,0 +1,6 @@ +// This file is automatically generated. +// You shouldn't modify it manually. + +// src/components/buttons/goto_btn +pub mod goto_btn; +pub use goto_btn::GotoBtn; diff --git a/pgml-dashboard/src/components/mod.rs b/pgml-dashboard/src/components/mod.rs index 276dffd1f..3681508be 100644 --- a/pgml-dashboard/src/components/mod.rs +++ b/pgml-dashboard/src/components/mod.rs @@ -16,6 +16,9 @@ pub mod badges; pub mod breadcrumbs; pub use breadcrumbs::Breadcrumbs; +// src/components/buttons +pub mod buttons; + // src/components/cards pub mod cards; diff --git a/pgml-dashboard/src/components/sections/have_questions/template.html b/pgml-dashboard/src/components/sections/have_questions/template.html index 3d5697b1d..a17f87d7b 100644 --- a/pgml-dashboard/src/components/sections/have_questions/template.html +++ b/pgml-dashboard/src/components/sections/have_questions/template.html @@ -1,5 +1,3 @@ -<% use crate::utils::config::standalone_dashboard; %> -
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: