1
0
mirror of https://github.com/beestat/app.git synced 2025-05-23 18:04:14 -04:00

Updated logo

This commit is contained in:
Jon Ziebell 2021-02-09 20:40:46 -05:00
parent 4e8506b9cc
commit 36f4e49d8f
13 changed files with 18 additions and 25 deletions

View File

@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#222222">
<meta name="theme-color" content="#263238">
<link rel="manifest" href="/manifest.json">
<link href="../css/dashboard.css" rel="stylesheet">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -58,8 +58,11 @@ beestat.component.header.prototype.decorate_ = function(parent) {
var column_logo = $.createElement('div').style({'padding': gutter + 'px 0 0 ' + gutter + 'px'});
row.appendChild(column_logo);
if (beestat.width > 600) {
column_logo.style({'flex': '0 0 160px'});
(new beestat.component.logo()).render(column_logo);
column_logo.style({
'flex': '0 0 160px',
'margin': '8px 0 4px 0'
});
(new beestat.component.logo(32)).render(column_logo);
} else {
column_logo.style({'flex': '0 0 32px'});
var img = $.createElement('img')

View File

@ -1,7 +1,10 @@
/**
* Beestat two-color text logo.
* Logo
*
* @param {number} height The height of the logo
*/
beestat.component.logo = function() {
beestat.component.logo = function(height) {
this.height_ = height || 48;
beestat.component.apply(this, arguments);
};
beestat.extend(beestat.component.logo, beestat.component);
@ -12,23 +15,10 @@ beestat.extend(beestat.component.logo, beestat.component);
* @param {rocket.Elements} parent
*/
beestat.component.logo.prototype.decorate_ = function(parent) {
var logo = $.createElement('div');
logo.style({
'font-weight': beestat.style.font_weight.light,
'font-size': '40px',
'font-family': 'Montserrat'
});
var bee = $.createElement('span');
bee.innerHTML('bee');
bee.style('color', beestat.style.color.yellow.light);
var stat = $.createElement('span');
stat.innerHTML('stat');
stat.style('color', beestat.style.color.green.light);
logo.appendChild(bee);
logo.appendChild(stat);
const logo = $.createElement('img')
.setAttribute('src', 'img/logo.png')
.style({
'height': this.height_ + 'px'
});
parent.appendChild(logo);
};

View File

@ -9,6 +9,6 @@
],
"start_url": "/",
"display": "standalone",
"background_color": "#37474f",
"theme_color": "#37474f"
"background_color": "#263238",
"theme_color": "#263238"
}