Skip to content

Dan billing #1618

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 4 commits into from
Sep 4, 2024
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
3 changes: 3 additions & 0 deletions pgml-dashboard/src/components/buttons/goto_btn/goto_btn.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
div[data-controller="buttons-goto-btn"] {

}
30 changes: 30 additions & 0 deletions pgml-dashboard/src/components/buttons/goto_btn/mod.rs
Original file line number Diff line number Diff line change
@@ -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);
6 changes: 6 additions & 0 deletions pgml-dashboard/src/components/buttons/goto_btn/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- goto btn -->
<a href="<%- href %>" class="btn btn-tertiary goto-arrow-hover-trigger">
<%- text %>
<span class="material-symbols-outlined goto-arrow-shift-animation">arrow_forward</span>
</a>
<!-- end goto btn -->
6 changes: 6 additions & 0 deletions pgml-dashboard/src/components/buttons/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 3 additions & 0 deletions pgml-dashboard/src/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<% use crate::utils::config::standalone_dashboard; %>

<div class="d-flex flex-column gap-4" data-controller="sections-have-questions">
<div class="w-100 justify-content-center d-flex flex-column text-center">
<h4>Have more questions?</h4>
Expand Down
14 changes: 13 additions & 1 deletion pgml-dashboard/src/components/tables/large/table/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::components::tables::large::Row;
use pgml_components::component;
use pgml_components::{component, Component};
use sailfish::TemplateOnce;

#[derive(TemplateOnce, Default)]
Expand All @@ -8,6 +8,7 @@ pub struct Table {
rows: Vec<Row>,
headers: Vec<String>,
classes: String,
footers: Vec<Component>,
}

impl Table {
Expand All @@ -16,6 +17,7 @@ impl Table {
headers: headers.iter().map(|h| h.to_string()).collect(),
rows: rows.to_vec(),
classes: "table table-lg".to_string(),
footers: Vec::new(),
}
}

Expand All @@ -24,6 +26,16 @@ impl Table {
self.rows = self.rows.into_iter().map(|r| r.selectable()).collect();
self
}

pub fn footers(mut self, footer: Vec<Component>) -> Self {
self.footers = footer;
self
}

pub fn alt_style(mut self) -> Self {
self.classes.push_str(" alt-style");
self
}
}

component!(Table);
41 changes: 41 additions & 0 deletions pgml-dashboard/src/components/tables/large/table/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,44 @@ table.table.table-lg {
height: 100%;
}
}

table.table.table-lg.alt-style {
border: 1px solid #{$peach-tint-100};
border-spacing: 0px;
background: #{$gray-800};
border-radius: $border-radius;
--bs-table-hover-bg: #{$gray-800};

tbody {
tr td {
background-color: #{$gray-800};
border-radius: 0;
}
}

tfoot tr td {
background-color: #{$gray-700};
padding: 16px 0px;
}

td:first-child, td:last-child {
width: 67px;
padding: 0px
}

tr:first-child td:first-child {
border-top-left-radius: $border-radius;
}

tr:first-child td:last-child {
border-top-right-radius: $border-radius;
}

tr:last-child td:first-child {
border-bottom-left-radius: $border-radius;
}

tr:last-child td:last-child {
border-bottom-right-radius: $border-radius;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@
<%+ row %>
<% } %>
</tbody>
<% if !footers.is_empty() {%>
<tfoot>
<tr>
<% for footer in footers { %>
<td><%+ footer %></td>
<% } %>
</tr>
</tfoot>
<% } %>
</table>
1 change: 1 addition & 0 deletions pgml-dashboard/static/css/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import "../../src/components/badges/large/label/label.scss";
@import "../../src/components/badges/small/label/label.scss";
@import "../../src/components/breadcrumbs/breadcrumbs.scss";
@import "../../src/components/buttons/goto_btn/goto_btn.scss";
@import "../../src/components/cards/blog/article_preview/article_preview.scss";
@import "../../src/components/cards/marketing/slider/slider.scss";
@import "../../src/components/cards/marketing/twitter_testimonial/twitter_testimonial.scss";
Expand Down
3 changes: 3 additions & 0 deletions pgml-dashboard/static/css/scss/abstracts/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ $magenta-shade-800: #450029;
$magenta-shade-900: #2e001b;
$magenta-shade-1000: #17000d;

// Orange Shade
$orange-shade-100: #FF9145;

// Colors
$primary: #0D0D0E;
$secondary: $gray-100;
Expand Down
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