fedimint_server_ui/dashboard/
invite.rs
1use maud::{Markup, html};
2
3pub fn render(invite_code: &str) -> Markup {
5 html! {
6 div class="card h-100" {
7 div class="card-header dashboard-header" { "Invite Code" }
8 div class="card-body" {
9 div class="alert alert-info text-break" {
10 (invite_code)
11 }
12
13 div class="text-center mt-3" {
14 button type="button" class="btn btn-outline-primary" id="copyInviteCodeBtn"
15 onclick=(format!("navigator.clipboard.writeText('{}');", invite_code)) {
16 "Copy to Clipboard"
17 }
18 }
19
20 p class="text-center mt-3" {
21 "Share this invite code with users to onboard them to your federation."
22 }
23 }
24 }
25 }
26}