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,6 +15,7 @@
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
/* cyrillic-ext */
@font-face {
font-family: 'Open Sans';
@ -23,6 +24,7 @@
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';
@ -31,6 +33,7 @@
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';
@ -39,6 +42,7 @@
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';
@ -47,6 +51,7 @@
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';
@ -55,6 +60,7 @@
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';
@ -63,6 +69,7 @@
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';
@ -71,6 +78,7 @@
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';
@ -79,6 +87,7 @@
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';
@ -87,6 +96,7 @@
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';
@ -95,6 +105,7 @@
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';
@ -103,6 +114,7 @@
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';
@ -111,6 +123,7 @@
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';
@ -119,6 +132,7 @@
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';
@ -137,7 +151,9 @@
<td>
<!-- main table stats-->
<!--[if gte mso 9]>
<table id="tableForOutlook" align="center"><tr><td>
<table id="tableForOutlook" align="center">
<tr>
<td>
<![endif]-->
<div style="max-width:100%; margin:0 auto; padding: 10px;">
@ -157,9 +173,9 @@
<table cellspacing="0" cellpadding="0" bgcolor="" width="100%">
<tbody>
<tr>
<td class="" align="left"
<td class="" align="center"
style="padding-top:30px; padding-bottom:30px;padding-left: 40px;">
<img src="https://cdn.ossez.com/img/usvisatrack/usvisatrack-logo-blk.png"
<img th:src="@{'https://'+${LogoUrl}}"
alt=""
style="bottom: 0px;left: 0px;margin: auto;right: 0px; width:auto;height:72px">
</td>
@ -175,12 +191,14 @@
<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>
<b>Dear [(${SiteName})] user,</b>!<br></td>
</tr>
</tbody>
</table>
</t
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF">
<table cellpadding="0" cellspacing="0"
style="padding:10px 40px; padding-bottom: 30px;"
width="100%">
@ -199,9 +217,8 @@
on [(${SiteHost})].</p>
<p>You can log on to
UsVisaTrack with the
following activation code:
following information:
</p>
<p>[(${ActiveCode})]</p>
<p>Please click on the link
below to verify your
email address.</p>
@ -271,6 +288,4 @@
</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>