generated from ELIXIR-Belgium/elixir-toolkit-theme-example
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
195 lines (186 loc) · 9.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
---
search_exclude: true
layout: none
---
<!doctype html>
<html lang="en">
{% include head.html %}
<script src="https://kit.fontawesome.com/46236ff899.js" crossorigin="anonymous"></script>
<body>
{% include topnav.html search=false %}
<section class="container mb-5">
<div class="card border border-primary text-primary text-center">
<div class="card-body">
<h7 class="card-title fs-3">This website is under active development</h7>
<p class="card-text">Don't hesitate to <a href="https://github.com/AustralianBioCommons/human-omics-data-sharing-field-guide/issues">open an issue</a> or to contact us via <a href="mailto:contact@biocommons.org.au">email</a> to give some early feedback.</p>
</div>
</div>
</section>
<div class="landingpage">
<section class="container mb-5">
<div>
<p class="text-center lead">A field guide to help Researchers on their Human 'Omics data sharing journey.
</p>
</div>
</section>
<section id="search-section" class="bg-light py-5">
<div class="container">
<div class="row">
<h4 class="no-anchor text-center mb-3">What can we help you find?</h4>
<div class="position-relative">
<div class="d-flex justify-content-center">
<form role="search" class="input-group">
<span class="input-group-text" id="search-label"><i class="fa-solid fa-magnifying-glass"></i></span>
<input type="search" id="search-input" class="search-input form-control form-control-lg bg-white" tabindex="0"
placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
</form>
<div id="search-results" class="search-results"></div>
</div>
</div>
</div>
</div>
</section>
<section class="bg-light pb-5">
<div class="container">
<h4 class="no-anchor text-center mb-3">Browse all topics by</h4>
{%- assign sidebar = site.data.sidebars[page.sidebar] %}
<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-2 g-4">
{%- for folder in sidebar.subitems %}
<div class="col">
<div class="card bg-white h-100">
{%- if folder.image_url%}
<img src="{{folder.image_url | relative_url}}" class="card-img-top h-icon-4 mx-auto" alt="{{folder.title}} icon" >
{%- endif %}
<div class="card-body text-center">
<a href="{{ folder.url | relative_url }}" class="stretched-link">
<h5 class="card-title no-anchor text-primary">{{folder.title}}</h5>
</a>
<p class="card-text">{{folder.description}}</p>
</div>
</div>
</a>
</div>
{%- endfor %}
</div>
</div>
</section>
<section class="py-5">
<div class="container">
<div class="row">
<div class="col-lg-2 my-auto">
<img class="h-icon-6" src="{{ '/assets/img/noun-users-943303.svg' | relative_url }}" alt="Contributors icon">
</div>
<div class="col-lg-7">
<h2>We welcome contributors!</h2>
<p>This project would not be possible without the many <a href="{{ 'contributors' | relative_url }}"><b>amazing
community contributors</b></a>. The Human 'Omics Data Sharing Field Guide' is an open community project, and you are welcome to join us!
</p>
</div>
<div class="col-lg-3 my-auto">
<a class="btn btn-primary btn-lg rounded-pill" href="{{ 'contribute/' | relative_url }}">Start contributing</a>
</div>
</div>
</div>
</section>
<section class="py-5 bg-light">
<div class="container">
<div class="row">
<div class="col-lg-6">
{% include news.html caption=true title=true limit=3 %}
</div>
</div>
</div>
</section>
<section class="container my-5">
<h2 class="mt-5 mb-3">Human 'Omics Data Sharing Field Guide in numbers</h2>
{%- assign contributors = site.data.CONTRIBUTORS %}
{%- for page in site.pages %}
{%- if page.contributors and page.search_exclude != true %}
{%- assign pagecontr = page.contributors | join: ", " %}
{%- if allcontrstr %}
{%- assign allcontrstr = allcontrstr | append: ", " | append: pagecontr %}
{%- else %}
{%- assign allcontrstr = allcontrstr | append: pagecontr %}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- for contr in contributors %}
{%- assign allcontrstr = allcontrstr | append: ", " | append: contr[0] %}
{%- endfor %}
{%- assign allcontributors = allcontrstr | split: ", " | uniq | sort %}
<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-3 g-4 mb-3">
<div class="col">
<div class="bg-light d-flex align-items-center rounded p-3 text-center h-100">
<div class="row g-1 flex-grow-1">
<div class="col-7">
<span class="count-number text-primary">{{allcontributors.size}}</span>
<p><b>Contributors</b><br>
The force behind the field guide</p>
</div>
<div class="col-5 my-auto">
<img class="h-icon-4" src="{{ '/assets/img/noun-users-943303.svg' | relative_url }}" alt="Contributors icon">
</div>
</div>
</div>
</div>
<div class="col">
<div class="bg-light d-flex align-items-center rounded p-3 text-center h-100">
{%- assign content_pages = site.pages | where_exp: "page", "page.search_exclude != true" %}
<div class="row g-1 flex-grow-1">
<div class="col-7">
<span class="count-number text-primary">{{content_pages.size}}</span>
<p><b>Pages</b><br>
Helping you with Human 'Omics data sharing</p>
</div>
<div class="col-5 my-auto">
<img class="h-icon-4" src="{{ '/assets/img/section-icons/noun-pages-4201181.svg' | relative_url }}" alt="Files icon">
</div>
</div>
</div>
</div>
</div>
</section>
</div>
{%- if site.theme_variables.back_to_top or site.theme_variables.back_to_top == nil %}
<button id="back-to-top" class="btn btn-primary" type="button" aria-hidden="true" onclick="topFunction()">
<i class="fa-solid fa-arrow-up"></i><span class="ms-2 d-none d-sm-inline">Back to top</span>
</button>
{%- endif %}
{% include footer.html %}
{% include cookie-popup.html %}
</body>
</html>
<script type="text/javascript">
/**
* 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!!!
if (px > 0 && !this.initNumAnim) {
this.initNumAnim = true; // Set flag to true to prevent re-running the same animation
$(this).prop('Counter', 0).animate({
Counter: $(this).text()
}, {
duration: 1000,
step: function (now) {
$(this).text(Math.ceil(now));
}
});
}
});
});
</script>