Skip to content

Commit

Permalink
update logo and nav formatting, closes #122
Browse files Browse the repository at this point in the history
  • Loading branch information
ardunn committed Oct 20, 2019
1 parent e8a18c9 commit 86790e6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions matscholar_web/about/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from matscholar_web.common import common_info_box, \
common_header_style, common_body_style, common_title_style, \
common_stat_style
from matscholar_web.logo import get_logo

def serve_layout():
introduction = get_introduction()
Expand All @@ -17,7 +18,7 @@ def serve_layout():


def get_introduction():
introduction_header_txt = "Matscholar"
logo = get_logo()
introduction_subheader_txt = \
"A scholarly (AI) assistant for materials science \n"
introduction_body_txt = \
Expand Down Expand Up @@ -90,8 +91,6 @@ def get_introduction():
reference_2_md = dcc.Markdown(reference_2_txt)
funding_md = dcc.Markdown(funding_body_txt)

introduction_header = html.Div(introduction_header_txt,
className=common_title_style())
introduction_subheader = html.Div(introduction_subheader_txt,
className=common_header_style())
publication_header = html.Div(publication_header_txt,
Expand All @@ -114,7 +113,7 @@ def get_introduction():
funding_body = html.Div(funding_md, className=common_body_style())

elements = [
introduction_header,
logo,
introduction_subheader,
introduction_body,
current_stats,
Expand Down
Binary file modified matscholar_web/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified matscholar_web/assets/logo_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion matscholar_web/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
app_container = html.Div("", id="app_container", className="container is-fluid")
app_expander = html.Div(app_container, className="msweb-is-tall")
app_expander_container = html.Div(app_expander,
className="msweb-is-tall-container msweb-fade-in")
className="msweb-is-tall-container msweb-fade-in has-margin-top-50")


external_stylesheets = \
Expand Down
2 changes: 1 addition & 1 deletion matscholar_web/logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def get_logo():
header_container = html.Div(
header_centering,
id="header_container",
className="container has-margin-bottom-30 has-margin-top-80"
className="container has-margin-bottom-30 has-margin-top-50"
)
return header_container
2 changes: 1 addition & 1 deletion matscholar_web/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_nav():
src="/assets/logo_inverted.png",
height=200,
)
nav_image_container = html.A(nav_image, className="navbar-item")
nav_image_container = html.A(nav_image, className="navbar-item", href="/search")

burger = html.Span(**{"aria-hidden": True})
nav_burger = html.A([burger] * 3, id="primary-burger-trigger", role="button", className="navbar-burger", **{"aria-label": "menu", "aria-expanded": False, "data-target": navbar_menu_id})
Expand Down

0 comments on commit 86790e6

Please sign in to comment.