UI: Add tsparticles to landing-page. Stretched the landing page main

screen
This commit is contained in:
Ilija Lazoroski 2021-07-27 11:52:25 +02:00
parent 9119a49bff
commit 61229f259b
3 changed files with 26 additions and 17 deletions

View File

@ -1,32 +1,34 @@
import React from 'react';
import {Col, Row} from 'react-bootstrap';
import {Container,Col, Row} from 'react-bootstrap';
import {Link} from 'react-router-dom';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faFileCode, faLightbulb} from '@fortawesome/free-solid-svg-icons';
import '../../styles/pages/LandingPage.scss';
import IslandHttpClient from "../IslandHttpClient";
import ParticleBackground from '../ui-components/ParticleBackground';
import Logo from "../logo/LogoComponent";
const LandingPageComponent = (props) => {
return (
<>
<ParticleBackground/>
<Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}}
lg={{offset: 3, span: 9}} xl={{offset: 3, span: 6}}
className={'landing-page'}>
<h1 className="page-title">Breach & Attack Simulation</h1>
<div style={{'fontSize': '1.2em'}}>
<ScenarioButtons/>
<br/>
</div>
<h1 className="page-title">Breach & Attack Simulation</h1>
<div style={{'fontSize': '1.2em'}}>
<ScenarioButtons/>
<br/>
</div>
<br/>
<br/>
<Col className={'guardicore-logo'}>
<Logo/>
</Col>
</Col>
<Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}}
lg={{offset: 3, span: 9}} xl={{offset: 3, span: 6}}
className={'guardicore-logo'}>
<Logo/>
</Col>
</>
);
@ -86,13 +88,13 @@ function MonkeyInfo() {
}
function ScenarioInfo() {
// TODO change links when added to documentation
// TODO change link when scenarios are added to documentation
return (
<>
<div className={'scenario-info'}>
Check the Infection Monkey documentation hub for more information
on <a href='https://www.guardicore.com/infectionmonkey/docs' rel="noopener noreferrer" target="_blank">
simulations
scenarios
</a>.
</div>
</>

View File

@ -1,5 +1,5 @@
.particle-background {
position: absolute;
position: fixed;
top: 0;
left: 0;
z-index: -100;

View File

@ -1,3 +1,10 @@
.landing-page {
background-color: rgba(255, 255, 255, 0.89);
position: absolute !important;
height: 100%;
bottom: 0;
}
.landing-page h1.page-title {
margin-top: 20px;
margin-bottom: 20px;
@ -20,10 +27,10 @@
height: 100%;
}
.guardicore-logo {
margin-bottom: 0.5em;
position: absolute !important;
.landing-page .guardicore-logo {
position: absolute;
bottom: 0;
left: 0 !important;
}
.guardicore-logo .license-text {