Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(infra): add announcement banner (#216)
* promo banner added above nav on homepage * promo banner variables added to config toml * fixed formatting in layouts/head.html Co-authored-by: aimee <[email protected]>
- Loading branch information
1 parent
2ce9ee2
commit 7f1a39e
Showing
12 changed files
with
212 additions
and
1,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.promo { | ||
&-banner { | ||
width: 100%; | ||
height: 0; | ||
transition-property: all; | ||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); | ||
transition-duration: 0.15s; | ||
&.active { | ||
height: 50px; | ||
} | ||
} | ||
} | ||
|
||
.close { | ||
&-banner { | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
display: flex; | ||
align-items: center; | ||
width: 20px; | ||
height: 100%; | ||
margin-right: 20px; | ||
justify-content: center; | ||
cursor: pointer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@import 'success-stories'; | ||
@import 'promo-banner'; | ||
@import 'slick-theme'; | ||
@import 'slick'; | ||
@import 'docs'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{{ if .Site.Params.promoBanner.show }} | ||
<div | ||
class=" | ||
bg-light | ||
text-center | ||
promo-banner | ||
position-relative | ||
d-none d-lg-flex | ||
align-items-center | ||
justify-content-center | ||
" | ||
id="promo-banner" | ||
> | ||
<div class="container-fluid container-xl mx-auto"> | ||
<div class="row align-items-center"> | ||
<div class="col-2"> | ||
<span | ||
class=" | ||
badge | ||
inline-block | ||
text-white | ||
rounded-pill | ||
px-4 | ||
py-2 | ||
bg-secondary | ||
" | ||
> | ||
{{ .Site.Params.promoBanner.label }} | ||
</span> | ||
</div> | ||
<div class="col-8"> | ||
<div> | ||
<p class="m-0">{{ .Site.Params.promoBanner.text }}</p> | ||
</div> | ||
</div> | ||
<div class="col-2"> | ||
<div> | ||
<a | ||
target="_blank" | ||
class="btn btn-sm btn-info mr-3 px-3" | ||
href="{{ .Site.Params.promoBanner.ctaLink }}" | ||
> | ||
{{ .Site.Params.promoBanner.ctaText }} | ||
<i class="fas fa-arrow-alt-circle-right ml-1"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="position-absolute close-banner" id="close-banner"> | ||
<svg | ||
class="d-block" | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 512 512" | ||
> | ||
<path | ||
d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z" | ||
/> | ||
</svg> | ||
</div> | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.