USVT-107 更新使用 CDN 来确定网站 Logo

This commit is contained in:
YuCheng Hu 2022-11-12 18:59:23 -05:00
parent b1af9a5052
commit f9908fca07
2 changed files with 254 additions and 239 deletions

View File

@ -39,9 +39,9 @@ public class EmailService {
map.put("UserName", user.getUserName());
map.put("ActiveUserId", user.getId());
map.put("ActiveCode", user.getEmailVerifiedCode());
map.put("LogoUrl", "cdn.ossez.com/img/usvisatrack/usvisatrack-logo-blk.png");
String htmlContent = this.templateService.createHtml("email/VerifiedEmail.html", map);
String subject = "UsVisaTrack Email Verification";
emailUtils.sendEmail(user.getUserEmail(), subject, htmlContent);

View File

@ -15,262 +15,277 @@
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/RjgO7rYTmqiVp7vzi-Q5URJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/LWCjsQkB6EMdfHrEVqA1KRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/xozscpT2726on7jbcb_pAhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/59ZRklaO5bWGqF5A9baEERJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/u-WUoqrET9fUeobQW7jkRRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSq-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSpX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNShWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSqaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSj0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/RjgO7rYTmqiVp7vzi-Q5URJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/LWCjsQkB6EMdfHrEVqA1KRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/xozscpT2726on7jbcb_pAhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/59ZRklaO5bWGqF5A9baEERJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/u-WUoqrET9fUeobQW7jkRRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSq-j2U0lmluP9RWlSytm3ho.woff2) format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSpX5f-9o1vgP2EXwfjgl7AY.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNShWV49_lSm1NYrwo-zkhivY.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSqaRobkAwv3vxw3jMhVENGA.woff2) format('woff2');
unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSj0LW-43aMEzIO6XUTLjad8.woff2) format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
</style>
</head>
<body style="margin:0px; padding:0px; color:#333;" bgcolor="#F7F7F7" data-gr-c-s-loaded="true" contenteditable="false">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr style="background:#F7F7F7;">
<td>
<!-- main table stats-->
<!--[if gte mso 9]>
<table id="tableForOutlook" align="center"><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr style="background:#F7F7F7;">
<td>
<!-- main table stats-->
<!--[if gte mso 9]>
<table id="tableForOutlook" align="center">
<tr>
<td>
<![endif]-->
<div style="max-width:100%; margin:0 auto; padding: 10px;">
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"
style="max-width:620px; ">
<tbody>
<div style="max-width:100%; margin:0 auto; padding: 10px;">
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"
style="max-width:620px; ">
<tbody>
<tr>
<td style="border:solid 1px #DEE3E9;">
<!-------------main_table------->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!------header--->
<!------content---->
<tbody>
<tr>
<td style="border:solid 1px #DEE3E9;">
<!-------------main_table------->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!------header--->
<!------content---->
<td colspan="2" bgcolor="#FFFFFF">
<table cellspacing="0" cellpadding="0" bgcolor="" width="100%">
<tbody>
<tr>
<td colspan="2" bgcolor="#FFFFFF">
<table cellspacing="0" cellpadding="0" bgcolor="" width="100%">
<tbody>
<tr>
<td class="" align="left"
style="padding-top:30px; padding-bottom:30px;padding-left: 40px;">
<img src="https://cdn.ossez.com/img/usvisatrack/usvisatrack-logo-blk.png"
alt=""
style="bottom: 0px;left: 0px;margin: auto;right: 0px; width:auto;height:72px">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#2A3042">
<table cellspacing="0" cellpadding="0" bgcolor="" width="100%">
<tbody>
<tr>
<td class="" align="left"
style="padding-top:12px; padding-bottom:12px;padding-left: 40px; color: #fff;font-size: 18px">
<b>Welcome to [(${SiteName})] </b>!<br></td>
</tr>
</tbody>
</table>
</t
<table cellpadding="0" cellspacing="0"
style="padding:10px 40px; padding-bottom: 30px;"
width="100%">
<tbody>
<tr>
<td>
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<td colspan="2"
style="color:#5c5d5e;font-size:14px; padding-top:0px;line-height: 24px;">
<ul style="padding-left: 13px;">
<p>Dear [(${UserName})]</p><br>
<p>Thank you for registering
on [(${SiteHost})].</p>
<p>You can log on to
UsVisaTrack with the
following activation code:
</p>
<p>[(${ActiveCode})]</p>
<p>Please click on the link
below to verify your
email address.</p>
<p> URL:
<a th:href="@{https://www.usvisatrack.com/custom/active_user(id=${ActiveUserId},code=${ActiveCode})}">
[(@{'https://www.usvisatrack.com/custom/active_user?id='+${ActiveUserId}+'&code='+${ActiveCode}})]
</a>
<br>
<p>If you are not able
to click on the link
above, copy and
paste it into your
browser. </p>
<p>If you have received
this email in error,
we apologize for the
inconvenience --
</p>
<p>simply reply to this
email and let us
know.</p>
</ul>
</td>
</tr>
<tr style="background:#ffffff;">
<td style="color:#5c5d5e;font-size:16px;padding-top: 20px;"
align="left"><span
style="float:left;color:#5c5d5e;"><b>Team</b><br>
<b style="font-size:16px;">
<a th:href="@{'https://'+${SiteHost}+'/'}"
target="_blank"
style="color: #333; text-decoration: none;">[(${SiteHost})]</a>
</b></span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="background:#393F4F;">
<td
style="font-size:12px; text-align:center; line-height:20px; padding:20px;color: #fff;">
</td>
</tr>
<tr>
<td class="" align="center"
style="padding-top:30px; padding-bottom:30px;padding-left: 40px;">
<img th:src="@{'https://'+${LogoUrl}}"
alt=""
style="bottom: 0px;left: 0px;margin: auto;right: 0px; width:auto;height:72px">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#2A3042">
<table cellspacing="0" cellpadding="0" bgcolor="" width="100%">
<tbody>
<tr>
<td class="" align="left"
style="padding-top:12px; padding-bottom:12px;padding-left: 40px; color: #fff;font-size: 18px">
<b>Dear [(${SiteName})] user,</b>!<br></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0"
style="padding:10px 40px; padding-bottom: 30px;"
width="100%">
<tbody>
<tr>
<td>
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<td colspan="2"
style="color:#5c5d5e;font-size:14px; padding-top:0px;line-height: 24px;">
<ul style="padding-left: 13px;">
<p>Dear [(${UserName})]</p><br>
<p>Thank you for registering
on [(${SiteHost})].</p>
<p>You can log on to
UsVisaTrack with the
following information:
</p>
<p>Please click on the link
below to verify your
email address.</p>
<p> URL:
<a th:href="@{https://www.usvisatrack.com/custom/active_user(id=${ActiveUserId},code=${ActiveCode})}">
[(@{'https://www.usvisatrack.com/custom/active_user?id='+${ActiveUserId}+'&code='+${ActiveCode}})]
</a>
<!-------footer----->
<br>
<p>If you are not able
to click on the link
above, copy and
paste it into your
browser. </p>
<p>If you have received
this email in error,
we apologize for the
inconvenience --
</p>
<p>simply reply to this
email and let us
know.</p>
</ul>
</td>
</tr>
<tr style="background:#ffffff;">
<td style="color:#5c5d5e;font-size:16px;padding-top: 20px;"
align="left"><span
style="float:left;color:#5c5d5e;"><b>Team</b><br>
<b style="font-size:16px;">
<a th:href="@{'https://'+${SiteHost}+'/'}"
target="_blank"
style="color: #333; text-decoration: none;">[(${SiteHost})]</a>
</b></span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="background:#393F4F;">
<td
style="font-size:12px; text-align:center; line-height:20px; padding:20px;color: #fff;">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!-------footer----->
<!--[if gte mso 9]>
</tbody>
</table>
</div>
<!--[if gte mso 9]>
</td></tr></table>
<![endif]-->
<!-- main table ends-->
</td>
</tr>
</tbody>
</table>
<!-- main table ends-->
</td>
</tr>
</tbody>
</table>
</body>
<img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.ossez.com/matomo.php?idsite=7&amp;rec=1" style="border:0" alt="" />
</html>