chore: Revised logo (new color), w/CSS for vert alignment (#10237)

* out with the old, in with the new

* vertically centering logo once and for all

* lint: black instead of IDE formating

* touch config.py

* Styles -> StyledHeader

* nixing vestigial SVG

* removing trademark

Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com>
This commit is contained in:
Evan Rusackas 2020-07-06 17:30:18 -07:00 committed by GitHub
parent b9e0678752
commit 569e4a7c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -73,7 +73,7 @@ const defaultProps = {
],
brand: {
path: '/superset/profile/admin/',
icon: '/static/assets/images/superset-logo@2x.png',
icon: '/static/assets/images/superset-logo-horiz.png',
alt: 'Superset',
width: '126',
},

View File

@ -20,6 +20,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { t } from '@superset-ui/translation';
import { Nav, Navbar, NavItem } from 'react-bootstrap';
import styled from '@superset-ui/style';
import MenuObject from './MenuObject';
import NewMenu from './NewMenu';
import UserMenu from './UserMenu';
@ -51,11 +52,19 @@ const propTypes = {
}).isRequired,
};
const StyledHeader = styled.header`
.navbar-brand {
display: flex;
flex-direction: column;
justify-content: center;
}
`;
export default function Menu({
data: { menu, brand, navbar_right: navbarRight },
}) {
return (
<header className="top" id="main-menu">
<StyledHeader className="top" id="main-menu">
<Navbar inverse fluid staticTop role="navigation">
<Navbar.Header>
<Navbar.Brand>
@ -114,7 +123,7 @@ export default function Menu({
)}
</Nav>
</Navbar>
</header>
</StyledHeader>
);
}

View File

@ -194,7 +194,7 @@ PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, "x_host": 1, "x_port": 1, "x_prefi
APP_NAME = "Superset"
# Uncomment to setup an App icon
APP_ICON = "/static/assets/images/superset-logo@2x.png"
APP_ICON = "/static/assets/images/superset-logo-horiz.png"
APP_ICON_WIDTH = 126
# Uncomment to specify where clicking the logo would take the user