Skip to content

Commit

Permalink
feat(tp): move loading image down, css cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yong-jie committed Aug 5, 2020
1 parent bd2d6f9 commit ca140c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 119 deletions.
Binary file modified public/assets/transition-page/images/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 4 additions & 118 deletions public/assets/transition-page/styles/transition-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,130 +2,15 @@ body {
position: relative;
-webkit-font-smoothing: antialiased;
font-family: 'IBM Plex Sans', sans-serif;
color: #384a51;
overflow-wrap: break-word;
/* Do not use default window margins. */
margin: 0 !important;
padding: 0 !important;
height: 100vh;
min-height: 650px;
height: 100%;
min-height: 100vh;
background: #f9f9f9;
}

button {
font-family: inherit;
}

.emphasize-text-color {
color: #456682 !important;
}

.semi-bold-text {
font-weight: 500 !important;
}

.divider {
height: 1px;
background-color: #e8e8e8;
margin-top: 20.8px;
margin-bottom: 30px;
}

#page-banner {
position: fixed;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
height: 61px;
width: 100%;
background-color: #f9f9f9;
}

#page-banner-content {
display: flex;
align-items: flex-start;
padding-left: 30px;
padding-right: 30px;
}

#page-banner-content img {
fill: #384a51;
min-width: 18px;
min-height: 18px;
margin-right: 5.3px;
}

#page-banner-content p {
font-size: 13px;
padding: 0;
margin: 0;
}

#main-container {
margin-top: min(106px, 12vh);
margin-bottom: min(106px, calc(12vh + 61px));
display: flex;
justify-content: center;
margin-left: 57px;
margin-right: 57px;
}

#main-message h3 {
font-size: 18px;
font-weight: 600;
line-height: 1.36;
color: #384a51;
margin-top: 0;
margin-bottom: 0;
}

#main-message p {
margin-top: 15px;
margin-bottom: 30px;
}

#main-message button {
width: 211px;
height: 44px;
border-radius: 40px;
border: solid 1px #456682;
background-color: #456682;
/* Styles adopted by MUI contained buttons. */
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
cursor: pointer;
outline: 0;
}

#main-message button:hover {
background-color: #384a51;
}

@media only screen and (min-width: 960px) {
body {
flex-direction: column-reverse;
justify-content: flex-end;
}

#main-message h3 {
font-size: 22px;
}

#main-container {
margin-top: 174px;
margin-bottom: 113px;
}

#page-banner {
top: 0;
}

#page-banner-content {
align-items: center;
}
}

/* New transition page stuff */

.masthead-root {
padding: 6px 30px;
}
Expand Down Expand Up @@ -188,6 +73,7 @@ button {

.bottom-half {
text-align: center;
min-height: 250px;
}

.bottom-half > p {
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/transition-page.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
<div class="top-half-content">
<h3>Check your address bar</h3>
<a href="https://go.gov.sg/go-antiphishing" target="_blank" rel="noreferrer noopener">Beware of phishing! Make sure your link starts with go.gov.sg</a>
<img class="loading-image" src="./assets/transition-page/images/loading.gif" alt="loading" />
<div class="browser-image">
<div class="links">go.gov.sg/</div>
</div>
</div>
</div>
<div class="bottom-half">
<p id="url" data-href="<%- escapedLongUrl %>">You will be redirected in <span id="countdown-seconds">8</span> second<span id="s">s</span></p>
<img class="loading-image" src="./assets/transition-page/images/loading.gif" alt="loading" />
<div class="footer">
<img src="./assets/transition-page/icons/go-logo.svg" alt="go logo" />
<p>You will only be shown this page the first time you access this short link.</p>
Expand Down

0 comments on commit ca140c9

Please sign in to comment.