mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
refactor(payout_link): update fonts and UI for payout link (#5678)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -6,9 +6,9 @@
|
||||
<title>{{ i18n_payout_link_title }}</title>
|
||||
</head>
|
||||
{{ css_style_tag }}
|
||||
<body>
|
||||
<body class="hide-scrollbar">
|
||||
<div class="main">
|
||||
<div id="payout-link"></div>
|
||||
<div id="payout-link" class="hide-scrollbar"></div>
|
||||
</div>
|
||||
{{ js_script_tag }} {{ hyper_sdk_loader_script_tag }}
|
||||
</body>
|
||||
|
||||
@ -136,7 +136,7 @@ if (!isTestMode && !isFramed) {
|
||||
var appearance = {
|
||||
variables: {
|
||||
colorPrimary: payoutDetails?.theme?.primary_color || "rgb(0, 109, 249)",
|
||||
fontFamily: "Work Sans, sans-serif",
|
||||
fontFamily: "ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
||||
fontSizeBase: "16px",
|
||||
colorText: "rgb(51, 65, 85)",
|
||||
},
|
||||
|
||||
@ -5,6 +5,8 @@ body {
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
||||
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
align-items: center;
|
||||
@ -26,7 +28,8 @@ body {
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.main, #payout-link {
|
||||
.main,
|
||||
#payout-link {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<title>{{ i18n_payout_link_status_title }}</title>
|
||||
{{ css_style_tag }}
|
||||
</head>
|
||||
<body>
|
||||
<body class="hide-scrollbar">
|
||||
<div class="main">
|
||||
<div id="status-card">
|
||||
<div id="merchant-header"></div>
|
||||
|
||||
@ -167,7 +167,7 @@ function redirectToEndUrl(returnUrl) {
|
||||
? "{{i18n_redirecting_text}}"
|
||||
: "{{i18n_redirecting_in_text}} " +
|
||||
secondsLeft +
|
||||
" {{i18n_seconds_text}} ...";
|
||||
" {{i18n_seconds_text}}";
|
||||
if (statusRedirectTextNode instanceof HTMLDivElement) {
|
||||
statusRedirectTextNode.innerText = innerText;
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ body {
|
||||
font-size: 25px;
|
||||
}
|
||||
#merchant-header > img {
|
||||
height: 30px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
#status-image {
|
||||
|
||||
@ -41,8 +41,8 @@ pub fn insert_locales_in_context_for_payout_link_status(context: &mut Context, l
|
||||
let i18n_payout_link_status_title = t!("payout_link.status.title", locale = locale);
|
||||
let i18n_success_text = t!("payout_link.status.text.success", locale = locale);
|
||||
let i18n_success_message = t!("payout_link.status.message.success", locale = locale);
|
||||
let i18n_pending_text = t!("payout_link.status.text.pending", locale = locale);
|
||||
let i18n_pending_message = t!("payout_link.status.message.pending", locale = locale);
|
||||
let i18n_pending_text = t!("payout_link.status.text.processing", locale = locale);
|
||||
let i18n_pending_message = t!("payout_link.status.message.processing", locale = locale);
|
||||
let i18n_failed_text = t!("payout_link.status.text.failed", locale = locale);
|
||||
let i18n_failed_message = t!("payout_link.status.message.failed", locale = locale);
|
||||
let i18n_ref_id_text = t!("payout_link.status.info.ref_id", locale = locale);
|
||||
|
||||
Reference in New Issue
Block a user