diff --git a/ADD_CONTRIBUTOR.md b/ADD_CONTRIBUTOR.md new file mode 100644 index 000000000..9cf865005 --- /dev/null +++ b/ADD_CONTRIBUTOR.md @@ -0,0 +1,30 @@ +# How to add new contributor +Please follow these steps to add new contributor to [contributors page](https://falco.org//community/contributors/#the-latest-contributors): +1. Fork [Falco](https://github.com/falcosecurity/falco-website) repository +2. Add new contributor image to + the [static/img/community/contributors](https://github.com/falcosecurity/falco-website/blob/master/static/img/community/contributors) + folder. Use svg, preferably rounded images +3. Add new contributor information to [contributors data file](https://github.com/falcosecurity/falco-website/blob/master/data/contributors.yaml) at the beginning of the file before the first element using template below +``` +- date: January and February, 2022 + names: + - Alban Créquy + links: + - https://github.com/alban + images: + - /img/community/contributors/melissa_kilby.svg +``` +4. If you need to add more than one contributor use template below +``` +- date: February, 2023 + names: + - Melissa Kilby + - David Windsor + links: + - https://github.com/incertum + - https://github.com/dwindsor + images: + - /img/community/contributors/melissa_kilby.svg + - /img/community/contributors/contributor_m.svg +``` +5. Create pull request to the Falco repository with your changes diff --git a/ADD_NOMINATION.md b/ADD_NOMINATION.md new file mode 100644 index 000000000..39bad8797 --- /dev/null +++ b/ADD_NOMINATION.md @@ -0,0 +1,14 @@ +# How to add nomination of the month +Please follow these steps to add nomination to [contributors page](https://falco.org/community/contributors/#nominate-the-next-contributor-of-the-month): +1. Fork [Falco](https://github.com/falcosecurity/falco-website) repository +2. Add new information to [nominations file](https://github.com/falcosecurity/falco-website/blob/master/data/nominations.yaml) at the bottom of the file after the last element using template below +``` +- month: May + link: https://github.com/falcosecurity/community/issues/166 + open: May 15, 2023 + close: May 24, 2023 + period: May 25, 2023 — May 27, 2023 + announcement: May 28, 2023 +``` +3. Note: only 3 last month nominations will be shown. Others will be hidden automatically +4. Create pull request to the Falco repository with your changes diff --git a/assets/scss/_tables.scss b/assets/scss/_tables.scss index 36aca558f..d1f6cb157 100644 --- a/assets/scss/_tables.scss +++ b/assets/scss/_tables.scss @@ -26,4 +26,33 @@ @include media-breakpoint-up(xl) { width: 80%; } + + &--sm { + font-size: 0.75rem; + } + + &-rounded { + box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05); + border-collapse: separate; + border-spacing: 0; + border-radius: $table-border-radius; + + th:first-child { + border-top-left-radius: $table-border-radius; + } + + th:last-child { + border-top-right-radius: $table-border-radius; + } + + tr:last-child { + td:first-child { + border-bottom-left-radius: $table-border-radius; + } + + td:last-child { + border-bottom-right-radius: $table-border-radius; + } + } + } } diff --git a/assets/scss/_variables_project.scss b/assets/scss/_variables_project.scss index d867899ed..4376dce4c 100644 --- a/assets/scss/_variables_project.scss +++ b/assets/scss/_variables_project.scss @@ -104,6 +104,7 @@ $table-border-color: $light; $table-cell-padding: 1rem; $table-cell-padding-sm: .5rem; $table-head-bg: $light; +$table-border-radius: 1.25rem; // // Pagination diff --git a/content/en/community/contributors.md b/content/en/community/contributors.md index 5f1b6d468..2a676ca1c 100644 --- a/content/en/community/contributors.md +++ b/content/en/community/contributors.md @@ -1,5 +1,6 @@ --- title: Contributors +layout: contributors --- {{< blocks/content wrap="col" >}} diff --git a/data/contributors.yaml b/data/contributors.yaml new file mode 100644 index 000000000..8922b1edd --- /dev/null +++ b/data/contributors.yaml @@ -0,0 +1,92 @@ +- date: February, 2023 + names: + - Melissa Kilby + - David Windsor + links: + - https://github.com/incertum + - https://github.com/dwindsor + images: + - /img/community/contributors/melissa_kilby.svg + - /img/community/contributors/contributor_m.svg +- date: January, 2023 + names: + - Logan Bond + links: + - https://github.com/EXONER4TED +- date: January and February, 2022 + names: + - Alban Créquy + links: + - https://github.com/alban +- date: November and December, 2021 + names: + - Pablo Lopez Zaldivar + links: + - https://github.com/pabloopez +- date: September and October, 2021 + names: + - Leo Di Donato + links: + - https://github.com/leodido +- date: August, 2021 + names: + - Teryl Taylor + - Frederico Araujo + links: + - https://github.com/terylt + - https://github.com/araujof +- date: July, 2021 + names: + - Furkan Türkal + links: + - https://github.com/Dentrax +- date: June, 2021 + names: + - Ismail Yenigul + links: + - https://github.com/ismailyenigul +- date: May, 2021 + names: + - Batuhan Apaydın + - Yuvraj + links: + - https://github.com/developer-guy + - https://github.com/evalsocket +- date: April, 2021 + names: + - Batuhan Apaydın + - Yuvraj + links: + - https://github.com/developer-guy + - https://github.com/evalsocket +- date: March, 2021 + names: + - Frank Jogeleit + links: + - https://github.com/fjogeleit +- date: February, 2021 + names: + - Scott Nichols + links: + - https://github.com/n3wscott +- date: January, 2021 + names: + - Carlos Panato + - KeisukeYamashita + - Rajakavitha Kodhandapani + links: + - https://github.com/cpanato + - https://github.com/KeisukeYamashita + - https://github.com/Rajakavitha1 +- date: December, 2020 + names: + - Massimiliano Giovagnoli + - Jonah Jones + links: + - https://github.com/maxgio92 + - https://github.com/jonahjon +- date: November, 2020 + names: + - Thomas Labarussias + links: + - https://github.com/Issif diff --git a/data/nominations.yaml b/data/nominations.yaml new file mode 100644 index 000000000..017a4fb73 --- /dev/null +++ b/data/nominations.yaml @@ -0,0 +1,18 @@ +- month: January / February + link: none + open: Feb 15, 2023 + close: Feb 24, 2023 + period: Feb 25, 2023 — Feb 27, 2023 + announcement: Feb 28, 2023 +- month: March + link: https://github.com/falcosecurity/community/issues/164 + open: Mar 13, 2023 + close: Mar 20, 2023 + period: Mar 21, 2023 — Mar 27, 2023 + announcement: Mar 31, 2023 +- month: April + link: https://github.com/falcosecurity/community/issues/165 + open: Apr 10, 2023 + close: Apr 17, 2023 + period: Apr 18, 2023 — Apr 24, 2023 + announcement: Apr 28, 2023 diff --git a/layouts/community/contributors.html b/layouts/community/contributors.html new file mode 100644 index 000000000..f453c67bd --- /dev/null +++ b/layouts/community/contributors.html @@ -0,0 +1,80 @@ +{{ define "main" }} + +
+
+
+
+

