diff --git a/assets/css/app.scss b/assets/css/app.scss index 3b0c77ec9..f04846fb9 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -52,4 +52,39 @@ 95% {opacity: 1;} 100% {opacity: 0;} } -} \ No newline at end of file +} + +.note{ + opacity: .9; +} +// colors +.text-primary{ + color: $primary; +} +.text-secondary{ + color: $gray; +} +.text-success{ + color: $success; +} +.text-danger{ + color: $danger; +} +.text-warning{ + color: $warning; +} +.text-info{ + color: $info; +} +.text-light{ + color: $light; +} +.text-dark{ + color: $dark; +} +.text-muted{ + color: $gray; +} +.text-white{ + color: $white; +} diff --git a/assets/css/variables.scss b/assets/css/variables.scss index 3e98277f7..c9547ed80 100644 --- a/assets/css/variables.scss +++ b/assets/css/variables.scss @@ -12,4 +12,26 @@ $navbar-item-hover-background-color: transparent; $card-header-background-color: #fff; -$modal-background-background-color: #0a0a0a61; \ No newline at end of file +$modal-background-background-color: #0a0a0a61; + +//color variables +$blue: #007bff; +$indigo: #6610f2; +$purple: #6f42c1; +$pink: #e83e8c; +$red: #dc3545; +$orange: #fd7e14; +$yellow: #ffc107; +$green: #28a745; +$teal: #20c997; +$cyan: #17a2b8; +$white: #fff; +$gray: #6c757d; +$gray-dark: #343a40; +$secondary: #6c757d; +$success: #28a745; +$info: #17a2b8; +$warning: #ffc107; +$danger: #dc3545; +$light: #f8f9fa; +$dark: #343a40; diff --git a/lib/archethic_web/templates/faucet/index.html.eex b/lib/archethic_web/templates/faucet/index.html.eex index cd7f83b18..a69a0d523 100644 --- a/lib/archethic_web/templates/faucet/index.html.eex +++ b/lib/archethic_web/templates/faucet/index.html.eex @@ -24,6 +24,9 @@ +
+ NOTE : <%= faucet_rate_limit_message() %> +

Don't have a wallet address? Learn how to create a new one!
diff --git a/lib/archethic_web/views/faucet_view.ex b/lib/archethic_web/views/faucet_view.ex index db6097111..72c09a505 100644 --- a/lib/archethic_web/views/faucet_view.ex +++ b/lib/archethic_web/views/faucet_view.ex @@ -1,3 +1,10 @@ defmodule ArchEthicWeb.FaucetView do use ArchEthicWeb, :view + + def faucet_rate_limit_message() do + rate_limit = Application.get_env(:archethic, :faucet_rate_limit) + expiry = Application.get_env(:archethic, :faucet_rate_limit_expiry, 0) + + "Allowed only #{rate_limit} transactions for the period of #{ArchEthic.Utils.seconds_to_human_readable(expiry / 1000)}" + end end