UNPKG

passbolt-styleguide

Version:

Passbolt styleguide contains common styling assets used by the different sites, plugin, etc.

106 lines (102 loc) 3.86 kB
/** * Passbolt ~ Open source password manager for teams * Copyright (c) Passbolt SA (https://www.passbolt.com) * * Licensed under GNU Affero General Public License version 3 of the or any later version. * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com) * @license https://opensource.org/licenses/AGPL-3.0 AGPL License * @link https://www.passbolt.com Passbolt(tm) * @since 5.5.0 */ import React from "react"; import PropTypes from "prop-types"; import { Trans, withTranslation } from "react-i18next"; import { withAppContext } from "../../../../shared/context/AppContext/AppContext"; import { createSafePortal } from "../../../../shared/utils/portals"; import BuoySVG from "../../../../img/svg/buoy.svg"; import RedCheck from "../../../../img/svg/red_check.svg"; import FrameSVG from "../../../../img/svg/Frame.svg"; class DisplayPasswordPoliciesAdministrationTeasing extends React.Component { /** * Render the component * @returns {JSX} */ render() { return ( <div className="row"> <div className="password-policies-settings-teasing main-column"> <div className="main-content"> <h3 className="title" id="password-policies-settings-title"> <Trans>Password Policy</Trans> <FrameSVG className="pro-teasing-icon" /> </h3> <p> <Trans>Ensure strong and consistent passwords entropy across your organisation.</Trans> </p> <div className="password-policies-info"> <ul className="password-policies-description"> <li> <RedCheck /> <Trans>Reduce the risk of weak passwords.</Trans> </li> <li> <RedCheck /> <Trans>Enforce complexity requirements.</Trans> </li> <li> <RedCheck /> <Trans>Ensure compliance with internal security standards.</Trans> </li> </ul> <div> <a className="button primary" href="https://www.passbolt.com/ce-to-pro?utm_campaign=21060976-CE%20to%20Pro&utm_source=product" target="_blank" rel="noopener noreferrer" > <Trans>Upgrade to Passbolt Pro</Trans> </a> </div> </div> </div> </div> {createSafePortal( <> <div className="sidebar-help-section"> <h3> <Trans>Need some help?</Trans> </h3> <p> <Trans> For more information about the password policy settings, checkout the dedicated page on the help website. </Trans> </p> <a className="button" href="https://passbolt.com/docs/admin/password-configuration/password-policy/" target="_blank" rel="noopener noreferrer" > <BuoySVG /> <span> <Trans>Read the documentation</Trans> </span> </a> </div> </>, document.getElementById("administration-help-panel"), )} </div> ); } } DisplayPasswordPoliciesAdministrationTeasing.propTypes = { context: PropTypes.object, // Application context t: PropTypes.func, // The translation function }; export default withAppContext(withTranslation("common")(DisplayPasswordPoliciesAdministrationTeasing));