UnauthorizedPage.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import React from "react";
  2. import styled from "styled-components";
  3. const UnauthorizedPage: React.FunctionComponent = () => (
  4. <StyledUnauthorizedPage>
  5. <Mega>
  6. 401
  7. <Inside>You're not authorized to access this page</Inside>
  8. </Mega>
  9. </StyledUnauthorizedPage>
  10. );
  11. export default UnauthorizedPage;
  12. const StyledUnauthorizedPage = styled.div`
  13. font-family: "Work Sans", sans-serif;
  14. color: #6f6f6f;
  15. font-size: 16px;
  16. user-select: none;
  17. padding-bottom: 20px;
  18. width: 100%;
  19. height: 100%;
  20. display: flex;
  21. flex-direction: column;
  22. align-items: center;
  23. justify-content: center;
  24. `;
  25. const Mega = styled.div`
  26. font-size: 200px;
  27. color: #ffffff06;
  28. position: relative;
  29. font-weight: bold;
  30. text-align: center;
  31. > i {
  32. font-size: 23px;
  33. margin-right: 12px;
  34. }
  35. `;
  36. const Inside = styled.div`
  37. position: absolute;
  38. color: #6f6f6f;
  39. top: 0;
  40. left: 0;
  41. width: 100%;
  42. height: 100%;
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. font-weight: 400;
  47. font-size: 20px;
  48. > i {
  49. font-size: 23px;
  50. margin-right: 12px;
  51. }
  52. `;