Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chillenberger merged 4 commits intomasterfromdan-billing
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes fromall 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
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
div[data-controller="buttons-goto-btn"] {

}
30 changes: 30 additions & 0 deletionspgml-dashboard/src/components/buttons/goto_btn/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff 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);
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspgml-dashboard/src/components/buttons/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspgml-dashboard/src/components/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionpgml-dashboard/src/components/tables/large/table/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspgml-dashboard/src/components/tables/large/table/table.scss
View file
Open in desktop
Original file line numberDiff line numberDiff 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;
}
}
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspgml-dashboard/static/css/modules.scss
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspgml-dashboard/static/css/scss/abstracts/variables.scss
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp