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

chore(docs): Add banner alerting people of package migration #19714

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ alpine_js_version = "2.8.2"
ionicons_version = "5.4.0"
openssl_version = "3.1"
site_logo = "img/vector-open-graph.png"
display_banner = false # Whether to display the top banner in layouts/partials/banner.html
display_banner = true # Whether to display the top banner in layouts/partials/banner.html
favicon = "favicon.ico"

# Update this every time there's a new "generation" of the site. Incrementing this forces the browser to refresh any
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
{{/* React component used for global search */}}
{{ partial "javascript/search.html" . }}
</body>
</html>
</html>
25 changes: 4 additions & 21 deletions website/layouts/partials/banner.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,14 @@
<div
x-cloak
x-show="show"
x-data="{ show: $store.global.banner }"
x-on:toggle-banner="show = !show"
class="relative bg-gradient-to-l from-purple-v to-primary">
<div class="relative bg-gradient-to-l from-purple-v to-primary">
<div class="max-w-7xl mx-auto py-1 px-3 sm:px-6 lg:px-8">
<div class="pr-16 sm:text-center sm:px-16">
<p class="font-medium text-gray-800 tracking-tight">
<span class="md:inline">
Vector is joining Datadog!
APT and RPM repositories at repositories.timber.io will be decomissioned on February 28th
Fixed Show fixed Hide fixed
</span>
<span class="block sm:ml-2 sm:inline-block">
<a href="/blog/datadog-acquisition" class="text-black font-semibold"> Learn more <span aria-hidden="true">&rarr;</span></a>
<a href="/highlights/2023-11-07-new-linux-repos/" class="text-black font-semibold"> Migration instructions <span aria-hidden="true">&rarr;</span></a>
</span>
</p>
</div>
<div class="absolute inset-y-0 right-0 pr-2 flex items-center sm:pr-2">
<button @click="$store.global.toggleBanner(); $dispatch('toggle-banner')" type="button" class="flex rounded-md hover:bg-black hover:text-purple-v focus:outline-none focus:ring-2 focus:ring-white">
<span class="sr-only">
Dismiss announcement banner
</span>

{{/* Heroicon name: outline/x */}}
<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
</div>
</div>
</div>
Loading