Skip to content

Commit f03ea30

Browse files
committed
add divider, fix navbar when scrolling, update link
1 parent bc8b51a commit f03ea30

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ facilities:
106106

107107

108108
partners:
109-
- name: DECTRIS
110-
image: /assets/images/partners/dectris.svg
111-
url: https://www.dectris.ch/en/
109+
- name: DECTRIS CLOUD
110+
image: /assets/images/partners/dectris_cloud.svg
111+
url: https://www.dectris.cloud/
112112

113113

114114
team:

_includes/facilities.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ <h1 class="mt-5 mb-5">Facilities</h1>
1717
</div>
1818
{% endfor %}
1919
</div>
20-
</div>
21-
<div class="container mb-3">
20+
<aside class="secondary-breaker">
21+
<div class="container text-center">
22+
</div>
23+
</aside>
2224
<h2 class="mt-5 mb-5">Industry Partners</h2>
2325
<div class="row justify-content-center">
2426
{% for partner in site.partners %}

_includes/nav.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
}
1919
}
2020

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

2830
/*

_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;">

_sass/base.scss

Lines changed: 7 additions & 1 deletion
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 {
File renamed without changes.

0 commit comments

Comments
 (0)