diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/img/404-image.png b/openmetadata-ui/src/main/resources/ui/src/assets/img/404-image.png new file mode 100644 index 00000000000..fc9350fb111 Binary files /dev/null and b/openmetadata-ui/src/main/resources/ui/src/assets/img/404-image.png differ diff --git a/openmetadata-ui/src/main/resources/ui/src/assets/svg/404-number.svg b/openmetadata-ui/src/main/resources/ui/src/assets/svg/404-number.svg new file mode 100644 index 00000000000..14f4bc3f236 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/assets/svg/404-number.svg @@ -0,0 +1,3 @@ + + + diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/page-not-found/index.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/page-not-found/index.tsx index 626b3086c7d..c04585a6b3e 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/page-not-found/index.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/page-not-found/index.tsx @@ -13,33 +13,47 @@ import React from 'react'; import { Link } from 'react-router-dom'; +import notFoundImage from '../../assets/img/404-image.png'; +import notFoundNumber from '../../assets/svg/404-number.svg'; import { Button } from '../../components/buttons/Button/Button'; -import ErrorPlaceHolder from '../../components/common/error-with-placeholder/ErrorPlaceHolder'; -import PageContainer from '../../components/containers/PageContainer'; +import { ROUTES } from '../../constants/constants'; const PageNotFound = () => { return ( - -
- -
- - - - - - +
+
+ not found +
+
+
+
+

+ Page Not Found +

+

+ The page you are looking for is not available +

+
+ + + + + + +
+
+
+
+ not found
- +
); }; diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/tailwind.css b/openmetadata-ui/src/main/resources/ui/src/styles/tailwind.css index f339ce2ac80..282a0eaef51 100644 --- a/openmetadata-ui/src/main/resources/ui/src/styles/tailwind.css +++ b/openmetadata-ui/src/main/resources/ui/src/styles/tailwind.css @@ -38,6 +38,16 @@ @apply tw-text-body tw-text-grey-body tw-font-normal; } + /* utils */ + + .tw-flex-center { + @apply tw-flex tw-justify-center tw-items-center; + } + + .tw-hw-full { + @apply tw-w-full tw-h-full; + } + .tw-table { @apply tw-w-full; } diff --git a/openmetadata-ui/src/main/resources/ui/src/styles/x-master.css b/openmetadata-ui/src/main/resources/ui/src/styles/x-master.css index acda28128f5..5b5faf9ce52 100644 --- a/openmetadata-ui/src/main/resources/ui/src/styles/x-master.css +++ b/openmetadata-ui/src/main/resources/ui/src/styles/x-master.css @@ -910,3 +910,24 @@ code { .public-DraftStyleDefault-block { margin: 0; } + +/* page not found css */ + +.page-not-found-container { + width: 100%; + height: calc(100% - 68px); + display: flex; +} + +.page-not-found-container::after, +.page-not-found-container::before { + content: ''; + width: 100%; +} + +.page-not-found-container::after { + background-color: #f8f9fa; +} +.page-not-found-container::before { + background-color: #fff; +}