Skip to content

Commit fbaafef

Browse files
committed
Fix: remove overlay from hero
1 parent 733ca65 commit fbaafef

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

_includes/page__hero.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@
1717
{% endif %}
1818

1919
{% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %}
20-
20+
<!-- Add support for webp and remove overlay filter -->
2121
<div class="page__hero{% if page.header.overlay_color or page.header.overlay_image %}--overlay{% endif %}"
22-
style="{% if page.header.overlay_color %}background-color: {{ page.header.overlay_color | default: 'transparent' }};{% endif %} {% if overlay_img_path %}background-image: {% if overlay_filter %}{{ overlay_filter }}, {% endif %}url('{{ overlay_img_path }}');{% endif %}"
22+
style="
23+
{% if page.header.overlay_color %}
24+
background-color: {{ page.header.overlay_color | default: '#33205c' }};
25+
{% endif %}
26+
{% if overlay_img_path %}
27+
background-image: image-set(
28+
url('{{ overlay_img_path | replace: '.png', '.webp' }}') 1x,
29+
url('{{ overlay_img_path }}') type('image/png') 2x
30+
);
31+
{% endif %}
2332
>
2433
{% if page.header.overlay_color or page.header.overlay_image %}
2534
<div class="wrapper">

_pages/about-peer-review.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,27 @@ layout: splash
33
permalink: /about-peer-review/
44
title: "pyOpenSci Makes Python Software Better and Easier to Find Through Peer Review"
55
header:
6-
overlay_image: images/header.png
7-
overlay_filter: 0.8
6+
overlay_image: images/headers/pyos-peer-review-header.png
87
intro:
98
- excerpt: "Our open peer review process makes scientific software better and easier to discover. [Check out our accepted packages.](https://www.pyopensci.org/python-packages.html)"
109
benefits_scientists:
10+
<<<<<<< HEAD
1111
- image_path: images/landing-pages/trusted-python-software.png
12+
=======
13+
- image_path: images/landing-pages/peer-review-trusted-software.png
14+
>>>>>>> a97a465 (Fix: remove overlay from hero)
1215
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
1316
excerpt: "Through our partnerships with domain specific communities our catalog of trusted tools for scientists across domains continues to grow."
1417
title: "Scientists need trusted and vetted software"
1518
url: /partners.html
1619
btn_label: Learn more about scientific Python community partnerships
1720
btn_class: btn--primary
1821
benefits_maintainers:
22+
<<<<<<< HEAD
1923
- image_path: images/landing-pages/pyopensci-supports-maintainers.png
24+
=======
25+
- image_path: images/landing-pages/peer-review-supports-maintainers.png
26+
>>>>>>> a97a465 (Fix: remove overlay from hero)
2027
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
2128
excerpt: "The pyOpenSci peer review process multiplies shared knowledge, making it easier for Pythonistas of all levels to accomplish challenging tasks, such as navigating the Python packaging ecosystem, with relative ease. And our diverse community supports scientific package maintainers in their efforts to develop and build robust software."
2229
title: "Peer review benefits open source maintainers"

_sass/minimal-mistakes/_page.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
.page__title {
7272
margin-top: 0;
7373
line-height: 1;
74+
max-width: 85%;
7475

7576
a {
7677
color: $text-color;
@@ -670,4 +671,7 @@
670671
#main {
671672
padding: 0 .6rem;
672673
}
674+
.page__title {
675+
max-width: 100%;
676+
}
673677
}

0 commit comments

Comments
 (0)