Skip to content

Commit 25e9de6

Browse files
author
sachin-maheshwari
authored
Merge pull request #148 from topcoder-platform/hotfix/resendActivationEmail
Shapeup3 - Hotfix: change the activation email template message for "resend" link
2 parents 71dd935 + f94c004 commit 25e9de6

File tree

2 files changed

+83
-60
lines changed

2 files changed

+83
-60
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ workflows:
6666
branches:
6767
only:
6868
- dev
69-
- hotfix/buttonDoubleClick
69+
- hotfix/resendActivationEmail
7070

7171
# Production builds are exectuted only on tagged commits to the
7272
# master branch.
Lines changed: 82 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,87 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<title>Check your email to activate your account</title>
5-
<meta charset="utf-8" />
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7-
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
<link rel="shortcut icon" href="./images/favicon.ico" />
9-
<link
10-
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap"
11-
rel="stylesheet"
12-
/>
13-
<link href="https://fonts.googleapis.com/css2?family=Barlow&family=Barlow+Condensed:wght@500&display=swap" rel="stylesheet">
14-
<link rel="stylesheet" href="./styles.css" />
15-
</head>
163

17-
<body class="center-align-card checkemail-card">
18-
<!-- Page Wrapper -->
19-
<div class="page-wrapper">
20-
<!-- For ADA - Skip to Content Area -->
21-
<a class="action skip" href="#contentarea">Skip to Content</a>
22-
<!-- Page Content Area - Header + Main content -->
23-
<div class="page-content">
24-
<header class="header">
25-
<img
26-
src="./images/email.png"
27-
alt="Check Email"
28-
width="104"
29-
height="89"
30-
/>
31-
</header>
32-
<main id="main" class="page-main">
33-
<a id="contentarea" tabindex="-1"></a>
34-
<h1 id="page-title-heading" class="page-title-heading">
35-
Check your email to <br/>activate your account
36-
</h1>
37-
<h2 id="page-subtitle-heading" class="page-subtitle-heading">
38-
Welcome to the Topcoder Community!
39-
</h2>
40-
<div class="page-description">
41-
<ul>
42-
<li><span>Don't see an email? Try spam just in case.
43-
If you still have any issues, you can always email <a href="mailto:support@topcoder.com">support@topcoder.com</a>.
44-
</span>
45-
</li>
46-
<li><span>Latest Topcoder News<br/><a href="https://www.topcoder.com/blog/category/community-stories/?s=&so=&o=">Community Stories</a> / <a href="https://www.topcoder.com/blog/category/customer-success/?s=&so=&o=">Customer Success</a> /
47-
<a href="https://www.topcoder.com/blog/category/future-of-work/?s=&so=&o=">Future of Work</a></span></li>
48-
</ul>
49-
</div>
50-
</main>
51-
</div>
52-
<footer class="footer">
53-
<div class="copyright-text">
54-
<strong>&copy;</strong> 2021 Topcoder. All Rights Reserved
4+
<head>
5+
<title>Check your email to activate your account</title>
6+
<meta charset="utf-8" />
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1" />
9+
<link rel="shortcut icon" href="./images/favicon.ico" />
10+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap" rel="stylesheet" />
11+
<link href="https://fonts.googleapis.com/css2?family=Barlow&family=Barlow+Condensed:wght@500&display=swap"
12+
rel="stylesheet">
13+
<link rel="stylesheet" href="./styles.css" />
14+
<script>
15+
var qs = (function (a) {
16+
if (a == "") return {};
17+
var b = {};
18+
for (var i = 0; i < a.length; ++i) {
19+
var p = a[i].split("=", 2);
20+
if (p.length == 1) b[p[0]] = "";
21+
else b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
22+
}
23+
return b;
24+
})(window.location.search.substr(1).split("&"));
25+
window.addEventListener("load", () => {
26+
var state = qs['state'];
27+
if (state) {
28+
document.querySelector("#resend").addEventListener("click", e => {
29+
e.preventDefault();
30+
window.location = 'https://auth.topcoder-dev.com/continue?state=' + state + '&resend=1';
31+
});
32+
} else {
33+
document.querySelector("#resend-text").style.display = "none";
34+
}
35+
});
36+
</script>
37+
</head>
38+
39+
<body class="center-align-card checkemail-card">
40+
<!-- Page Wrapper -->
41+
<div class="page-wrapper">
42+
<!-- For ADA - Skip to Content Area -->
43+
<a class="action skip" href="#contentarea">Skip to Content</a>
44+
<!-- Page Content Area - Header + Main content -->
45+
<div class="page-content">
46+
<header class="header">
47+
<img src="./images/email.png" alt="Check Email" width="104" height="89" />
48+
</header>
49+
<main id="main" class="page-main">
50+
<a id="contentarea" tabindex="-1"></a>
51+
<h1 id="page-title-heading" class="page-title-heading">
52+
Check your email to <br />activate your account
53+
</h1>
54+
<h2 id="page-subtitle-heading" class="page-subtitle-heading">
55+
Welcome to the Topcoder Community!
56+
</h2>
57+
<div class="page-description">
58+
<ul>
59+
<li><span>Don't see an email? Try spam just in case.
60+
<span id="resend-text" style="position:static;">
61+
You can also request to have us
62+
<a href="#" id="resend">resend </a>
63+
the activation email.
64+
</span>
65+
If you still have any issues, you can always email <a
66+
href="mailto:support@topcoder.com">support@topcoder.com</a>.
67+
</span>
68+
</li>
69+
<li><span>Latest Topcoder News<br /><a
70+
href="https://www.topcoder.com/blog/category/community-stories/?s=&so=&o=">Community Stories</a> / <a
71+
href="https://www.topcoder.com/blog/category/customer-success/?s=&so=&o=">Customer Success</a> /
72+
<a href="https://www.topcoder.com/blog/category/future-of-work/?s=&so=&o=">Future of Work</a></span>
73+
</li>
74+
</ul>
5575
</div>
56-
<a
57-
class="privacy-policy"
58-
href="https://www.topcoder.com/privacy-policy/"
59-
>Privacy Policy</a
60-
>
61-
</footer>
76+
</main>
6277
</div>
63-
</body>
64-
</html>
78+
<footer class="footer">
79+
<div class="copyright-text">
80+
<strong>&copy;</strong> 2021 Topcoder. All Rights Reserved
81+
</div>
82+
<a class="privacy-policy" href="https://www.topcoder.com/privacy-policy/">Privacy Policy</a>
83+
</footer>
84+
</div>
85+
</body>
86+
87+
</html>

0 commit comments

Comments
 (0)