SetupPageHelp.tsx 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Copyright (C) 2021 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. import * as React from "react";
  15. import { observer } from "mobx-react";
  16. import styled from "styled-components";
  17. import { ThemePalette, ThemeProps } from "@src/components/Theme";
  18. import SetupPageTitle from "@src/components/modules/SetupModule/ui/SetupPageTitle";
  19. import OpenInNewIcon from "@src/components/ui/OpenInNewIcon";
  20. const Wrapper = styled.div``;
  21. const Help = styled.a`
  22. display: flex;
  23. align-items: center;
  24. color: ${ThemePalette.primary};
  25. cursor: pointer;
  26. text-decoration: none;
  27. max-width: 190px;
  28. margin-bottom: 16px;
  29. `;
  30. const OpenInNewIconWrapper = styled.div`
  31. ${ThemeProps.exactSize("16px")}
  32. position: relative;
  33. top: -2px;
  34. transform: scale(0.6);
  35. `;
  36. type Props = {
  37. style?: React.CSSProperties;
  38. };
  39. @observer
  40. class SetupPageHelp extends React.Component<Props> {
  41. render() {
  42. return (
  43. <Wrapper style={this.props.style}>
  44. <SetupPageTitle title="Coriolis® Help" />
  45. <p>
  46. Click the link below to view the Coriolis® documentation. There you
  47. can find all the help you need to get you started.
  48. </p>
  49. <Help href="https://cloudbase.it/coriolis-overview/" target="_blank">
  50. Coriolis® Documentation
  51. <OpenInNewIconWrapper
  52. dangerouslySetInnerHTML={{
  53. __html: OpenInNewIcon(ThemePalette.primary),
  54. }}
  55. />
  56. </Help>
  57. </Wrapper>
  58. );
  59. }
  60. }
  61. export default SetupPageHelp;