Skip to content

Commit

Permalink
Added new header component using ssb dash (#249)
Browse files Browse the repository at this point in the history
* Added new header component using ssb dash

* Fixed no new line at the end of file

---------

Co-authored-by: rlj <[email protected]>
  • Loading branch information
Jorgen-5 and rlj authored Mar 26, 2024
1 parent d15fea3 commit 579ddbf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
17 changes: 17 additions & 0 deletions src/datadoc/assets/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.ssb-header-wrapper.datadoc-header {
border-bottom: 1px solid #C3DCDC;
padding: 0;
height: 80px;
margin: 0;

}

.ssb-title.main-title {
color: #274247;
padding: 0;
border-bottom: 0;
font-family: 'Roboto Condensed', sans-serif !important;
font-stretch: condensed;
font-weight: bold;
font-size: 2rem;
}
10 changes: 3 additions & 7 deletions src/datadoc/frontend/components/control_bars.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@

COLORS = {"dark_1": "#F0F8F9", "green_1": "#ECFEED", "green_4": "#00824D"}

header = dbc.CardBody(
dbc.Row(
children=[
html.H1("DataDoc", className="ssb-title", style={"color": "white"}),
],
),
style={"backgroundColor": COLORS["green_4"]},
header = ssb.Header(
[ssb.Title("DataDoc", size=1, id="main-title", className="main-title")],
className="datadoc-header",
)

progress_bar = dbc.CardBody(
Expand Down

0 comments on commit 579ddbf

Please sign in to comment.