Skip to content

Commit 7eee902

Browse files
author
Parth Shah
committed
Merge branch 'hotfix/maint-page' into dev
2 parents bf844c1 + 8990b32 commit 7eee902

File tree

4 files changed

+77
-1
lines changed

4 files changed

+77
-1
lines changed

src/components/Layout/Layout.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import _ from 'lodash'
22
import React from 'react'
33
import TopBarContainer from '../TopBar/TopBarContainer'
44
import Footer from '../Footer/Footer'
5-
import { DOMAIN } from '../../config/constants'
5+
import { DOMAIN, MAINTENANCE_MODE } from '../../config/constants'
66
import Alert from 'react-s-alert'
7+
import Maintenance from '../Maintenance/Maintenance'
78

89
require('./Layout.scss')
910

@@ -23,6 +24,8 @@ const Layout = (props) => {
2324
}
2425
if (isLoadingUser) {
2526
return (<div />)
27+
} else if (MAINTENANCE_MODE) {
28+
return (<Maintenance />)
2629
} else {
2730
return (
2831
<div>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React, {PropTypes} from 'react'
2+
import './Maintenance.scss'
3+
4+
const Maintenance = () => {
5+
return (
6+
<section className="content content-error">
7+
<div className="container">
8+
<div className="page-error">
9+
<h3>Welcome to Topcoder Connect</h3>
10+
<p>We are temporarily down for maintenance. We will be back shortly, after Coder is done with all the amazing optimizations.</p>
11+
</div>
12+
</div>
13+
</section>
14+
)
15+
}
16+
17+
export default Maintenance
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
@import 'tc-includes';
2+
3+
.content.content-error {
4+
.container {
5+
width: 1220px;
6+
background: $tc-gray-neutral-dark;
7+
}
8+
}
9+
10+
.page-error {
11+
border-radius:4px;
12+
position: relative;
13+
padding-top: 55px;
14+
text-align: center;
15+
min-height: 606px;
16+
min-width: 768px;
17+
width: 970px;
18+
margin: 20px auto 0;
19+
background: $tc-white url('../../assets/images/coder-broken.svg') no-repeat 18% 85%;
20+
background-size: 307px 300px;
21+
a{
22+
color: $tc-dark-blue;
23+
&:hover {
24+
text-decoration: underline;
25+
}
26+
}
27+
h3{
28+
color: $tc-gray-70;
29+
@include roboto-medium;
30+
font-size: 48px;
31+
letter-spacing: 0px;
32+
padding: 0 168px 25px 168px;
33+
line-height: inherit;
34+
}
35+
p{
36+
text-align: left;
37+
padding: 0 168px;
38+
@include roboto;
39+
font-size: $tc-label-lg;
40+
color: $tc-gray-70;
41+
letter-spacing: 0px;
42+
line-height: 23px;
43+
}
44+
span{
45+
position: absolute;
46+
left: 49%;
47+
top: 45%;
48+
@include roboto-medium;
49+
font-size: 190px;
50+
color: $tc-orange-30;
51+
letter-spacing: 0px;
52+
}
53+
}

src/config/constants.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,6 @@ export const PROJECT_MAX_COLORS = 5
215215
export const AUTOCOMPLETE_TRIGGER_LENGTH = 3
216216

217217
export const HEAP_ANALYTICS_APP_ID = process.env.HEAP_ANALYTICS_APP_ID || '4153837120'
218+
219+
// Toggle this flag to enable/disable maintenance mode
220+
export const MAINTENANCE_MODE = false

0 commit comments

Comments
 (0)