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

Change Ukraine call to action to a top banner #647

Merged
merged 1 commit into from
Aug 21, 2023
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
482 changes: 482 additions & 0 deletions static/img/ukraine_flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions themes/jaeger-docs/assets/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
@import "syntax"
@import "copy-button"
@import "toc"
@import "ukraine"

@import "bulma-tooltip/dist/css/bulma-tooltip"
@import "latest-articles"
15 changes: 15 additions & 0 deletions themes/jaeger-docs/assets/sass/ukraine.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.stand-with-ukraine-banner
padding: 10px 0
background-color: #5474c9
color: #fff
text-align: center

.stand-with-ukraine-banner__flag
width: 30px
margin-right: 16px
border-style: none
vertical-align: middle

.ukraine-support-link
color: #fff
text-decoration: underline
1 change: 1 addition & 0 deletions themes/jaeger-docs/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<body class="page page--{{ $pageType }}">
<main class="main">
{{ partial "navbar.html" . }}
{{ partial "ukraine.html" . }}

{{ block "main" . }}
{{ end }}
Expand Down
1 change: 0 additions & 1 deletion themes/jaeger-docs/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{{ $posts := first 100 $json.items }}

{{ partial "home/hero.html" (dict "posts" $posts "title" site.Title "tagline" site.Params.tagline "latestVersion" site.Params.latest) }}
{{ partial "home/ukraine.html" . }}
{{ partial "home/why.html" . }}
{{ partial "home/features.html" . }}
{{ partial "home/articles.html" (dict "posts" $posts) }}
Expand Down
15 changes: 0 additions & 15 deletions themes/jaeger-docs/layouts/partials/home/ukraine.html

This file was deleted.

40 changes: 40 additions & 0 deletions themes/jaeger-docs/layouts/partials/ukraine.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<div class="stand-with-ukraine-banner">
<p>
<img src="/img/ukraine_flag.svg" alt="Ukraine flag" class="stand-with-ukraine-banner__flag">
We stand with our friends and colleagues in Ukraine.
To support Ukraine in their time of need <!-- -->
<a class="ukraine-support-link" href="https://war.ukraine.ua/support-ukraine/">visit this page</a>.
</p>
</div>
<!--
<section class="section section--ukraine">
<div class="container has-text-centered">
<h4 class="subtitle is-size-4 is-size-5-mobile">
<b>The Jaeger Team strongly condemns Putin's invasion of Ukraine!</b>
</h4>
<h4 class="subtitle is-size-4 is-size-5-mobile">
<b>
Please consider donating to <a href="https://www.npr.org/2022/02/25/1082992947/ukraine-support-help">humanitarian aid organizations</a>, such as
<a href="https://razomforukraine.org/razom-emergency-response/">Razom for Ukraine</a>
or <a href="https://care-in-action.org/en/pages/please-fund-emergency-aid-for-ukraine">Care in Action</a>,
to provide relief.
</b>
</h4>
</div>
</section>



<div class="gb-stand-with-ukraine-banner">
<div class="gb-container">
<div class="gb-stand-with-ukraine-banner__content">
<img src="https://static.nc-img.com/uilayout2/34735a65a0c63bd007fa4c32f67dab4c.svg" alt="Ukraine flag" class="gb-stand-with-ukraine-banner__flag">
<p class="gb-mb-0">
We stand with our friends and colleagues in Ukraine.
To support Ukraine in their time of need
<a class="gb-ukraine-support-link" href="https://war.ukraine.ua/support-ukraine/">visit this page</a>.
</p>
</div>
</div>
</div>
-->