NotFoundPage.jsx 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright (C) 2017 Cloudbase Solutions SRL
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. // @flow
  15. import React from 'react'
  16. import styled from 'styled-components'
  17. import Palette from '../../styleUtils/Palette'
  18. import EmptyTemplate from '../../templates/EmptyTemplate'
  19. const Wrapper = styled.div`
  20. position: absolute;
  21. top: 0;
  22. bottom: 0;
  23. right: 0;
  24. left: 0;
  25. display: flex;
  26. flex-direction: column;
  27. justify-content: center;
  28. align-items: center;
  29. `
  30. const Title = styled.div`
  31. font-size: 21px;
  32. color: ${Palette.grayscale[4]};
  33. `
  34. const Message = styled.div`
  35. margin-top: 16px;
  36. color: ${Palette.grayscale[8]};
  37. `
  38. const NotFoundPage = () => {
  39. return (
  40. <EmptyTemplate>
  41. <Wrapper>
  42. <Title>Page Not Found</Title>
  43. <Message>Sorry, but the page you are trying to view does not exist.</Message>
  44. </Wrapper>
  45. </EmptyTemplate>
  46. )
  47. }
  48. export default NotFoundPage