Skip to content

Commit 1b72d1d

Browse files
committed
Added maintenance page
1 parent d8da113 commit 1b72d1d

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React from 'react';
2+
3+
const Maintenance = () => {
4+
return (
5+
<div className="container text-center">
6+
<div className="m-top-wrapper">
7+
<h2 className="">
8+
We'll Be Back Soon
9+
</h2>
10+
<span>
11+
V Transfer is down for maintenance and expect
12+
<br/>
13+
to back online in a few days.
14+
</span>
15+
</div>
16+
<div className="m-middle-wrapper">
17+
<img
18+
src="https://res.cloudinary.com/code-gambit/image/upload/v1630442215/Web%20App/Software-maintenance-services_bwekc3.png"
19+
alt="Maintenance"
20+
className="maintenance-image"
21+
/>
22+
</div>
23+
</div>
24+
);
25+
};
26+
27+
export default Maintenance;

src/Routing.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { AuthContext } from "./Context/Contexts/AuthContext";
55
import Download from "./Components/Screens/Download";
66
import Authenticate from "./Components/Screens/Authentication";
77
import { Loading } from "./Components/Loading";
8+
import Maintenance from "./Components/Screens/Maintenance";
89

910
const HomePage = lazy(() => import("./Components/Screens/Homepage"));
1011
const Dashboard = lazy(() => import("./Components/Screens/Dashboard"));
@@ -30,6 +31,7 @@ const Routing = () => {
3031
history.push("/dashboard");
3132
}
3233
}
34+
history.push("/maintenance");
3335
return (
3436
<ErrorBoundary>
3537
<Suspense fallback={<Loading />}>
@@ -41,6 +43,7 @@ const Routing = () => {
4143
<Route exact path="/profile" component={Profile} />
4244
<Route exact path="/about" component={About} />
4345
<Route exact path="/:urlId" component={Download} />
46+
<Route exact path="/maintenance" component={Maintenance} />
4447
<Route>
4548
<Redirect to="/dashboard" /> <HomePage />
4649
</Route>
@@ -49,7 +52,8 @@ const Routing = () => {
4952
<Switch>
5053
<Route exact path="/about" component={About} />
5154
<Route exact path="/authenticate" component={Authenticate} />
52-
<Route exact path="/:urlId" component={Download} />
55+
<Route exact path="/maintenance" component={Maintenance} />
56+
<Route exact path="/:urlId" component={Download} />
5357
<Route exact path="/" component={HomePage} />
5458
</Switch>
5559
)}

src/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ a{
125125
.top-wrapper h1{
126126
max-width: 80%;
127127
}
128+
129+
.maintenance-image{
130+
width: 800px;
131+
max-width: 80%;
132+
max-height: 100%;
133+
}
134+
128135
@media screen and (max-width: 680px) {
129136
.url-card-wrapper:hover{
130137
transform: none;

0 commit comments

Comments
 (0)