forked from p15670423/monkey
Merge pull request #82 from guardicore/feature/update-island-theme
Feature/update island theme
This commit is contained in:
commit
7daafb0155
|
@ -69,7 +69,7 @@ class AppComponent extends React.Component {
|
||||||
<Row>
|
<Row>
|
||||||
<Col sm={3} md={2} className="sidebar">
|
<Col sm={3} md={2} className="sidebar">
|
||||||
<div className="header">
|
<div className="header">
|
||||||
<img src={logoImage} style={{width: '10vw'}}/>
|
<img src={logoImage} style={{width: '5vw', margin: '15px'}}/>
|
||||||
<img src={infectionMonkeyImage} style={{width: '15vw'}} alt="Infection Monkey"/>
|
<img src={infectionMonkeyImage} style={{width: '15vw'}} alt="Infection Monkey"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,7 @@ class ReportPageComponent extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
<div className="report-page">
|
<div className="report-page">
|
||||||
{this.generateReportHeader()}
|
{this.generateReportHeader()}
|
||||||
|
<hr/>
|
||||||
{this.generateReportOverviewSection()}
|
{this.generateReportOverviewSection()}
|
||||||
{this.generateReportFindingsSection()}
|
{this.generateReportFindingsSection()}
|
||||||
{this.generateReportRecommendationsSection()}
|
{this.generateReportRecommendationsSection()}
|
||||||
|
@ -139,19 +140,20 @@ class ReportPageComponent extends React.Component {
|
||||||
|
|
||||||
generateReportHeader() {
|
generateReportHeader() {
|
||||||
return (
|
return (
|
||||||
<div id="header">
|
<div id="header" className="row justify-content-between">
|
||||||
<div>
|
<Col xs={8}>
|
||||||
|
<div>
|
||||||
|
<h1 style={{marginTop: '0px', marginBottom: '5px', color: '#666666', fontFamily: 'Alegreya'}}>Security Report</h1>
|
||||||
|
<h1 style={{marginTop: '0px', marginBottom: '0px', color: '#ffcc00', fontFamily: 'Alegreya'}}>Infection <b>Monkey</b></h1>
|
||||||
|
</div>
|
||||||
|
</Col>
|
||||||
|
<Col xs={4}>
|
||||||
<img src={monkeyLogoImage}
|
<img src={monkeyLogoImage}
|
||||||
style={{
|
style={{
|
||||||
width: '100px',
|
float: 'right',
|
||||||
position: 'absolute',
|
width: '80px'
|
||||||
marginLeft: '-30px',
|
|
||||||
marginTop: '-60px',
|
|
||||||
}}/>
|
}}/>
|
||||||
</div>
|
</Col>
|
||||||
<h1 className="text-center">
|
|
||||||
Infection Monkey Report
|
|
||||||
</h1>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -159,9 +161,9 @@ class ReportPageComponent extends React.Component {
|
||||||
generateReportOverviewSection() {
|
generateReportOverviewSection() {
|
||||||
return (
|
return (
|
||||||
<div id="overview">
|
<div id="overview">
|
||||||
<h1>
|
<h2>
|
||||||
Overview
|
Overview
|
||||||
</h1>
|
</h2>
|
||||||
{
|
{
|
||||||
this.state.report.glance.exploited.length > 0 ?
|
this.state.report.glance.exploited.length > 0 ?
|
||||||
(<p className="alert alert-danger">
|
(<p className="alert alert-danger">
|
||||||
|
@ -271,9 +273,9 @@ class ReportPageComponent extends React.Component {
|
||||||
generateReportFindingsSection() {
|
generateReportFindingsSection() {
|
||||||
return (
|
return (
|
||||||
<div id="findings">
|
<div id="findings">
|
||||||
<h1>
|
<h3>
|
||||||
Security Findings
|
Security Findings
|
||||||
</h1>
|
</h3>
|
||||||
<div>
|
<div>
|
||||||
<h3>
|
<h3>
|
||||||
Immediate Threats
|
Immediate Threats
|
||||||
|
@ -350,9 +352,9 @@ class ReportPageComponent extends React.Component {
|
||||||
generateReportRecommendationsSection() {
|
generateReportRecommendationsSection() {
|
||||||
return (
|
return (
|
||||||
<div id="recommendations">
|
<div id="recommendations">
|
||||||
<h1>
|
<h3>
|
||||||
Recommendations
|
Recommendations
|
||||||
</h1>
|
</h3>
|
||||||
<div>
|
<div>
|
||||||
{this.generateIssues(this.state.report.recommendations.issues)}
|
{this.generateIssues(this.state.report.recommendations.issues)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -365,9 +367,9 @@ class ReportPageComponent extends React.Component {
|
||||||
(100 * this.state.report.glance.exploited.length) / this.state.report.glance.scanned.length;
|
(100 * this.state.report.glance.exploited.length) / this.state.report.glance.scanned.length;
|
||||||
return (
|
return (
|
||||||
<div id="glance">
|
<div id="glance">
|
||||||
<h1>
|
<h3>
|
||||||
The Network from the Monkey's Eyes
|
The Network from the Monkey's Eyes
|
||||||
</h1>
|
</h3>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
The Monkey discovered <span
|
The Monkey discovered <span
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
@import url('https://fonts.googleapis.com/css?family=Alegreya');
|
@import url('https://fonts.googleapis.com/css?family=Alegreya');
|
||||||
|
|
||||||
/* Base Application Styles */
|
/* Base Application Styles */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: #222;
|
background: #222;
|
||||||
|
@ -23,7 +24,7 @@ body {
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 1em;
|
padding: 0px !important;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
|
@ -34,6 +35,8 @@ body {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
|
background-color: #ffcc00;
|
||||||
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header img {
|
.header img {
|
||||||
|
@ -42,6 +45,7 @@ body {
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
@ -54,14 +58,12 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
li .number {
|
li .number {
|
||||||
color: #666;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 1.1em;
|
width: 1.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
li a {
|
li a {
|
||||||
/*color: #d30d09;*/
|
color: #333333;
|
||||||
color: #666;
|
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 1em;
|
||||||
margin: 0.1em 0;
|
margin: 0.1em 0;
|
||||||
|
@ -73,12 +75,12 @@ body {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
li a.active {
|
li a.active {
|
||||||
background: #fff;
|
background: #333333;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #d30d09;
|
color: #ffcc00;
|
||||||
}
|
}
|
||||||
li a.active:hover {
|
li a.active:hover {
|
||||||
color: #d30d09;
|
color: #ffcc00;
|
||||||
}
|
}
|
||||||
li a.disabled {
|
li a.disabled {
|
||||||
color: #666;
|
color: #666;
|
||||||
|
@ -93,6 +95,7 @@ body {
|
||||||
li .checkmark {
|
li .checkmark {
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
margin-right: -10px;
|
margin-right: -10px;
|
||||||
|
color: #ffcc00;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
|
@ -123,9 +126,9 @@ body {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
padding-bottom: 0.5em;
|
padding-bottom: 0.5em;
|
||||||
border-bottom: 2px dotted #d30d09;
|
border-bottom: 2px dotted #ffcc00;
|
||||||
font-size: 2.5em;
|
font-size: 2.5em;
|
||||||
color: #d30d09;
|
color: #ffcc00;
|
||||||
font-family: 'Alegreya', serif;
|
font-family: 'Alegreya', serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue