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 http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<!-- Chrome, Firefox OS and Opera --> <!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#222222"> <meta name="theme-color" content="#263238">
<link rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.json">
<link href="../css/dashboard.css" rel="stylesheet"> <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'}); var column_logo = $.createElement('div').style({'padding': gutter + 'px 0 0 ' + gutter + 'px'});
row.appendChild(column_logo); row.appendChild(column_logo);
if (beestat.width > 600) { if (beestat.width > 600) {
column_logo.style({'flex': '0 0 160px'}); column_logo.style({
(new beestat.component.logo()).render(column_logo); 'flex': '0 0 160px',
'margin': '8px 0 4px 0'
});
(new beestat.component.logo(32)).render(column_logo);
} else { } else {
column_logo.style({'flex': '0 0 32px'}); column_logo.style({'flex': '0 0 32px'});
var img = $.createElement('img') 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.component.apply(this, arguments);
}; };
beestat.extend(beestat.component.logo, beestat.component); beestat.extend(beestat.component.logo, beestat.component);
@ -12,23 +15,10 @@ beestat.extend(beestat.component.logo, beestat.component);
* @param {rocket.Elements} parent * @param {rocket.Elements} parent
*/ */
beestat.component.logo.prototype.decorate_ = function(parent) { beestat.component.logo.prototype.decorate_ = function(parent) {
var logo = $.createElement('div'); const logo = $.createElement('img')
logo.style({ .setAttribute('src', 'img/logo.png')
'font-weight': beestat.style.font_weight.light, .style({
'font-size': '40px', 'height': this.height_ + 'px'
'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);
parent.appendChild(logo); parent.appendChild(logo);
}; };

View File

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