Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Option for logo only visible on 'home' page
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrozyn committed May 10, 2019
1 parent 0aebf18 commit 0efb92b
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 19 deletions.
3 changes: 1 addition & 2 deletions meteor/client/menu.html
Expand Up @@ -11,8 +11,7 @@
<div id="header" class="row center">
<span id="nav-main">
<ul>
<li><img class="mozillalogo" src="/images/mozilla.svg"></li>
<li><a class="mozdef" href="/" title="MOZDEF">MOZDEF</a></li>
<li><a href="/">Home</a></li>
{{#if isFeature "kibana"}}
<li> <a target="_blank" href={{ resolveKibanaURL mozdef.kibanaURL }}>Kibana</a>
<ul>
Expand Down
5 changes: 3 additions & 2 deletions meteor/client/mozdef.html
Expand Up @@ -8,7 +8,7 @@
<head>
<meta name="viewport" content="width=1024">
<link rel="shortcut icon" type="image/svg" href="/images/favicon.ico" />
<title>mozdef::mozilla defense platform</title>
<title>mozdef::mozilla enterprise defense platform</title>
</head>

<body>
Expand Down Expand Up @@ -58,7 +58,8 @@
<template name="hello">
<div class="container">
<div class="row center">
<p class="welcome">{{greeting}}<br>Hand made by Mozilla</p>
<!--a nice greeting-->
<p class="welcome"><img class="mozdeflogo" src="/images/moz_defense-platform_01.png"><br/>{{greeting}}</p>
</div>
</div>
</template>
Expand Down
4 changes: 2 additions & 2 deletions meteor/client/mozdef.js
Expand Up @@ -174,14 +174,14 @@ if ( Meteor.isClient ) {
greeting: function() {
if ( typeof console !== 'undefined' )
console.log( "mozdef starting" );
return "MozDef: The Mozilla Defense Platform";
return "Hand Made by Mozilla";
}
} );

Template.hello.events( {
'click': function() {
// template data, if any, is available in 'this'
Session.set( 'displayMessage', 'Welcome &amp; to mozdef.' )
Session.set( 'displayMessage', 'Welcome to mozdef.' )
}
} );

Expand Down
19 changes: 15 additions & 4 deletions meteor/imports/themes/classic/mozdef.css
Expand Up @@ -81,6 +81,21 @@ caption, legend {
overflow: visible;
}

/* Home Page Styling */
.welcome {
height: 180px;
width: 600px;
margin-left: 25%;
text-align: center;
color: var(--txt-primary-color);
vertical-align: middle;
}

.mozdeflogo{
width: 500px;
vertical-align: middle;
}

#bottom-toolbar {
background: var(--bg-secondary-color);
width: 100%;
Expand Down Expand Up @@ -285,10 +300,6 @@ td{
color: var(--txt-primary-color);
}

.welcome {
text-align: center;
}

.tabcontent{
margin-top: 20px;
}
Expand Down
20 changes: 15 additions & 5 deletions meteor/imports/themes/dark/mozdef.css
Expand Up @@ -61,6 +61,21 @@ caption, legend {
overflow: visible;
}

/* Home Page Styling */
.welcome {
height: 180px;
width: 600px;
margin-left: 25%;
text-align: center;
color: var(--txt-primary-color);
vertical-align: middle;
}

.mozdeflogo{
width: 500px;
vertical-align: middle;
}

#bottom-toolbar {
background: #444444;
width: 100%;
Expand Down Expand Up @@ -233,11 +248,6 @@ td{
color:white;
}


.welcome {
text-align: center;
}

.tabcontent{
margin-top: 20px;
}
Expand Down
25 changes: 21 additions & 4 deletions meteor/imports/themes/light/mozdef.css
Expand Up @@ -72,6 +72,27 @@ caption, legend {
overflow: visible;
}

/* Home Page Styling */
.welcome {
height: 180px;
width: 600px;
margin-left: 25%;
text-align: center;
color: var(--txt-primary-color);
vertical-align: middle;
}

.mozdeflogo{
width: 500px;
vertical-align: middle;
}

/* dc-chart empty color */
.dc-chart .empty-chart .pie-slice path {
fill: #bcb8b8;
cursor: default;
}

#bottom-toolbar {
background: var(--bg-secondary-color);
width: 100%;
Expand Down Expand Up @@ -282,10 +303,6 @@ td{
color: var(--txt-primary-color);
}

.welcome {
text-align: center;
}

.tabcontent{
margin-top: 20px;
}
Expand Down
Binary file added meteor/public/images/moz_defense-platform_01.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0efb92b

Please sign in to comment.