Skip to content

Commit

Permalink
Merge branch 'main' into chore/gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-sysbio committed Nov 2, 2023
2 parents 34ac3c2 + 316f57f commit 6460ede
Show file tree
Hide file tree
Showing 25 changed files with 405 additions and 377 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ WORKDIR /usr/src/app

COPY Gemfile ./
RUN gem install bundler:2.4.21 && bundle install
RUN gem install racc -v 1.7.1

EXPOSE 4000
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ defaults:
values:
type: "pages"
sidebar: lifecycle
-
scope:
path: "pages/resources/resources.md"
values:
type: "resource_page"
layout: "page"
sidebar: resources
-
scope:
path: "pages/resources"
Expand Down
9 changes: 9 additions & 0 deletions _data/CONTRIBUTORS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ Geert van Geest:
orcid: 0000-0002-1561-078X
role: author
affiliation: SIB Swiss Institute of Bioinformatics

Jose Alejandro Romero Herrera:
orcid: 0000-0002-4765-2087
role: author
affiliation: Copenhangen University

Elin Kronander:
role : author
affiliation: NBIS National Bioinformatics Infrastructure Sweden
12 changes: 6 additions & 6 deletions _data/index/numbers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
# Icon can be any free icon from Font Awesome https://fontawesome.com/search?o=r&m=free

- title: Trainers
number: 245
number: 267
color: orange
icon: fas fa-person-chalkboard

- title: Courses
number: 1126
number: 1999
color: blue
icon: fas fa-book

- title: TMD
number: 87
- title: Trainees
number: 41346
color: red
icon: fas fa-database

- title: Evaluations
number: 654
- title: Countries
number: 62
color: green
icon: fas fa-chart-simple
8 changes: 6 additions & 2 deletions _data/sidebars/resources.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
title: Resources
title_url: /resources
subitems:
- title: TEMPLATE
url: /TEMPLATE_resource_page
- title: TeSS
url: /tess
- title: Tango
Expand All @@ -13,3 +11,9 @@ subitems:
url: /fair-training-handbook
- title: Learning Paths
url: /learning-paths
- title: ELIXIR lesson template
url: /elixir-lesson-template
- title: E-learning
url: /elearning
- title: FAIR Training Focus Group
url: /fair-training-focus-group
191 changes: 100 additions & 91 deletions _includes/index/lifecycle.html

Large diffs are not rendered by default.

58 changes: 28 additions & 30 deletions _includes/index/roles-and-resources.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
<div class="col-12">
<h2>Resources</h2>
</div>
<div class="container py-3 mb-5 bg-red rounded text-white">
<div class="row">
<div class="col">
<a href="tess" style="color: white;">
<div><img src="assets/img/path323.svg" width="20px" style="margin-right: 10px;">TeSS</div>
</a>
</div>
<div class="col">
<a href="train-the-trainer" style="color: white;">
<div><img src="assets/img/path323.svg" width="20px" style="margin-right: 10px;">Train-the-Trainer</div>
</a>
</div>
<div class="col">
<a href="tango" style="color: white;">
<div><img src="assets/img/path323.svg" width="20px" style="margin-right: 10px;">Tango</div>
</a>
</div>
<div class="col">
<a href="fair-training-handbook" style="color: white;">
<div><img src="assets/img/path323.svg" width="20px" style="margin-right: 10px;">FAIR Training Handbook</div>
</a>
</div>
<div class="col">
<a href="learning-paths" style="color: white;">
<div><img src="assets/img/path323.svg" width="20px" style="margin-right: 10px;">Learning Paths</div>
</a>
</div>
<div class="row mb-5 py-5">
<div class="col-12">
<div class="text-center display-6 mb-5">Explore our Resources</div>
</div>
<div class="col">
<a class="btn btn-blue d-block py-3 rounded-pill" href="tess">
TeSS
</a>
</div>
<div class="col">
<a class="btn btn-blue d-block py-3 rounded-pill" href="train-the-trainer">
Train-the-Trainer
</a>
</div>
<div class="col">
<a class="btn btn-blue d-block py-3 rounded-pill" href="tango">
Tango
</a>
</div>
<div class="col">
<a class="btn btn-blue d-block py-3 rounded-pill" href="fair-training-handbook">
FAIR Training Handbook
</a>
</div>
<div class="col">
<a class="btn btn-blue d-block py-3 rounded-pill" href="learning-paths">
Learning Paths
</a>
</div>
</div>
24 changes: 2 additions & 22 deletions _includes/index/splash-in-numbers.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@

<div class="row mb-5">
<div class="col-12">
<h2>SPLASH in Numbers</h2>
</div>
<div class="row mb-5 py-5">
{% assign numbers = site.data.index.numbers %}
{% for number in numbers %}
<div class="col-12 col-md-6 col-xl-3 mb-4">
Expand All @@ -22,25 +19,8 @@ <h2>SPLASH in Numbers</h2>
/**
* Animate numbers when in viewport
*/

