From fc4432277601acb6dc44b3a4fdc850043fc93d9e Mon Sep 17 00:00:00 2001 From: Menaka Jayawardena Date: Sat, 7 Oct 2017 01:32:53 +0530 Subject: [PATCH] Styled 'Not found' error page. --- .../public/themes/default/default-theme.css | 20 +++++++++++++++++++ .../src/components/Error/NotFound.jsx | 19 ++++++++++++++++-- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/public/themes/default/default-theme.css b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/public/themes/default/default-theme.css index 5713e6779a..a1e6296243 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/public/themes/default/default-theme.css +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/public/themes/default/default-theme.css @@ -833,3 +833,23 @@ div.tab button.active { .data-table-row-cell { padding-top: 14px; } + +.error-code { + text-align: center; + font-family: Roboto-Medium; + font-weight: 800; + font-size: 15em; + color: #BaBaBa; +} + +.error-code p { + +} + +.error-text { + text-align: center; + font-family: Roboto-Regular; + font-size: 14px; + font-weight: 500; + color: #9e9e9e; +} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Error/NotFound.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Error/NotFound.jsx index 81a1b0320b..520c92d05d 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Error/NotFound.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/Error/NotFound.jsx @@ -16,6 +16,7 @@ * under the License. */ import React, {Component} from 'react'; +import {Col, Row} from "reactstrap"; /** * Error page. @@ -28,8 +29,22 @@ class Error extends Component { render() { return ( -
- 404 not found +
+ + +
+

404

+
+ +
+ + +
+

The page you are looking for doesn't exist or error occurred.

+

Please click here to go to App publisher home page.

+
+ +
); }