Hi everyone!
I am building a webapp for myself which would function as my CV.
This is how the top of my CV looks like.
My code is below.
Question: How do I change placemement and font size of the “dbc.NavbarBrand” element? I would like for “Curriculum Vitae” to be written right in the center of the page and in a bigger font.
from email import header
import dash
from dash import Dash, html
import dash_bootstrap_components as dbc
app=Dash(__name__, use_pages=True, external_stylesheets=[dbc.themes.SUPERHERO])
server = app.server
header=dbc.Navbar(
dbc.Container(
[
dbc.Row(
[dbc.Col([
dbc.Nav(
[
dbc.NavLink(page["name"],href=page["path"])
for page in dash.page_registry.values()
if not page["path"].startswith("/app")
]
)
]
),
dbc.Col([dbc.NavbarBrand("Curriculum Vitae", className="ms-2")])
])
],
fluid=True #spaces from left and right
),
dark=True,
fixed="top",
color="dark" #can make the NavBar "transparent" if needed
)
#fluid=False creates spaces from left and right
#dsh.page_container updates the link (adds "/contacts" if clicked on "Contacts" page)
app.layout=dbc.Container(
[
header,
html.Br(),
html.Br(),
html.Br(),
dash.page_container
],
fluid=False
)
if __name__=="__main__":
app.run_server(debug=False)
Thanks for all the help in advance!