email: premium HTML template with accent colour and copy affordance
Redesigns the mail template (branded header bar, hero code block, copy button, muted footer) and adds a configurable accent colour alongside the brand name.
This commit is contained in:
parent
06e9da4dc8
commit
98630c7d36
7 changed files with 63 additions and 22 deletions
|
|
@ -24,12 +24,19 @@ pub struct Email {
|
|||
// Display name shown in email templates (header/footer).
|
||||
#[serde(default = "default_brand")]
|
||||
pub brand: String,
|
||||
// Accent colour (any CSS colour) for the email template.
|
||||
#[serde(default = "default_accent")]
|
||||
pub accent: String,
|
||||
}
|
||||
|
||||
fn default_brand() -> String {
|
||||
"Network Services".to_string()
|
||||
}
|
||||
|
||||
fn default_accent() -> String {
|
||||
"#4f46e5".to_string()
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub struct Gossip {
|
||||
// Address to accept peer connections on. Absent = dial-only node.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue