Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphonse xavier 924 patch 3 #29

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions app/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,28 @@ body {
background-color: #639FC6;
color: white;
}

.button-login {
background-color: #ffffff;
border: 2px #ffffff;
border-radius: 5px;
color: #2D2D32;
cursor: pointer;
font-family: 'Familjen Grotesk', sans-serif;
font-size: 14px;
margin: 4px 4px 4px 4px;
}

.button-login:hover {
background-color: #dddddd;
color: #2D2D32;
border-color: #dddddd;
}

.nav-link{
color: white;
font-family: 'Familjen Grotesk', sans-serif;
font-size: 14px;
padding: 10px 15px;
margin-right: 20px;
}
10 changes: 8 additions & 2 deletions app/src/app_components.py
Copy link
Collaborator

@danieltsoukup danieltsoukup Aug 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm if the links open in a new tab or do we need to add target=_"blank" in NavLink()?

Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,13 @@ def get_navbar(self) -> dbc.NavbarSimple:
Get the navigation bar.
"""
navbar = dbc.NavbarSimple(
children=[],
children=[
dbc.NavItem(dbc.NavLink("Get tRacket", href="https://tracket.info/sensor/",className="nav-link")),
dbc.NavItem(dbc.NavLink("Noise Map", href="https://dashboard.tracket.info/locations",className="nav-link")),
dbc.NavItem(dbc.NavLink("About", href="https://tracket.info/",className="nav-link")),
dbc.NavItem(dbc.NavLink("Donate", href="https://opencollective.com/tRacket",className="nav-link")),
dbc.Button("Log In", href="https://manage.tracket.info/", className="button-login"),
],
brand=dbc.Container(
[
html.A(
Expand All @@ -350,7 +356,7 @@ def get_navbar(self) -> dbc.NavbarSimple:
src=get_asset_url("tracket_logo.svg"),
height="30px",
)
)
),
],
align="center",
className="g-0",
Expand Down
Loading