forked from p15670423/monkey
UI: Fix alignment in landing page. Remove dupplicate code for guardicore logo. Rewrite doc links.
This commit is contained in:
parent
aed3a8358d
commit
9119a49bff
|
@ -4,16 +4,15 @@ import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
||||||
import {faCheck} from '@fortawesome/free-solid-svg-icons/faCheck';
|
import {faCheck} from '@fortawesome/free-solid-svg-icons/faCheck';
|
||||||
import {faUndo} from '@fortawesome/free-solid-svg-icons/faUndo';
|
import {faUndo} from '@fortawesome/free-solid-svg-icons/faUndo';
|
||||||
import {faExternalLinkAlt} from '@fortawesome/free-solid-svg-icons';
|
import {faExternalLinkAlt} from '@fortawesome/free-solid-svg-icons';
|
||||||
import VersionComponent from './side-menu/VersionComponent';
|
|
||||||
import '../styles/components/SideNav.scss';
|
import '../styles/components/SideNav.scss';
|
||||||
import {CompletedSteps} from "./side-menu/CompletedSteps";
|
import {CompletedSteps} from "./side-menu/CompletedSteps";
|
||||||
import {isReportRoute, Routes} from "./Main";
|
import {isReportRoute, Routes} from "./Main";
|
||||||
|
|
||||||
|
|
||||||
const guardicoreLogoImage = require('../images/guardicore-logo.png');
|
|
||||||
const logoImage = require('../images/monkey-icon.svg');
|
const logoImage = require('../images/monkey-icon.svg');
|
||||||
const infectionMonkeyImage = require('../images/infection-monkey.svg');
|
const infectionMonkeyImage = require('../images/infection-monkey.svg');
|
||||||
|
|
||||||
|
import Logo from "./logo/LogoComponent";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
disabled?: boolean,
|
disabled?: boolean,
|
||||||
|
@ -97,21 +96,7 @@ const SideNavComponent = ({disabled,
|
||||||
</NavLink></li>
|
</NavLink></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<hr/>
|
<Logo/>
|
||||||
<div className='guardicore-link text-center' style={{'marginBottom': '0.5em'}}>
|
|
||||||
<span>Powered by</span>
|
|
||||||
<a href='http://www.guardicore.com' rel='noopener noreferrer' target='_blank'>
|
|
||||||
<img src={guardicoreLogoImage} alt='GuardiCore'/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div className='license-link text-center'>
|
|
||||||
<a href='https://www.guardicore.com/infectionmonkey/docs' rel="noopener noreferrer" target="_blank">
|
|
||||||
<FontAwesomeIcon icon={faExternalLinkAlt} /> Documentation
|
|
||||||
</a>
|
|
||||||
<br/>
|
|
||||||
<NavLink to={Routes.LicensePage}>License</NavLink>
|
|
||||||
</div>
|
|
||||||
<VersionComponent/>
|
|
||||||
</>);
|
</>);
|
||||||
|
|
||||||
function getNavLinkClass() {
|
function getNavLinkClass() {
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
import React from 'react';
|
||||||
|
import {Link} from 'react-router-dom';
|
||||||
|
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
||||||
|
import {faExternalLinkAlt} from '@fortawesome/free-solid-svg-icons';
|
||||||
|
import {Routes} from '../Main';
|
||||||
|
import VersionComponent from './VersionComponent';
|
||||||
|
|
||||||
|
const guardicoreLogoImage = require('../../images/guardicore-logo.png');
|
||||||
|
|
||||||
|
function Logo() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<hr/>
|
||||||
|
<div className='guardicore-link text-center' style={{'marginBottom': '0.5em'}}>
|
||||||
|
<span>Powered by</span>
|
||||||
|
<a href='http://www.guardicore.com' rel='noopener noreferrer' target='_blank'>
|
||||||
|
<img src={guardicoreLogoImage} alt='GuardiCore'/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div className='license-link text-center'>
|
||||||
|
<a href='https://www.guardicore.com/infectionmonkey/docs' rel="noopener noreferrer" target="_blank">
|
||||||
|
<FontAwesomeIcon icon={faExternalLinkAlt} /> Documentation
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
<Link to={Routes.LicensePage}>License</Link>
|
||||||
|
</div>
|
||||||
|
<VersionComponent/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Logo;
|
|
@ -2,21 +2,18 @@ import React from 'react';
|
||||||
import {Col, Row} from 'react-bootstrap';
|
import {Col, Row} from 'react-bootstrap';
|
||||||
import {Link} from 'react-router-dom';
|
import {Link} from 'react-router-dom';
|
||||||
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
|
||||||
import {faExternalLinkAlt} from '@fortawesome/free-solid-svg-icons';
|
|
||||||
import {faFileCode, faLightbulb} from '@fortawesome/free-solid-svg-icons';
|
import {faFileCode, faLightbulb} from '@fortawesome/free-solid-svg-icons';
|
||||||
import '../../styles/pages/LandingPage.scss';
|
import '../../styles/pages/LandingPage.scss';
|
||||||
import IslandHttpClient from "../IslandHttpClient";
|
import IslandHttpClient from "../IslandHttpClient";
|
||||||
import VersionComponent from '../side-menu/VersionComponent';
|
|
||||||
import {Routes} from "../Main";
|
|
||||||
|
|
||||||
const guardicoreLogoImage = require('../../images/guardicore-logo.png');
|
import Logo from "../logo/LogoComponent";
|
||||||
|
|
||||||
const LandingPageComponent = (props) => {
|
const LandingPageComponent = (props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}}
|
<Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}}
|
||||||
lg={{offset: 3, span: 9}} xl={{offset: 2, span: 7}}
|
lg={{offset: 3, span: 9}} xl={{offset: 3, span: 6}}
|
||||||
className={'landing-page'}>
|
className={'landing-page'}>
|
||||||
<h1 className="page-title">Breach & Attack Simulation</h1>
|
<h1 className="page-title">Breach & Attack Simulation</h1>
|
||||||
<div style={{'fontSize': '1.2em'}}>
|
<div style={{'fontSize': '1.2em'}}>
|
||||||
|
@ -26,10 +23,9 @@ const LandingPageComponent = (props) => {
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
<Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}}
|
<Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}}
|
||||||
lg={{offset: 3, span: 9}} xl={{offset: 2, span: 7}}
|
lg={{offset: 3, span: 9}} xl={{offset: 3, span: 6}}
|
||||||
className={'guardicore-logo'}>
|
className={'guardicore-logo'}>
|
||||||
<hr/>
|
<Logo/>
|
||||||
<GuardicoreLogo/>
|
|
||||||
</Col>
|
</Col>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -94,36 +90,13 @@ function ScenarioInfo() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={'scenario-info'}>
|
<div className={'scenario-info'}>
|
||||||
Check monkey documentation hub for better explanation
|
Check the Infection Monkey documentation hub for more information
|
||||||
on <a href='https://www.guardicore.com/infectionmonkey/docs' rel="noopener noreferrer" target="_blank">
|
on <a href='https://www.guardicore.com/infectionmonkey/docs' rel="noopener noreferrer" target="_blank">
|
||||||
Ransomware
|
simulations
|
||||||
</a> and <a href='https://www.guardicore.com/infectionmonkey/docs' rel="noopener noreferrer" target="_blank">
|
</a>.
|
||||||
Custom
|
|
||||||
</a> simulations.
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function GuardicoreLogo() {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div className='guardicore-link text-center' style={{'marginBottom': '0.5em'}}>
|
|
||||||
<span>Powered by</span>
|
|
||||||
<a href='http://www.guardicore.com' rel='noopener noreferrer' target='_blank'>
|
|
||||||
<img src={guardicoreLogoImage} alt='GuardiCore'/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div className='license-link text-center'>
|
|
||||||
<a href='https://www.guardicore.com/infectionmonkey/docs' rel="noopener noreferrer" target="_blank">
|
|
||||||
<FontAwesomeIcon icon={faExternalLinkAlt} /> Documentation
|
|
||||||
</a>
|
|
||||||
<br/>
|
|
||||||
<Link to={Routes.LicensePage}>License</Link>
|
|
||||||
</div>
|
|
||||||
<VersionComponent/>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default LandingPageComponent;
|
export default LandingPageComponent;
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
.landing-page .d-block {
|
.landing-page .d-block {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.guardicore-logo {
|
.guardicore-logo {
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
|
|
Loading…
Reference in New Issue