Skip to content

Commit e531934

Browse files
authored
Tighten up homepage content and add list of blog posts (#508)
1 parent bef1b47 commit e531934

File tree

3 files changed

+96
-8
lines changed

3 files changed

+96
-8
lines changed

assets/scss/pages/_home.scss

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,63 @@ ul.cta-group {
2626
.home-stories .projects-container {
2727
max-height: 80vh;
2828
overflow-y: auto;
29+
}
30+
31+
// Blog cards grid - responsive layout for recent posts
32+
.blog-cards-grid {
33+
.archive {
34+
display: grid;
35+
grid-template-columns: 1fr;
36+
gap: 2rem;
37+
38+
// 2 cards on tablets+
39+
@media (min-width: 768px) {
40+
grid-template-columns: repeat(3, 1fr);
41+
}
42+
}
43+
}
44+
45+
// Recent posts in a single row on medium+ screens
46+
.recent-posts-row {
47+
.col-12 {
48+
.card {
49+
display: flex;
50+
flex-direction: column;
51+
52+
.card-image {
53+
height: 200px;
54+
overflow: hidden;
55+
flex-shrink: 0;
56+
57+
img {
58+
width: 100%;
59+
height: 100%;
60+
object-fit: cover;
61+
}
62+
}
63+
64+
.card-text {
65+
flex-grow: 1;
66+
}
67+
}
68+
69+
// Single row on medium and larger screens
70+
@media (min-width: 768px) {
71+
display: flex;
72+
flex-wrap: wrap;
73+
gap: 1.5rem;
74+
align-items: stretch;
75+
76+
.card {
77+
flex: 1;
78+
min-width: 0; // Prevent flex items from overflowing
79+
margin-bottom: 0;
80+
}
81+
82+
.see-all {
83+
flex-basis: 100%; // Force see-all to take full width and wrap to new line
84+
margin-top: 0;
85+
}
86+
}
87+
}
2988
}

content/_index.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ sections:
4141
- block: markdown
4242
id: service
4343
content:
44-
title: We help communities build their own interactive computing hub in the cloud with open infrastructure
44+
title: We give communities a digital hub with the tools, resources, and data for their workflows
4545
subtitle:
4646
text: |
4747
4848
{{< servicetech >}}
49-
50-
2i2c stands for **the International Interactive Computing Collaboration**. Our [community hub platform and consultancy services](/platform) ensure your community makes the best use of open infrastructure for interactive computing in the cloud.
51-
52-
We serve **over 90 communities across the globe** with **over 7000 active users** dedicated to creating and sharing knowledge. See [our community impact stories](/communities) for inspiration.
49+
50+
Membership in 2i2c's [community network](./join/_index.md) provides access to our [hub platform and services](/platform) so your community can create an share knowledge with your own open infrastructure. We serve [over 90 communities](./members/index.md) in research and education. See [our community impact stories](/communities) for inspiration.
51+
5352
5453
<style>
5554
#who-logos {
@@ -75,6 +74,29 @@ sections:
7574
7675
{{< cta cta_text="Join our network of community hubs" cta_link="/join" cta_new_tab="false" >}}
7776
77+
- block: collection
78+
id: posts
79+
content:
80+
title: From our blog
81+
subtitle: The [2i2c blog](./blog/_index.md) shares our recent enhancements and impact.
82+
count: 3
83+
filters:
84+
folders:
85+
- blog
86+
exclude_featured: false
87+
exclude_future: false
88+
exclude_past: false
89+
offset: 0
90+
order: desc
91+
archive:
92+
enable: true
93+
text: View all blog posts
94+
link: /blog/
95+
design:
96+
view: masonry
97+
columns: '1'
98+
css_class: 'recent-posts-row'
99+
78100
- block: markdown
79101
id: jupyterhub
80102
design:
@@ -206,7 +228,7 @@ sections:
206228
id: learnplatform
207229
content:
208230
title: Learn more about our platform.
209-
subtitle:
231+
subtitle:
210232
text: |
211233
212234
{{< cta cta_text="Learn about our interactive computing platform" cta_link="/platform" cta_new_tab="false" >}}

contribute/newsletter.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ In [Month] we focused on [big theme that stands out and major takeaways]. We [ac
1313
[/Intro]
1414
1515
[Highlights]
16-
<p class="category-label [category]">[category nam with spaces not -]</p>
16+
## [Category]
1717
18-
## [Title of Featured Post N (1-3 total)]
18+
### [Title of Featured Post in category (1-3 total)]
1919
2020
[Description - 1-3 sentences describing what happened, why it matters, and any important information a user would want to know.]
2121
@@ -30,6 +30,13 @@ Read more 👉 [url-without-https://](url)
3030
3131
## [Title of Featured Post N+1 etc]
3232
[/Highlights]
33+
34+
[Community]
35+
## From the community
36+
37+
- [community] did [thing with link to their post]
38+
- [open source project] released [link to release of version NN]
39+
[/Community]
3340
---
3441
3542
_Here's a list of all the blog posts we published in [Month Year]._

0 commit comments

Comments
 (0)