// inViewport jQuery plugin
// https://stackoverflow.com/a/26831113/383904
$(function ($, win) {
$.fn.inViewport = function (cb) {
return this.each(function (i, el) {
function visPx() {
var H = $(this).height(),
r = el.getBoundingClientRect(), t = r.top, b = r.bottom;
return cb.call(el, Math.max(0, t > 0 ? H - t : (b < H ? b : H)));
} visPx();
$(win).on("resize scroll", visPx);
});
};
}(jQuery, window));


jQuery(function ($) { // DOM ready and $ in scope
$(".count-number").inViewport(function (px) { // Make use of the `px` argument!!!
$('.count-number').inViewport(function (px) { // Make use of the `px` argument!!!
if (px > 0 && !this.initNumAnim) {
this.initNumAnim = true; // Set flag to true to prevent re-running the same animation
$(this).prop('Counter', 0).animate({
Expand Down
17 changes: 14 additions & 3 deletions _includes/index/welcome.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<div class="row justify-content-center mb-5">
<div class="row row-banner justify-content-center mb-5">
<div class="col-12 text-center">
<img src="assets/img/banner.png" alt="banner">
<div class="display-4 text-white fw-bold">SPLASH</div>
<p class="lead text-white mb-0">
Pushing the boundaries of training development
</p>
</div>
</div>
<div class="row mb-5">
<div class="col-12">
<div class="px-3 py-5 text-center">
<p class="lead">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce scelerisque augue tempus magna suscipit fringilla. Quisque neque nunc, fringilla a elit sed, tempor facilisis velit. Nulla facilisi. Sed ut sapien venenatis, tincidunt orci vitae, tristique magna. Curabitur tincidunt commodo odio vel faucibus.
</p>
</div>
</div>

</div>
16 changes: 16 additions & 0 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script>
// inViewport jQuery plugin
// https://stackoverflow.com/a/26831113/383904
$(function ($, win) {
$.fn.inViewport = function (cb) {
return this.each(function (i, el) {
function visPx() {
var H = $(this).height(),
r = el.getBoundingClientRect(), t = r.top, b = r.bottom;
return cb.call(el, Math.max(0, t > 0 ? H - t : (b < H ? b : H)));
} visPx();
$(win).on('resize scroll', visPx);
});
};
}(jQuery, window));
</script>
2 changes: 2 additions & 0 deletions _includes/testimonials.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
{%- assign testimonials = site.data.testimonials %}
{% endif %}
{% if testimonials.size > 0 %}
{% unless include.hideHeading %}
<h2>Testimonials</h2>
{% endunless %}
<div id="carouselTestimonials" class="carousel carousel-testimonials bg-primary rounded slide">
<div class="carousel-indicators">
{% assign maxIndex = testimonials.size | minus: 1 %}
Expand Down
12 changes: 8 additions & 4 deletions _layouts/resource_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ <h2>Description</h2>
<h2>What can you do with {{ page.title }}</h2>
{{ page.objective | markdownify }}

<h2>Our mission</h2>
{{ page.mission | markdownify }}
{%- unless page.mission == nil or page.mission == false %}
<h2>Our mission</h2>
{{ page.mission | markdownify }}
{% endunless %}

<h2>Benefit</h2>
{{ page.benefit | markdownify }}
{%- unless page.benefit == nil or page.benefit == false %}
<h2>Benefit</h2>
{{ page.benefit | markdownify }}
{% endunless %}

<!-- BLOCK 2 -->
{%- unless page.licenses == nil or page.licenses == false %}
Expand Down
44 changes: 44 additions & 0 deletions _sass/_custom_classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ header {
right: 0;
left: 0;
z-index: 1030;
padding-top: 1rem;

.navbar-brand {
min-height: 54px;
Expand Down Expand Up @@ -86,6 +87,49 @@ footer {
background: $red;
}

.btn-blue {
@include button-variant($blue, $blue);
}

.row-banner {
padding-top: 4rem;
padding-bottom: 4rem;
position: relative;
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);

&::after {
content: ' ';
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%);
height: 100%;
width: 100vw;
background: url('/assets/img/banner.png') center center no-repeat;
background-color: $gray-800;
background-size: cover;
z-index: -1;
}
}

.row-bg-light {
padding-top: 4rem;
padding-bottom: 4rem;
position: relative;

&::after {
content: ' ';
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%);
height: 100%;
width: 100vw;
background-color: $gray-100;
z-index: -1;
}
}

.count {
position: relative;
overflow: hidden;
Expand Down
Binary file modified assets/img/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/logos/logo_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/logos/tess_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ layout: default
sidebar: false
---

{% include scripts.html %}

{% include index/welcome.html %}

{% include index/lifecycle.html %}

{% include index/roles-and-resources.html %}

<div class="row mb-5">
<div class="row mb-5 py-5">
<div class="col">
{% include testimonials.html %}
{% include testimonials.html hideHeading=true %}
</div>
</div>

Expand Down
65 changes: 0 additions & 65 deletions pages/resources/TeSS.md

This file was deleted.

Loading

0 comments on commit 6460ede

Please sign in to comment.