Skip to content

Commit

Permalink
fix: add device based change in email template for issuance and verif…
Browse files Browse the repository at this point in the history
…ication (#770)

Signed-off-by: Krishna Waske <krishna.waske@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
GHkrishna authored and KulkarniShashank committed Sep 11, 2024
1 parent 94a74c5 commit afc587b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions apps/issuance/templates/out-of-band-issuance.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ export class OutOfBandIssuance {
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
/* Mobile Styles */
@media only screen and (max-width: 600px) {
.desktop-button {
display: none !important;
}
}
/* Desktop Styles */
@media only screen and (min-width: 601px) {
.mobile-button {
display: none !important;
}
}
</style>
</head>
<body style="margin: 0px; padding:0px; background-color:#F9F9F9;">
Expand Down Expand Up @@ -36,9 +51,15 @@ export class OutOfBandIssuance {
</ul>
<div style="text-align: center; padding-bottom: 20px;">
<a clicktracking=off href="${deepLinkURL}"
class="mobile-button"
style="padding: 10px 20px 10px 20px;color: #fff;background: #1F4EAD;border-radius: 5px;text-decoration: none;">
Accept Credential
</a>
<a clicktracking=off href="${process.env.MOBILE_APP_DOWNLOAD_URL}"
class="desktop-button"
style="padding: 10px 20px 10px 20px;color: #fff;background: #1F4EAD;border-radius: 5px;text-decoration: none;">
Download App
</a>
</div>
</p>
Expand Down
21 changes: 21 additions & 0 deletions apps/verification/templates/out-of-band-verification.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ export class OutOfBandVerification {
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
/* Mobile Styles */
@media only screen and (max-width: 600px) {
.desktop-button {
display: none !important;
}
}
/* Desktop Styles */
@media only screen and (min-width: 601px) {
.mobile-button {
display: none !important;
}
}
</style>
</head>
<body style="margin: 0px; padding:0px; background-color:#F9F9F9;">
Expand All @@ -34,9 +49,15 @@ export class OutOfBandVerification {
</ul>
<div style="text-align: center; padding-bottom: 20px;">
<a clicktracking=off href="${deeplLinkURL}"
class="mobile-button"
style="padding: 10px 20px 10px 20px;color: #fff;background: #1F4EAD;border-radius: 5px;text-decoration: none;">
Share Credential
</a>
<a clicktracking=off href="${process.env.MOBILE_APP_DOWNLOAD_URL}"
class="desktop-button"
style="padding: 10px 20px 10px 20px;color: #fff;background: #1F4EAD;border-radius: 5px;text-decoration: none;">
Download App
</a>
</div>
</p>
Expand Down

0 comments on commit afc587b

Please sign in to comment.