Skip to content

Commit

Permalink
Merge pull request #36 from tokk-nv/main
Browse files Browse the repository at this point in the history
Enable Announcement Bar with 11/07 webinar announcement
  • Loading branch information
tokk-nv authored Oct 26, 2023
2 parents ed74836 + 46962e1 commit 76200eb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docs/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@
/* Bigger width for md-content for main text */
.md-grid {
max-width: 90%; /* or 100%, if you want to stretch to full-width */
}
}

.md-banner__inner {
font-size: .7rem;
margin: 0.2rem auto;
margin-top: 0.2rem;
margin-right: auto;
margin-bottom: 0.2rem;
margin-left: auto;
padding: 0 0.8rem;
}
2 changes: 1 addition & 1 deletion docs/overrides/home.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Custom HTML site displayed as the Home chapter -->
{% extends "base.html" %}
{% extends "main.html" %}
{% block tabs %}
{{ super() }}
<style>
Expand Down
13 changes: 13 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Elements added to main will be displayed on all pages -->
{% extends "base.html" %}

<!-- Announcement bar -->
{% block announce %}
<style>
.md-announce a { color: #76b900; text-decoration: underline;}
.md-announce a:focus { color: hsl(82, 100%, 72%); text-decoration: underline; }
.md-announce a:hover { color: hsl(82, 100%, 72%); text-decoration: underline;}
</style>
<div class="md-announce">Join us Tuesday, November 7, 2023 at 9 a.m. PT for a <a href="https://info.nvidia.com/jetson-gen-ai-webinar.html" target="_blank"><strong>webinar</strong></a> diving even deeper into many of the topics discussed on this site, along with a live Q&A!</div>

{% endblock %}

0 comments on commit 76200eb

Please sign in to comment.