github.com/minio/console@v1.4.1/web-app/src/screens/NotFoundPage.tsx (about)

     1  // This file is part of MinIO Console Server
     2  // Copyright (c) 2021 MinIO, Inc.
     3  //
     4  // This program is free software: you can redistribute it and/or modify
     5  // it under the terms of the GNU Affero General Public License as published by
     6  // the Free Software Foundation, either version 3 of the License, or
     7  // (at your option) any later version.
     8  //
     9  // This program is distributed in the hope that it will be useful,
    10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12  // GNU Affero General Public License for more details.
    13  //
    14  // You should have received a copy of the GNU Affero General Public License
    15  // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    16  
    17  import React from "react";
    18  import { PageLayout, Box } from "mds";
    19  import Copyright from "../common/Copyright";
    20  
    21  const NotFound: React.FC = () => {
    22    return (
    23      <PageLayout>
    24        <Box
    25          sx={{
    26            display: "flex",
    27            alignItems: "center",
    28            justifyContent: "center",
    29            height: "100%",
    30            textAlign: "center",
    31            margin: "auto",
    32            flexFlow: "column",
    33          }}
    34        >
    35          <Box
    36            sx={{
    37              fontSize: "110%",
    38              margin: "0 0 0.25rem",
    39              color: "#909090",
    40            }}
    41          >
    42            404 Error
    43          </Box>
    44          <Box
    45            sx={{
    46              fontStyle: "normal",
    47              fontSize: "clamp(2rem,calc(2rem + 1.2vw),3rem)",
    48              fontWeight: 700,
    49            }}
    50          >
    51            Sorry, the page could not be found.
    52          </Box>
    53          <Box sx={{ marginTop: 20 }}>
    54            <Copyright />
    55          </Box>
    56        </Box>
    57      </PageLayout>
    58    );
    59  };
    60  
    61  export default NotFound;