-
Notifications
You must be signed in to change notification settings - Fork 22
Jade spector improvements #258
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
base: gui-prototype
Are you sure you want to change the base?
Changes from 5 commits
f0c6aea
c646a5b
8eba5bf
ee1d55e
4425dc4
4960f88
50697dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,11 +56,16 @@ class GuiURLS(BaseModel): | |
| default="https://github.com/civictechdc/mango-tango-cli", | ||
| description="GitHub repository URL", | ||
| ) | ||
|
|
||
| instagram_url: str = Field( | ||
| default="https://www.instagram.com/civictechdc/", | ||
| default="https://www.instagram.com/cibmangotree", | ||
| description="Instagram profile URL", | ||
| ) | ||
|
|
||
| linkdlin_url: str = Field( | ||
| default="https://www.linkedin.com/company/cib-mango-tree", | ||
| description="Linkdlin profile ", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change description to |
||
| ) | ||
|
|
||
| class GuiConstants(BaseModel): | ||
| """Container for both colors and urls""" | ||
|
|
@@ -304,7 +309,7 @@ def _render_footer(self) -> None: | |
| Layout: | ||
| - Left: License information | ||
| - Center: Project attribution | ||
| - Right: External links (GitHub, Instagram) | ||
| - Right: External links (GitHub, Instagram,Linkdin) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "LinkedIn" (so, in string text, let's just spell out the brand as is to remove any ambiguity) |
||
| """ | ||
| with ui.footer(elevated=True): | ||
| with ui.row().classes("w-full items-center").style( | ||
|
|
@@ -346,6 +351,18 @@ def _render_footer_links(self) -> None: | |
| "width: 20px; height: 20px; fill: currentColor" | ||
| ) | ||
| ui.tooltip("Follow us on Instagram") | ||
|
|
||
| # Linkdin button | ||
| linkdin_btn = ui.button( | ||
| color="accent", | ||
| on_click=lambda: self.navigate_to_external(gui_urls.linkdlin_url), | ||
| ).props("flat round") | ||
| with linkdin_btn: | ||
| linkdin_svg = self._load_svg_icon("instagram") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be loading a LinkedIn logo? It's currently going to load "instagram" logo. To add an icon, you need to find an I found insta/github icons at https://simpleicons.org which are licensed by CC0. We should make sure that similar llicense is in place for any linked in icon too. |
||
| ui.html(linkdin_svg, sanitize=False).style( | ||
| "width: 20px; height: 20px; fill: currentColor" | ||
| ) | ||
| ui.tooltip("Visit our Linkdin") | ||
|
|
||
| # Navigation helpers | ||
| def navigate_to(self, route: str) -> None: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we name this variable
linkedin_url(instead oflinkdlin_url)?