-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* EGI Notebooks logo * Move most of the EGI CSS into a separate file * Update style of Notebooks front page Update also styles to work with JupyterHub v5 and minor text fixes * Linting fixes
- Loading branch information
Showing
5 changed files
with
155 additions
and
154 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,40 @@ | ||
/* | ||
* Some style for the footer | ||
*/ | ||
|
||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
margin-bottom: 60px; /* Margin bottom by footer height */ | ||
font-family: "DM Sans", sans-serif; | ||
} | ||
|
||
.footer { | ||
z-index: 10; | ||
position: fixed; | ||
bottom: 0; | ||
width: 100%; | ||
height: 40px; | ||
line-height: 20px; | ||
opacity: 0.8; | ||
font-size: 0.85rem; | ||
} | ||
|
||
.footer img { | ||
height: 30px; | ||
margin-right: 20px; | ||
} | ||
|
||
#jupyterhub-logo .jpy-logo { | ||
height: 60px; | ||
margin-top: 5px; | ||
margin-right: 20px; | ||
} | ||
|
||
/* this is mainly for the policy pages */ | ||
address { | ||
white-space: pre-line; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,86 +1,39 @@ | ||
<!-- htmlhint doctype-first:false --> | ||
{% extends "templates/page.html" %} | ||
|
||
{% set service_name = service_name|default('Notebooks') %} | ||
|
||
{% block stylesheet %} | ||
{{ super() }} | ||
|
||
<link rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=DM+Sans"> | ||
<style> | ||
.jumbotron { | ||
background-color: transparent; | ||
} | ||
.btn-egi { | ||
background-color: #0067b1; | ||
color: #fff; | ||
} | ||
.btn-egi:hover { | ||
color: #999999; | ||
} | ||
.spacer-lg { margin:0; padding:0; height:100px; } | ||
.spacer-sm { margin:0; padding:0; height:50px; } | ||
|
||
/* Footer */ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
body { | ||
margin-bottom: 60px; /* Margin bottom by footer height */ | ||
font-family: 'DM Sans', sans-serif; | ||
} | ||
.footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
height: 60px; /* Set the fixed height of the footer here */ | ||
} | ||
|
||
.egi-logo { | ||
height: 60px; | ||
margin-top: 5px; | ||
margin-right: 20px; | ||
} | ||
|
||
.navbar { | ||
min-height: 70px; | ||
} | ||
|
||
.button-blue-background { | ||
margin: 20px 20px 0px 0px; | ||
padding: 20px 30px 20px 80px; | ||
border-style: solid; | ||
border-width: 2px; | ||
border-color: #005faa; | ||
border-radius: 100vw; | ||
background-color: #005faa; | ||
background-image: url({{ static_url('images/egi-logo-white.svg') }}); | ||
background-position: 30px 43%; | ||
background-size: 36px; | ||
background-repeat: no-repeat; | ||
-webkit-transition: all 200ms ease-in-out; | ||
transition: all 200ms ease-in-out; | ||
font-family: ‘DM Sans’, sans-serif; | ||
color: #fff; | ||
font-size: 18px; | ||
font-weight: 700; | ||
} | ||
|
||
.button-blue-background:hover { | ||
background-color: #fff; | ||
background-image: url({{ static_url('images/egi-logo.svg') }}); | ||
color: #005faa; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans"/> | ||
<link rel="stylesheet" href="{{ static_url('css/egi.css') }}"/> | ||
{% endblock %} | ||
|
||
|
||
{% block title %}EGI {{ service_name }}{% endblock %} | ||
|
||
{% block logo %} | ||
<span id="jupyterhub-logo" class="pull-left"> | ||
<a href="{{logo_url or base_url}}"><img src="{{ static_url('images/egi-logo.svg') }}" alt="EGI {{ service_name }}" class="egi-logo" title="Home"></a> | ||
</span> | ||
{% endblock %} | ||
{% block footer %} | ||
<footer class="footer bg-body-secondary"> | ||
<div class="container-fluid"> | ||
<div class="row align-items-center"> | ||
<div class="col-md-6"> | ||
<a href="https://www.egi.eu/"> | ||
<img | ||
alt="EGI logo" | ||
src="{{ static_url('images/egi-logo.svg') }}" | ||
/></a> | ||
<a href="https://www.cesnet.cz/?lang=en"> | ||
<img | ||
alt="CESNET logo" | ||
src="{{ static_url('images/cesnet.png') }}" | ||
/></a> | ||
{{ service_name }} is an <a href="https://www.egi.eu">EGI</a> service provided by | ||
<a href="https://www.cesnet.cz/?lang=en">CESNET</a> | ||
</div> | ||
<div class="col-md-6 text-end"> | ||
<a href="https://docs.egi.eu/users/dev-env/notebooks/">User guide</a> | | ||
<a href="/policies/privacy-policy.html">Privacy Notice</a> | | ||
<a href="/policies/terms-of-use.html">Terms of Use</a> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
{% endblock footer %} |