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("UserName", user.getUserName());
map.put("ActiveUserId", user.getId()); map.put("ActiveUserId", user.getId());
map.put("ActiveCode", user.getEmailVerifiedCode()); 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 htmlContent = this.templateService.createHtml("email/VerifiedEmail.html", map);
String subject = "UsVisaTrack Email Verification"; String subject = "UsVisaTrack Email Verification";
emailUtils.sendEmail(user.getUserEmail(), subject, htmlContent); emailUtils.sendEmail(user.getUserEmail(), subject, htmlContent);

View File

@ -15,262 +15,277 @@
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-weight: 400; font-weight: 400;
} }
/* cyrillic-ext */ /* cyrillic-ext */
@font-face { @font-face {
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/K88pR3goAWT7BTt32Z01mxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); 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; unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
} }
/* cyrillic */
@font-face { /* cyrillic */
font-family: 'Open Sans'; @font-face {
font-style: normal; font-family: 'Open Sans';
font-weight: 400; font-style: normal;
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/RjgO7rYTmqiVp7vzi-Q5URJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); font-weight: 400;
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; 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'; /* greek-ext */
font-style: normal; @font-face {
font-weight: 400; font-family: 'Open Sans';
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/LWCjsQkB6EMdfHrEVqA1KRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); font-style: normal;
unicode-range: U+1F00-1FFF; font-weight: 400;
} src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/LWCjsQkB6EMdfHrEVqA1KRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
/* greek */ unicode-range: U+1F00-1FFF;
@font-face { }
font-family: 'Open Sans';
font-style: normal; /* greek */
font-weight: 400; @font-face {
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/xozscpT2726on7jbcb_pAhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); font-family: 'Open Sans';
unicode-range: U+0370-03FF; font-style: normal;
} font-weight: 400;
/* vietnamese */ src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/xozscpT2726on7jbcb_pAhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
@font-face { unicode-range: U+0370-03FF;
font-family: 'Open Sans'; }
font-style: normal;
font-weight: 400; /* vietnamese */
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/59ZRklaO5bWGqF5A9baEERJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); @font-face {
unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; font-family: 'Open Sans';
} font-style: normal;
/* latin-ext */ font-weight: 400;
@font-face { src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/59ZRklaO5bWGqF5A9baEERJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
font-family: 'Open Sans'; unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
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'); /* latin-ext */
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; @font-face {
} font-family: 'Open Sans';
/* latin */ font-style: normal;
@font-face { font-weight: 400;
font-family: 'Open Sans'; src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/u-WUoqrET9fUeobQW7jkRRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2');
font-style: normal; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
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; /* latin */
} @font-face {
/* cyrillic-ext */ font-family: 'Open Sans';
@font-face { font-style: normal;
font-family: 'Open Sans'; font-weight: 400;
font-style: normal; src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
font-weight: 600; 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;
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-ext */
/* cyrillic */ @font-face {
@font-face { font-family: 'Open Sans';
font-family: 'Open Sans'; font-style: normal;
font-style: normal; font-weight: 600;
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');
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+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
}
/* greek-ext */ /* cyrillic */
@font-face { @font-face {
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 600; 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'); 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+1F00-1FFF; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
} }
/* greek */
@font-face { /* greek-ext */
font-family: 'Open Sans'; @font-face {
font-style: normal; font-family: 'Open Sans';
font-weight: 600; font-style: normal;
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSqaRobkAwv3vxw3jMhVENGA.woff2) format('woff2'); font-weight: 600;
unicode-range: U+0370-03FF; 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;
/* vietnamese */ }
@font-face {
font-family: 'Open Sans'; /* greek */
font-style: normal; @font-face {
font-weight: 600; font-family: 'Open Sans';
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2'); font-style: normal;
unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; 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');
/* latin-ext */ unicode-range: U+0370-03FF;
@font-face { }
font-family: 'Open Sans';
font-style: normal; /* vietnamese */
font-weight: 600; @font-face {
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSj0LW-43aMEzIO6XUTLjad8.woff2) format('woff2'); font-family: 'Open Sans';
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; font-style: normal;
} font-weight: 600;
/* latin */ src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2) format('woff2');
@font-face { unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB;
font-family: 'Open Sans'; }
font-style: normal;
font-weight: 600; /* latin-ext */
src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2) format('woff2'); @font-face {
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-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> </style>
</head> </head>
<body style="margin:0px; padding:0px; color:#333;" bgcolor="#F7F7F7" data-gr-c-s-loaded="true" contenteditable="false"> <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"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody> <tbody>
<tr style="background:#F7F7F7;"> <tr style="background:#F7F7F7;">
<td> <td>
<!-- main table stats--> <!-- main table stats-->
<!--[if gte mso 9]> <!--[if gte mso 9]>
<table id="tableForOutlook" align="center"><tr><td> <table id="tableForOutlook" align="center">
<tr>
<td>
<![endif]--> <![endif]-->
<div style="max-width:100%; margin:0 auto; padding: 10px;"> <div style="max-width:100%; margin:0 auto; padding: 10px;">
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"
style="max-width:620px; "> style="max-width:620px; ">
<tbody> <tbody>
<tr>
<td style="border:solid 1px #DEE3E9;">
<!-------------main_table------->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!------header--->
<!------content---->
<tbody>
<tr> <tr>
<td style="border:solid 1px #DEE3E9;"> <td colspan="2" bgcolor="#FFFFFF">
<!-------------main_table-------> <table cellspacing="0" cellpadding="0" bgcolor="" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!------header--->
<!------content---->
<tbody> <tbody>
<tr> <tr>
<td colspan="2" bgcolor="#FFFFFF"> <td class="" align="center"
<table cellspacing="0" cellpadding="0" bgcolor="" width="100%"> style="padding-top:30px; padding-bottom:30px;padding-left: 40px;">
<tbody> <img th:src="@{'https://'+${LogoUrl}}"
<tr> alt=""
<td class="" align="left" style="bottom: 0px;left: 0px;margin: auto;right: 0px; width:auto;height:72px">
style="padding-top:30px; padding-bottom:30px;padding-left: 40px;"> </td>
<img src="https://cdn.ossez.com/img/usvisatrack/usvisatrack-logo-blk.png" </tr>
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>
</tbody> </tbody>
</table> </table>
</td> </td>
</tr> </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> <!-------footer----->
</table>
</div>
<!--[if gte mso 9]> </tbody>
</table>
</div>
<!--[if gte mso 9]>
</td></tr></table> </td></tr></table>
<![endif]--> <![endif]-->
<!-- main table ends--> <!-- main table ends-->
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</body> </body>
<img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.ossez.com/matomo.php?idsite=7&amp;rec=1" style="border:0" alt="" />
</html> </html>