Skip to content

Commit 536040d

Browse files
author
Maikel Maas
committed
VDX-278 Credential Verify Request Page, fixed the text
1 parent c64394e commit 536040d

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/oid4vci-demo-frontend/src/configs/kvk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"showQRCodeTopTitle": true,
9494
"rightPaneLeftPane": {
9595
"qrCode": {
96+
"fgColor": "#000000",
9697
"bottomText": {
9798
"credential_verify_request_right_pane_bottom_title": "",
9899
"credential_verify_request_right_pane_bottom_paragraph": "credential_verify_request_right_pane_bottom_paragraph"

packages/oid4vci-demo-frontend/src/ecosystem/ecosystem-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export interface SSICredentialVerifyRequestPageConfig extends PageConfig {
7777
className?: string
7878
}
7979
qrCode?: {
80+
fgColor?: string
8081
topTitle?: {
8182
style?: CSSProperties
8283
},

packages/oid4vci-demo-frontend/src/pages/SSICredentialVerifyRequestPage/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ export default function SSICredentialVerifyRequestPage(): React.ReactElement | n
9898
{t('ssi_welcome_label')}
9999
</div>
100100
</div>}
101-
<div style={{maxHeight: 356, width: '100%', display: 'flex', flexDirection: 'row', flexGrow: 1, ...(pageConfig.showQRCodeTopTitle && { marginBottom: 'auto'})}}>
101+
<div style={{maxHeight: 356, width: '100%', display: 'flex', flexDirection: 'row', flexGrow: 1, ...(pageConfig.showQRCodeTopTitle && { marginBottom: '31%'})}}>
102102
<div style={{display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', flexGrow: 1, ...(isTabletOrMobile && { gap: 24 })}}>
103103
<div>
104104
<NonMobileOS>
105-
<div style={{flexGrow: 1, display: 'flex', justifyContent: 'center', alignItems: 'center'}}>
105+
<div style={{flexGrow: 1, display: 'flex', justifyContent: 'center', alignItems: 'center', ...(pageConfig.showQRCodeTopTitle && { height: '100%', marginTop: '4%'})}}>
106106
{/*Whether the QR code is shown (mobile) is handled in the component itself */}
107107
{<MemoizedAuthenticationQR ecosystem={ecosystem}
108-
fgColor={'rgba(50, 57, 72, 1)'}
108+
fgColor={pageConfig.rightPaneLeftPane?.qrCode?.fgColor ?? 'rgba(50, 57, 72, 1)'}
109109
width={pageConfig.rightPaneLeftPane?.qrCode?.width ?? 300}
110110
vpDefinitionId={flowRouter.getVpDefinitionId()}
111111
onAuthRequestRetrieved={console.log}
@@ -127,7 +127,7 @@ export default function SSICredentialVerifyRequestPage(): React.ReactElement | n
127127
/>
128128
</Mobile>
129129
<NonMobile>
130-
<Text style={{flexGrow: 1, color: `${pageConfig.rightPaneLeftPane?.qrCode?.bottomText?.fontColor}` }}
130+
<Text style={{flexGrow: 1, color: `${pageConfig.rightPaneLeftPane?.qrCode?.bottomText?.fontColor}`, ...(pageConfig.showQRCodeTopTitle && { marginTop: '12%' })}}
131131
className={`${style.pReduceLineSpace} ${pageConfig.rightPaneLeftPane?.qrCode?.bottomText?.className} poppins-semi-bold-16`}
132132
title={t(`${pageConfig.rightPaneLeftPane?.qrCode?.bottomText?.credential_verify_request_right_pane_bottom_title}`).split('\n')}
133133
lines={t(`${pageConfig.rightPaneLeftPane?.qrCode?.bottomText?.credential_verify_request_right_pane_bottom_paragraph}`).split('\n')}

0 commit comments

Comments
 (0)