Skip to content

Commit 8987363

Browse files
committed
Homepage fun
1 parent 9532883 commit 8987363

File tree

8 files changed

+50
-29
lines changed

8 files changed

+50
-29
lines changed

_includes/feature_row_pyos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% assign feature_row = page.feature_row %}
55
{% endif %}
66

7-
<div class="feature-grid">
7+
<div class="feature__grid">
88

99
{% for f in feature_row %}
1010
<div class="grid-item">

_layouts/posts_gallery.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ul>
2121

2222
{% assign color_counter = 0 %} <!-- Initialize the counter once, outside the loop -->
23-
{% assign color_max = 4 %} <!-- Set the max number of colors -->
23+
{% assign color_max = 4 %} <!-- Max number of colors -->
2424

2525

2626
{% assign entries_layout = page.entries_layout | default: 'list' %}

_pages/home.md

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: splash
33
title: "Welcome to pyOpenSci"
4-
excerpt: "We support the scientific Python tools that drive open science through peer review, training and community building."
4+
excerpt: "We make it easier for scientists to create, find, maintain and contribute to reusable code and software."
55
author_profile: false
66
published: true
77
site-map: true
@@ -15,11 +15,11 @@ header:
1515
- label: "Read our Peer Review Guide"
1616
url: "https://www.pyopensci.org/software-peer-review/"
1717
mission:
18-
- excerpt: "We build diverse community that supports free and open Python tools for processing scientific data. We also build technical skills needed to contribute to open source and that support open science. Join our global community."
18+
- excerpt: "pyOpenSci broadens participation in scientific open source by breaking down social and technical barriers. Join our global community."
1919
peer-review:
2020
- image_path: images/software-peer-review.png
2121
alt: "Light purple image that says software Peer Review. On the image is a woman at a laptop with a pyOpenSci logo on it and a cup of coffee next to her. There is a very light flower in the bottom right hand corner. "
22-
title: "Python Package Peer Review"
22+
title: "Python Software Peer Review"
2323
excerpt: "We offer peer review of Python software to increase the quality, usability and long term maintenance of the open source tools that drive open science. [JOSS accepts our review as theirs](https://www.pyopensci.org/software-peer-review/partners/joss.html) so you can get the benefits of pyOpenSci and JOSS through one review."
2424
url: https://www.pyopensci.org/software-peer-review/about/benefits.html
2525
btn_label: "> Learn more about the benefits of peer review."
@@ -31,13 +31,22 @@ peer-review:
3131
url: https://www.pyopensci.org/partners.html
3232
btn_label: "> Learn About Community Partners"
3333
btn_class: btn--inverse
34-
- image_path: images/python-packaging-guide.png
35-
title: "Simplifying Packaging"
34+
- image_path: images/homepage-graphics/simple-python-packaging-header.png
35+
title: "We Break Down Python Packaging Painpoints"
3636
alt: Light purple image that says python packaging guide and below it says simplifying python packaging. The background is a grey laptop with a hand looking down at the laptop the above.
37-
excerpt: "We are creating a beginner-friendly, **community-driven Python packaging guide**. Our guide is reviewed by members of the Python Packaging Authority, maintainers of core packaging tools and members of the scientific Python community. It recommends best practices for you to follow when creating a Python package."
38-
url: https://www.pyopensci.org/python-package-guide/
39-
btn_label: "> Read our packaging guide"
40-
btn_class: btn--inverse
37+
excerpt: "
38+
39+
Check out our beginner-friendly:
40+
41+
[Python Package Tutorials](https://www.pyopensci.org/python-package-guide/tutorials/intro.html)<br>
42+
43+
[Python packaging ecosystem overview](https://www.pyopensci.org/python-package-guide) <br><br>
44+
45+
All of our resources are co-developed with the broader Python community and reviewed by beginner to expert Pythonistas to ensure the material is accessible for all.
46+
"
47+
# url: https://www.pyopensci.org/python-package-guide/
48+
# btn_label: "> Read our packaging guide"
49+
# btn_class: btn--inverse
4150
---
4251

4352
{% include feature_row id="mission" type="center" %}
@@ -87,23 +96,29 @@ peer-review:
8796
{% assign blog_posts = site.posts | where_exp: "item", "item.categories contains 'blog-post'" %}
8897

8998
<div class="notice notice-highlight" markdown="1">
99+
90100
## Recent blog posts & updates
91101

92-
<div class="grid">
93-
{% for post in blog_posts limit:3 %}
102+
{% assign packages_sorted = site.data.packages | sort_natural: 'date_accepted' | reverse %}
94103

95-
<div class="cards">
96-
<h3 class="card-title"><a href="{{ site.baseurl }}{{ post.url}}" rel="permalink">{{ post.title }}</a></h3>
104+
{% assign color_counter = 0 %}
105+
{% assign color_max = 4 %} <!-- Max number of colors -->
97106

98-
<div>
99-
<p>{{ post.excerpt | markdownify }}</p>
100-
</div>
101107

102-
</div>
103-
{% endfor %}
108+
<div class="blog__grid">
109+
{% for post in blog_posts limit:3 %}
110+
{% unless post.header.overlay_image %}
111+
{% assign color_counter = color_counter | plus: 1 %}
112+
{% if color_counter == color_max %}
113+
{% assign color_counter = 0 %}
114+
{% endif %}
115+
{% endunless %}
116+
{% include archive-cards.html color_counter=color_counter %}
117+
{% endfor %}
104118

105119
</div>
106-
<p><a href="/blog/" class="btn btn--info btn--large">View All Posts <i class="fa fa-4 fa-arrow-circle-right" aria-hidden="true"></i></a></p>
120+
<a href="/blog/" class="btn btn--info btn--large">View more <i class="fa fa-4 fa-arrow-circle-right" aria-hidden="true"></i></a>
121+
107122
</div>
108123

109124

_posts/2025-02-07-pyopensci-2024-a-year-in-review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: single
33
title: "2024: A Transformative Year for pyOpenSci"
4-
excerpt: "2024 was a transformative year for pyOpenSci—but our mission has never been more important. In a time when access, equity, and sustainability in open science face challenges, we doubled down on our commitment to breaking down barriers. Through training, mentorship, and peer review, we expanded our community, created free educational resources, and empowered scientists worldwide. Here’s what we built together—and why it matters now more than ever."
4+
excerpt: "2024 was a transformative year for pyOpenSci. Through training, mentorship, and peer review, we expanded our community, created free educational resources, and empowered scientists worldwide. Here’s what we built together—and why it matters now more than ever."
55
author: "Leah Wasser"
66
permalink: /blog/2024-pyopensci-retrospective.html
77
header:

_sass/minimal-mistakes/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$threshold: $yiq-contrasted-threshold
8989
) {
9090
background-color: $background-color;
91-
color: yiq-contrast-color($background-color, $dark, $light, $threshold);
91+
color: yiq-contrast-color($background-color, $dark, $light, $threshold)!important;
9292
}
9393

9494

_sass/minimal-mistakes/_pyos-grid.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,21 +229,21 @@ $colors: (
229229
border-bottom: none;
230230
}
231231

232-
.feature-grid {
232+
.feature__grid {
233233
display: grid;
234234
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
235235
gap: 20px;
236-
//padding: 20px;
237236
width: 100%;
238237
box-sizing: border-box;
239238

240239
.grid-item {
241240
display: flex;
242241
flex-direction: column;
243-
background: #f9f9f9;
242+
background: $pyos-mediumpurple;
244243
border: 1px solid #ddd;
245244
border-radius: 8px;
246245
overflow: hidden;
246+
padding: 0;
247247
}
248248

249249

@@ -324,8 +324,13 @@ $colors: (
324324
}
325325
/* Blog & event grid styles*/
326326

327+
// Because notice text is smaller, rescale card for that specific case.
328+
.notice .blog__grid {
329+
font-size: 1.1rem;
330+
}
331+
327332
.blog__grid .cards {
328-
padding: 0 !important;
333+
padding: 0 0 1.5rem 0 !important;
329334
display: flex;
330335
flex-direction: column;
331336
height: 100%;
@@ -361,10 +366,10 @@ $colors: (
361366
}
362367

363368
.card__title-container {
364-
min-height: 60px; /* Set a minimum height to standardize the title area */
369+
min-height: 6rem;
365370
display: flex;
366371
align-items: center; /* Vertically center the title */
367-
padding: 0 15px; /* Padding around the title */
372+
padding: 0 15px;
368373
}
369374

370375
.card-excerpt{

_sass/minimal-mistakes/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ $background-block: #d6cfde;
8787

8888
$pyos-deeppurple: #33205c;
8989
$pyos-darkpurple: #542668;
90+
$pyos-mediumpurple: #735fab; //brand color
9091
$pyos-lightpurple: #e1dfed;
9192
$pyos-teal: #81c0aa;
9293
$pyos-magenta: #bb82b0;
64.1 KB
Loading

0 commit comments

Comments
 (0)