Skip to content

Commit

Permalink
Added announcement banner (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Augspurger authored May 21, 2024
1 parent b796523 commit 3c04e2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
3 changes: 3 additions & 0 deletions helm/chart/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ daskhub:
extraConfig:
# mylabels: |
# c.KubeSpawner.extra_labels = {}
announce: |
c.JupyterHub.template_vars = {'announcement': 'The Planetary Computer Hub is being retired on June 6th. See the <a href="https://github.com/microsoft/PlanetaryComputer/discussions/347">GitHub Discussion</a> for more information.'}
kubespawner: |
c.KubeSpawner.start_timeout = 20 * 60 # 20 minutes
01-add-dask-gateway-values: |
Expand Down
21 changes: 5 additions & 16 deletions helm/chart/files/etc/jupyterhub/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@
min-height: 80vh;
}

.announcement {
min-height: auto;
margin-top: 20px;
}

/* Login page styles */
.box {
width: 45%;
Expand Down Expand Up @@ -410,22 +415,6 @@
</script>
</header>

<aside>
<div class="header-banner layout-row grid-content">
<div class="banner-item">
<h1>Hub</h1>
</div>
<div class="banner-item">
<p>
The Planetary Computer Hub is a development environment that makes our
data and APIs accessible through familiar, open-source tools, and
allows users to easily scale their analyses with the power of Azure
compute.
</p>
</div>
</div>
</aside>

{% endblock %}

{% block footer %}
Expand Down

0 comments on commit 3c04e2c

Please sign in to comment.