Skip to content

Commit

Permalink
Creating a sticky footer
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-nc committed Feb 29, 2024
1 parent c1cb1a1 commit b4a9b0d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
5 changes: 3 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
</div>
<footer class="footer has-background-grey-darker has-text-white-bis mt-6">
<div class="container has-text-centered is-size-6">
{% if site.footer_menu %}
Expand All @@ -14,5 +15,5 @@
<img src="{{ site.baseurl }}/img/biohackathon-logo-white.svg" width="100" title="{{ site.title }}" alt="BioHackathon logo">
</a>
</div>
</div>
</footer>
</footer>
</div>
1 change: 1 addition & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<div class="wrapper">
<div class="skip-link"><a href="#content">Skip to main content</a></div>
<nav class="navbar is-primary {% if site.fixed_navbar %} is-fixed-{{ site.fixed_navbar }} {% endif %}" x-data="{ openNav: false }">
<div class="container">
Expand Down
17 changes: 16 additions & 1 deletion assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,24 @@ $button-border-width: 0;
// Import Main CSS file from theme.
@import "main";

// Darken the text.
// Need to set a height on html and body to
// enable a sticky footer.
html {
height: 100%;
}

// Darken the text, enable flexbox-based sticky footer.
body {
color: $grey-darker;
font-size: 1.1rem;
height: 100%;
display: flex;
flex-direction: column;
}

// Added wrapper element to enable a sticky footer
.wrapper {
flex: 1 0 auto;
}

// The theme does not contain a "Skip to content link".
Expand Down Expand Up @@ -136,6 +150,7 @@ body {

// New styles for the footer (the default footer include is overriden).
.footer {
flex-shrink: 0;
padding-top: 2rem;
li {
display: inline-block;
Expand Down
14 changes: 7 additions & 7 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hero_link: /projects/
hero_link_text: Call for project proposals now open
---

[![ELIXIR logo](/img/elixir-logo.svg){: .is-pulled-right width="170"}](https://elixir-europe.org/)
[![ELIXIR logo](/img/elixir-logo.svg){: .is-pulled-right .ml-5 .mb-5 width="170"}](https://elixir-europe.org/)

BioHackathon Europe is an annual event that brings together life scientists from around the world. It is organised by [ELIXIR Europe](https://elixir-europe.org/), and offers an intense week of hacking, with over 160 participants working on diverse and exciting projects. **The goal is to create code that addresses challenges in bioinformatics research.**

Expand All @@ -25,9 +25,9 @@ The 'markdown="1"' attribute on a <div> doesn't seem to work here.
Maybe just include them (but less intuitive to edit that way).
-->

![A group discussing the Bioschemas project](/img/square-tile-meeting-herve.webp){: .column .is-one-third}
![Three people discussing at a table](/img/square-tile-chat-toshiaki.webp){: .column .is-one-third}
![A group playing table football](/img/square-tile-table-football.webp){: .column .is-one-third}
![A group discussing the Bioschemas project](/img/square-tile-meeting-herve.webp){: .column .is-one-third .my-4}
![Three people discussing at a table](/img/square-tile-chat-toshiaki.webp){: .column .is-one-third .my-4}
![A group playing table football](/img/square-tile-table-football.webp){: .column .is-one-third .my-4}
{: .columns .stripe .my-6}

## Scope
Expand All @@ -38,9 +38,9 @@ BioHackathon activities are driven by practical sessions where people gather, di
* Engage technical people in the bioinformatics community inside and outside ELIXIR to work together on topics of common interest aligned to ELIXIR activities.
* Strengthen the interactions with ELIXIR Platforms, Communities and Focus Groups to establish and reinforce collaborations through hands-on programming activities.

![Three people chatting in front of a laptop](/img/square-tile-table-chat.webp){: .column .is-one-third}
![Tables of hackers in the main hall](/img/square-tile-barcelona-hall.webp){: .column .is-one-third}
![Six hackers discussing their project](/img/square-tile-table-working.webp){: .column .is-one-third}
![Three people chatting in front of a laptop](/img/square-tile-table-chat.webp){: .column .is-one-third .my-4}
![Tables of hackers in the main hall](/img/square-tile-barcelona-hall.webp){: .column .is-one-third .my-4}
![Six hackers discussing their project](/img/square-tile-table-working.webp){: .column .is-one-third .my-4}
{: .columns .stripe .my-6}

## Benefits
Expand Down

0 comments on commit b4a9b0d

Please sign in to comment.