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

Add banner #339

Merged
merged 7 commits into from
Aug 9, 2021
Merged
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
8 changes: 7 additions & 1 deletion pkg/dashboard/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ COMPONENTS
.layoutSidebar .layoutSidebar__sidebar {
background: var(--color-bg-2);
flex-grow: 1;
padding: 0 var(--gap-0);
padding: var(--gap-5) var(--gap-0);
}

.layoutSidebar .layoutSidebar__sidebar > *:last-child {
Expand Down Expand Up @@ -492,6 +492,12 @@ COMPONENTS
padding-top: var(--gap-0);
}

.banner img {
max-width: 750px;
height: auto;
object-fit: contain;
}

/*
-----
UTILITIES
Expand Down
Binary file added pkg/dashboard/assets/images/insights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions pkg/dashboard/templates/dashboard.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@

<div class="layoutSidebar__main">
<main class="verticalRhythm --rhythm-3">
<aside class="banner">
<a href="https://www.fairwinds.com/goldilocks-users-insights?utm_source=goldilocks&utm_medium=ad&utm_campaign=goldilocksad" target="_blank" rel="noreferrer">
<img src="/static/images/insights.png" alt="Apply K8s right sizing and best practices across multiple clusters and teams with Fairwinds Insights. Try Demo. (Opens in new window.)">
</a>
</aside>
<h1>Namespace Details</h1>

<div
Expand Down
5 changes: 5 additions & 0 deletions pkg/dashboard/templates/namespace_list.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@

<div class="layoutSidebar__main">
<main class="verticalRhythm">
<aside class="banner">
<a href="https://www.fairwinds.com/goldilocks-users-insights?utm_source=goldilocks&utm_medium=ad&utm_campaign=goldilocksad" target="_blank" rel="noreferrer">
<img src="/static/images/insights.png" alt="Apply K8s right sizing and best practices across multiple clusters and teams with Fairwinds Insights. Try Demo. (Opens in new window.)">
</a>
</aside>
<h1>Namespaces</h1>

{{ if lt (len .Data) 1 }}
Expand Down