Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review homepage #622

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 17 additions & 3 deletions themes/ropensci/layouts/_default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,23 @@
<!-- Hero divider -->
</div>
<img class="divider-lg" src="/images/svg/divider-lg.svg" alt="" />
{{ partial "whole-page-fragments/packages/packages" . }}
{{ partial "whole-page-fragments/review" (dict "context" . "divider" "rl" ) }}
{{ partial "whole-page-fragments/community" (dict "context" . "divider" "lr" ) }}
{{ $.Scratch.Set "counter" 0}}
{{ $partials := (slice "packages/packages" "review" "community" "r-universe" "champions") }}
{{ $Site := .Site }}
{{ range (shuffle $partials )}}
{{ $counter := $.Scratch.Get "counter" }}
{{ $path := printf "whole-page-fragments/%s" . }}
{{ if eq $counter 0 }}
{{ partial $path (dict "context" . "Site" $Site ) }}
{{ else }}
{{ if ( modBool $counter 2 ) }}
{{ partial $path (dict "context" . "Site" $Site "divider" "lr" ) }}
{{ else }}
{{ partial $path (dict "context" . "Site" $Site "divider" "rl" ) }}
{{ end }}
{{ end }}
{{ $.Scratch.Add "counter" 1}}
{{ end }}
{{ partial "whole-page-fragments/news" (dict "Site" .Site "divider" "rl" ) }}
{{ partial "whole-page-fragments/newsletter" (dict "divider" "lr" ) }}
{{ partial "whole-page-fragments/brands" (dict "Site" .Site "divider" "rl" ) }}
Expand Down
2 changes: 1 addition & 1 deletion themes/ropensci/layouts/champions/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>{{ .Title }}</h1>
<div class="container">
<div class="row about-block">
<div class="col-md-3 text-md-right">
<h4 class="about-block__title" id="editors">
<h4 class="about-block__title" id="champions-list">
Champions
</h4>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ partial "whole-page-fragments/divider" .divider }}
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}
<section class="section community">
<div class="container">
<h2 class="title mt-5">Ask & Answer #rstats</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ partial "whole-page-fragments/divider" .divider }}
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}

<!-- Brands section -->
<section class="section section-brands text-md-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}
<!-- Community section -->
<section class="section community">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2 class="title">Champions Program</h2>
<p class="subtitle">
The rOpenSci Champions Program is for people from historically and systematically excluded groups who are interested in contributing to rOpenSci and the broader open source and open science communities.
</p>
<a class="link-arrow" href="/champions"><span>Find out more</span></a>
</div>
<div class="col-md-6">
<img src="{{ "images/pexels-photo-127016.jpeg" | relURL }}" alt="A bike." />
</div>
</div>
<div class="row soft-cards cards">
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Champions</h5>
<p class="card-text">
Meet the cohorts.
</p>
<a class="card-link link-arrow" href="/champions#champions-list"><span>Champions of all cohorts</span></a>
</div>
</div>
</div>

<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Posts about the champions program</h5>
<p class="card-text">
Updates from the rOpenSci blog
</p>
<a class="card-link link-arrow" href="/tags/champions-program"><span>Posts</span></a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Training</h5>
<p class="card-text">
rOpenSci Champions Pilot Year: Training Wrap-Up.
</p>
<a class="card-link link-arrow" href="/blog/2023/08/04/champions-program-training/"><span>Read</span></a>
</div>
</div>
</div>
</div>
</div>
</section>
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ partial "whole-page-fragments/divider" .divider }}
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}
<!-- Community section -->
<section class="section community">
<div class="container">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ partial "whole-page-fragments/divider" .divider }}
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}

<!-- News section -->
<section class="section section-news">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{ partial "whole-page-fragments/divider" .divider }}

{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}
<!-- Newsletter section -->
<section class="section section-newsletter d-print-none">
<div class="container">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}
<!-- Community section -->
<section class="section community">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2 class="title">The R-universe project</h2>
<p class="subtitle">
The R-universe platform is an umbrella project under which we experiment with various new ideas for improving publication and discovery of research software in R.
</p>
<a class="link-arrow" href="/r-universe"><span>Find out more</span></a>
</div>
<div class="col-md-6">
<img src="{{ "images/pexels-pixabay-2159.jpg" | relURL }}" alt="A rocket." />
</div>
</div>
<div class="row soft-cards cards">
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Browse R-universe</h5>
<p class="card-text">
Discover use packages.
</p>
<a class="card-link link-arrow" href="/r-universe"><span>The Platform</span></a>
</div>
</div>
</div>

<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Posts about R-universe</h5>
<p class="card-text">
Updates from the rOpenSci blog:
</p>
<a class="card-link link-arrow" href="/tags/r-universe/"><span>Posts</span></a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Discussions</h5>
<p class="card-text">
Bug reports and feature requests.
</p>
<a class="card-link link-arrow" href="https://github.com/r-universe-org/help/discussions"><span>Participate</span></a>
</div>
</div>
</div>
</div>
</div>
</section>
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ partial "whole-page-fragments/divider" .divider }}
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}

<!-- Review section -->
<section class="section soft-review d-none d-md-block">
Expand Down Expand Up @@ -47,14 +49,13 @@ <h5 class="card-title">Guidance & Standards</h5>
<div class="card">
<div class="card-body">
<div class="card-icon">
<img src="/images/svg/software-review/discuss.svg" alt="" />
<img src="/images/svg/software-review/guidance.svg" alt="" />
</div>
<h5 class="card-title">Active Community</h5>
<h5 class="card-title">Statistical software</h5>
<p class="card-text">
Our diverse community of academics, data scientists and developers provide a
platform for shared learning, collaboration and reproducible science
We have expanded our peer review system include packages that implement statistical algorithms.
</p>
<a class="card-link link-arrow" href="/software-reviewer/"><span>Review for rOpenSci</span></a>
<a class="card-link link-arrow" href="/stat-software-review/"><span>Read more</span></a>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{ partial "whole-page-fragments/divider" .divider }}
{{ with .divider }}
{{ partial "whole-page-fragments/divider" . }}
{{ end }}

<!-- Volunteer section -->
<section class="section section-volunteer">
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.