File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626{% if has_upcoming_events == true %}
2727< section class ="upcoming-events-section ">
2828 < h2 > Upcoming Events</ h2 >
29- < div class ="entries-grid ">
29+ < div class ="upcoming-events-list ">
3030 {% for post in all_events %}
3131 {% assign start_date = post.event.start_date | date: "%Y-%m-%d" %}
3232 {% capture posttime %}{{ start_date | date: '%s'}}{% endcapture %}
Original file line number Diff line number Diff line change @@ -88,22 +88,22 @@ peer-review:
8888 </div >
8989</div >
9090
91+ {% include upcoming-events.html %}
92+
93+ <br clear =" both " >
94+
9195{% assign new_ppl = site.data.contributors | reverse %}
9296
9397## New pyOpenSci contributors
9498
95- <div class =" entries-grid " >
96- {% for aperson in new_ppl limit:4 %}
99+ <div class =" entries-grid entries-grid--contributors " >
100+ {% for aperson in new_ppl limit:5 %}
97101 {% include people-grid.html %}
98102{% endfor %}
99103</div >
100104
101105<br clear =" both " >
102106
103- {% include upcoming-events.html %}
104-
105- <br clear =" both " >
106-
107107<!-- pull blog posts not events -->
108108{% assign blog_posts = site.posts | where_exp: "item", "item.categories contains 'blog-post'" %}
109109
Original file line number Diff line number Diff line change 316316
317317}
318318
319+ // Landing page upcoming events list: smaller card, less padding
320+ .upcoming-events-list .event-card {
321+ max-width : 800px ;
322+ margin-bottom : 0 ;
323+
324+ .event-card__date {
325+ width : 140px ;
326+ min-width : 140px ;
327+ padding : 0.5rem ;
328+ }
329+
330+ .event-card__date-text {
331+ font-size : 1rem ;
332+
333+ span :last-of-type {
334+ font-size : 0.7rem ;
335+ }
336+ }
337+
338+ .event-card__details {
339+ padding : 0.5rem 0.75rem ;
340+
341+ h3 {
342+ margin-bottom : 0.35rem ;
343+ font-size : 1.1rem ;
344+ }
345+
346+ p {
347+ margin-bottom : 0.5rem ;
348+ font-size : 0.9rem ;
349+ }
350+
351+ .event-card__button {
352+ padding : 0.35rem 0.75rem ;
353+ font-size : 0.9rem ;
354+ }
355+ }
356+ }
357+
319358
320359 // Responsive design adjustments
321360 @media (max-width : 600px ) {
Original file line number Diff line number Diff line change @@ -174,7 +174,53 @@ $colors: (
174174 @media (min-width : $large ) {
175175 grid-template-columns : repeat (4 , 1fr ); // Large: 4 columns
176176 }
177+
178+ // Home page new contributors: single row of 5, smaller cards, more gap
179+ & .entries-grid--contributors {
180+ grid-template-columns : repeat (5 , 1fr );
181+ grid-gap : 1rem ;
182+ justify-items : center ;
183+ > * {
184+ max-width : 200px ;
185+ min-width : 0 ;
186+ width : 100% ;
187+ }
188+ .people-card {
189+ h4 .person_name {
190+ font-size : 0.95rem ;
191+ padding-left : 0.5em ;
192+ padding-right : 0.5em ;
193+ }
194+ p .page__meta ,
195+ p .contrib_org {
196+ padding-left : 0.5em ;
197+ padding-right : 0.5em ;
198+ }
199+ p .page__meta ,
200+ p .contrib_org ,
201+ .ppl_social {
202+ font-size : 0.75rem ;
203+ }
204+ .ppl_social {
205+ padding-left : 0.5em ;
206+ padding-right : 0.5em ;
207+ padding-bottom : 0.4em ;
208+ }
209+ }
210+ }
211+ }
212+
213+ // Home page upcoming events: single column, full-width horizontal cards
214+ .upcoming-events-list {
215+ display : flex ;
216+ flex-direction : column ;
217+ gap : 1rem ;
218+
219+ > * {
220+ max-width : none ;
221+ width : 100% ;
177222 }
223+ }
178224
179225// Home page packages section - fixed breakpoints (max 3 columns for better spacing)
180226.packages-grid {
You can’t perform that action at this time.
0 commit comments