Skip to content

Commit

Permalink
Add announcement banner to all pages (#1723)
Browse files Browse the repository at this point in the history
* Added announcement banner to all pages

Signed-off-by: Travis Beckham <[email protected]>

* Updated announcement banner content

Signed-off-by: Travis Beckham <[email protected]>

---------

Signed-off-by: Travis Beckham <[email protected]>
  • Loading branch information
travisbeckham authored Jan 2, 2024
1 parent 6fb58af commit 94a29f5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
2 changes: 0 additions & 2 deletions linkerd.io/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ keywords:
- cloud native applications
outputs:
- html
announcement_banner:
description: "[NEW EBOOK: Linkerd Up and Running by O'Reilly &gt; **Download ebook**](https://buoyant.io/download/linkerd-up-and-running)"
top_hero:
title: The world's most advanced service mesh
description: Enterprise power *without* enterprise complexity. Linkerd adds
Expand Down
1 change: 1 addition & 0 deletions linkerd.io/data/announcement_banner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
description: "[NEW EBOOK: Linkerd Up and Running (O’Reilly) &gt; **Download ebook**](https://buoyant.io/download/linkerd-up-and-running)"
1 change: 1 addition & 0 deletions linkerd.io/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<!-- End Google Tag Manager (noscript) -->
{{ end }}
{{ partial "header.html" . }}
{{ partial "announcement-banner.html" . }}
<section class="hero">
<main aria-role="main" class="hero-body">
{{ block "main" . }}
Expand Down
1 change: 0 additions & 1 deletion linkerd.io/layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ define "main" }}
{{ partial "homepage/homepage-notification.html" .Params.announcement_banner }}
{{ partial "homepage/top-hero.html" .Params.top_hero }}
{{ partial "homepage/stats-list.html" .Params.stats }}
{{ partial "homepage/featured-articles.html" .Params.featured_articles }}
Expand Down
5 changes: 5 additions & 0 deletions linkerd.io/layouts/partials/announcement-banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{ with site.Data.announcement_banner }}
<div class="announcement-banner has-background-light-blue has-text-navy-black center has-text-centered">
<p>{{ .description | markdownify }}</p>
</div>
{{ end }}

This file was deleted.

20 changes: 10 additions & 10 deletions linkerd.io/themes/buoyant/assets/scss/styles-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,27 @@ body {
.wrapper {
position: relative;
}
.homepage-notification {
.announcement-banner {
min-height: 40px;
padding: 0 10px;
background-color: $deep-blue;
}
.homepage-notification,
.homepage-notification a {
.announcement-banner,
.announcement-banner a {
color: white;
font-size: 16px !important;
font-weight: 400;
line-height: 1.2;
}
.homepage-notification img {
.announcement-banner img {
vertical-align: text-bottom;
}
@media (max-width: 1024px) {
.announcement-banner {
height: auto;
padding: 10px 15px;
}
}
.hero-body {
position: relative;
-webkit-box-orient: vertical;
Expand Down Expand Up @@ -1027,12 +1033,6 @@ a.card-link {
}

@media (max-width: 1024px) {

.homepage-notification {
height: auto;
padding: 10px 15px;
}

.hero .hero-head .navbar {
height: auto;
}
Expand Down

0 comments on commit 94a29f5

Please sign in to comment.