Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

navbar.py 1.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  1. import dash_bootstrap_components as dbc
  2. from dash import Input, Output, State, html
  3. from dash_bootstrap_components._components.Container import Container
  4. PLOTLY_LOGO = "https://images.plot.ly/logo/new-branding/plotly-logomark.png"
  5. search_bar = dbc.Row(
  6. [
  7. dbc.Col(dbc.Input(type="search", placeholder="Search")),
  8. dbc.Col(
  9. dbc.Button(
  10. "Search", color="dark", className="ms-2", n_clicks=0
  11. ),
  12. width="auto",
  13. ),
  14. ],
  15. className="g-0 ms-auto flex-nowrap mt-3 mt-md-0",
  16. align="center",
  17. )
  18. def create_navbar():
  19. navbar = dbc.Navbar(
  20. dbc.Container(
  21. [
  22. html.A(
  23. # Use row and col to control vertical alignment of logo / brand
  24. dbc.Row(
  25. [
  26. dbc.Col(html.Img(src=PLOTLY_LOGO, height="30px",style={'textAlign': 'center'})),
  27. dbc.Col(dbc.NavbarBrand(" Omdena | Trieste Italy AI Platform", style={'text-align': 'center'})),
  28. ],
  29. align="center",
  30. #className="g-2",
  31. ),
  32. ),
  33. ]
  34. ),
  35. color="black",
  36. dark=True,
  37. )
  38. return navbar
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...