Skip to content

Commit 526bc10

Browse files
authored
Merge pull request #67 from SciCatProject/add-dectris
Add Dectris Cloud
2 parents f0a85ae + 792d426 commit 526bc10

File tree

7 files changed

+71
-8
lines changed

7 files changed

+71
-8
lines changed

_config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ facilities:
105105
email: o.knodel@hzdr.de
106106

107107

108+
partners:
109+
- name: DECTRIS CLOUD
110+
image: /assets/images/partners/dectris_cloud.svg
111+
url: https://www.dectris.cloud/
112+
113+
108114
team:
109115
leaders:
110116
- name: Max Novelli
@@ -128,7 +134,7 @@ team:
128134
role: ScicatLive Leader
129135
url: https://github.com/minottic
130136
- name: Despina Adamopoulou
131-
company: EMPA Material Science and Technology
137+
company: EMPA Materials Science and Technology
132138
role: Website Leader
133139
url: https://github.com/despadam
134140
- name: Open Position

_includes/nav.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
mission: "nav-link-mission",
55
news: "nav-link-news",
66
facilities: "nav-link-facilities",
7+
partners: "nav-link-partners",
78
team: "nav-link-team",
89
repositories: "nav-link-repositories",
910
documentation: "nav-link-documentation",
@@ -18,11 +19,13 @@
1819
}
1920
}
2021

21-
// Given a specific element Id, check if the element is currenty visible on the screen
22+
// Given a specific element Id, check if more than 50% of the element is currently visible on the screen
2223
function isElementVisible(elemId) {
2324
let elm = document.getElementById(elemId).getBoundingClientRect();
2425
let viewHeight = Math.max(document.documentElement.clientHeight, window.innerHeight);
25-
return !(elm.bottom < 0 || elm.top - viewHeight >= 0);
26+
let elementHeight = elm.height || (elm.bottom - elm.top);
27+
let visibleHeight = Math.min(elm.bottom, viewHeight) - Math.max(elm.top, 0);
28+
return visibleHeight > elementHeight / 2;
2629
}
2730

2831
/*
@@ -85,6 +88,9 @@
8588
</li>
8689
<li class="nav-item mx-lg-3">
8790
<a class="page-scroll nav-link" id="nav-link-facilities" href="{{'#facilities' | relative_url }}" onclick="onClick(event);">Facilities</a>
91+
</li>
92+
<li class="nav-item mx-lg-3">
93+
<a class="page-scroll nav-link" id="nav-link-partners" href="{{'#partners' | relative_url }}" onclick="onClick(event);">Industry Partners</a>
8894
</li>
8995
<li class="nav-item mx-lg-3">
9096
<a class="page-scroll nav-link" id="nav-link-team" href="{{'#team' | relative_url }}" onclick="onClick(event);">Team</a>

_includes/partners.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<section id="partners" class="partners text-center bg-light">
2+
<div class="container mb-3">
3+
<h1 class="mt-5 mb-5">Industry Partners</h1>
4+
<div class="row justify-content-center">
5+
{% for partner in site.partners %}
6+
<div class="partner col-lg-4 card">
7+
<a href="{{ partner.url }}" target="_blank">
8+
<img class="partner-logo" src="{{ partner.image }}" alt="{{ partner.name }}">
9+
</a>
10+
</div>
11+
{% endfor %}
12+
</div>
13+
</div>
14+
</section>

_includes/team.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ <h1 class="mt-5 mb-5">Team</h1>
1010
</div>
1111
{% endfor %}
1212
</div>
13+
<aside class="secondary-breaker">
14+
<div class="container text-center">
15+
</div>
16+
</aside>
1317
<h2 class="mt-5 mb-4">Contributors</h2>
1418
<div class="row contributors">
1519
<div id="loading" style="display: none;">

_layouts/home.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
{% include release.html %}
2020
{% include facilities.html %}
2121
{% include breaker.html %}
22+
{% include partners.html %}
23+
{% include breaker.html %}
2224
{% include team.html %}
2325
{% include breaker.html %}
2426
{% include repositories.html %}

_sass/base.scss

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ div.container {
6767
.section-breaker {
6868
background-color: #041526;
6969
opacity: 0.9;
70-
height: 0.3rem !important;
70+
height: 0.2rem !important;
71+
}
72+
73+
.secondary-breaker {
74+
background-color: #0415263b;
75+
opacity: 0.9;
76+
height: 0.1rem !important;
7177
}
7278

7379
.show-all-button {
@@ -107,13 +113,13 @@ div.container {
107113
.navbar-menu {
108114
padding-left: 120px;
109115
padding-right: 120px;
110-
}
111116

112-
@media (max-width: 1300px) {
113-
.navbar-menu {
117+
@media (max-width: 1360px) {
114118
padding: 5px 20px;
115119
}
116-
120+
}
121+
122+
@media (max-width: 1360px) {
117123
li {
118124
text-align: center;
119125
}
@@ -281,6 +287,17 @@ header.masthead:before {
281287
}
282288
}
283289

290+
// ========= Industry Partners =========
291+
292+
.partner {
293+
width: 400px;
294+
min-height: 180px;
295+
296+
.partner-logo {
297+
height: 150px;
298+
}
299+
}
300+
284301
// ========= Team =========
285302

286303
.team {
Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)