+ Contributor of the Month +

+

Hundreds of developers around the world contribute to Falco open source projects. Our Hall of Fame honors the best of the best.

+ +
+
+
+
+ +
+
+
+
+

The latest contributors

+ {{ partial "contributors.html" }} +
+
+
+
+ +
+
+
+
+

Nominate the next Contributor of the Month

+

Head over to the 👉🏼 Falco community repo. You’ll find an issue by month to offer nominations (open for one week starting the second Tuesday of each month) and then vote

+
+ + + + + + + + + + + + {{ partial "nominations.html" }} + +
MonthNominations openNominations closeVoting periodAnnouncement
+
+
+
+
+
+ +
+
+ +
+
+ +{{ end }} diff --git a/layouts/partials/contributors.html b/layouts/partials/contributors.html new file mode 100644 index 000000000..1f6d6f7b1 --- /dev/null +++ b/layouts/partials/contributors.html @@ -0,0 +1,98 @@ +{{ $contributors := site.Data.contributors }} + +{{ range $i, $contributor := $contributors }} + {{ if and (ge $i 0) (le $i 1) }} +
+
+
+ {{ if eq $i 0 }} +
+

{{ $contributor.date }}

+
+ {{$links := $contributor.links }} + {{$names := $contributor.names }} + {{$images := $contributor.images }} + {{ range $index, $link := $links }} +
+ {{ with $contributor.images }} + {{ index $names $index }} + {{ end }} + {{ index $names $index }} +
+ {{ end }} +
+
+ {{ else }} +
+
+ {{ $contributor.date }} +
+

+ {{$links := $contributor.links }} + {{$names := $contributor.names }} + {{ range $index, $link := $links }} + {{ if ne $index (sub (len $links) 1) }} + {{ index $names $index }} + and + {{ else }} + {{ index $names $index }} + {{ end }} + {{ end }} +

+
+ {{ end }} +
+
+
+ {{ end }} +{{ end }} + + + +
+ +
diff --git a/layouts/partials/nominations.html b/layouts/partials/nominations.html new file mode 100644 index 000000000..6daaf70e1 --- /dev/null +++ b/layouts/partials/nominations.html @@ -0,0 +1,24 @@ +{{ $nominations := site.Data.nominations }} +{{ $length := len $nominations }} + +{{ range $i, $nomination := $nominations }} + {{ if and (ge $i (sub $length 3)) (le $i (sub $length 1)) }} + {{ if eq $i (sub $length 3) }} + + {{ $nomination.month }} + {{ $nomination.open }} + {{ $nomination.close }} + {{ $nomination.period }} + {{ $nomination.announcement }} + + {{ else if or (eq $i (sub $length 1)) (eq $i (sub $length 2)) }} + + {{ $nomination.month }} + {{ $nomination.open }} + {{ $nomination.close }} + {{ $nomination.period }} + {{ $nomination.announcement }} + + {{ end }} + {{ end }} +{{ end }}