Skip to content

Commit

Permalink
Reformat av team page
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaulpl committed Sep 8, 2024
1 parent 3ee05ee commit 2d866d2
Show file tree
Hide file tree
Showing 6 changed files with 249 additions and 17 deletions.
88 changes: 88 additions & 0 deletions AV/generateMembersHTML.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import re


active = [
(
"Eduardo Madeira",
"https://conf.researchr.org/getProfileImage/eduardomadeira/42073539-cbf3-4609-b04b-0a63287afd82/small.jpg",
),
(
"Alexander Bai",
"https://conf.researchr.org/getProfileImage/alexanderbai/dc1a164a-690d-4c08-926d-de8f9ab476d5/small.jpg",
),
(
"Jessica Foster",
"https://icfp24.sigplan.org/getProfileImage/jessicafoster/447e864c-9571-4c54-9f51-0e78d5d07ea4/small.jpg",
),
(
"Ethan Range",
"https://conf.researchr.org/getProfileImage/ethanrange/a82e09a2-116a-4794-a499-13496f915d0a/small.jpg",
),
(
"Chris Lam",
"https://conf.researchr.org/getProfileImage/christopherlam1/00386a60-bf17-48da-8942-0d2815d7fa08/small.jpg",
),
(
"Jan-Paul Ramos",
"https://conf.researchr.org/getProfileImage/janpaulramosdavila/156687da-3cdb-4157-b31e-636bb71b31dc/small.jpg",
),
(
"Max Sun",
"https://conf.researchr.org/getProfileImage/maxsun/7f927b55-626c-4c5c-9ac8-e10beb3d0b76/small.jpg",
),
(
"John Hui",
"https://conf.researchr.org/getProfileImage/johnhui/54a9a819-59d8-4b2c-96f8-76f813666876/small.jpg",
),
(
"Zixian Cai",
"https://conf.researchr.org/getProfileImage/zixiancai/22d210bf-85c3-49e6-8278-4ea50f3290dd/small.jpg",
),
(
"Guilherme Espada",
"https://conf.researchr.org/getProfileImage/guilhermeespada/221aa9ee-6215-4712-b6df-a5a09d269e04/small.jpg",
),
(
"Apoorv Ingle",
"https://conf.researchr.org/getProfileImage/apoorvingle/76632b78-6d6b-4f2e-9c36-af0a9e1a5fdb/small.jpg",
),
]

emeritus = [
(
"Bhakti Shah",
"https://conf.researchr.org/getProfileImage/bhaktishah/624a5a4c-260a-43c9-b37a-eff79a3654f5/small.jpg?1719354125000",
),
(
"Leif Andersen",
"https://conf.researchr.org/getProfileImage/leifandersen/022e7f05-2a9a-4e3d-8be9-418b798e00c0/small.jpg?1711494677000",
),
(
"Benjamin Chung",
"https://conf.researchr.org/getProfileImage/benjaminchung/30978af0-bcee-4c1e-9dd1-f2588ea14f38/small.jpg?1719395332000",
),
]

ID_MATCHER = re.compile(r"getProfileImage/(\w+)/")


def extractUserId(url: str) -> str:
return ID_MATCHER.search(url).group(1)


def makeHTML(members: list[(str, str)], section: str):
with open(f"generated/{section}.html", "w") as f:
f.write(
'<div style="display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px;">'
)
for name, img in members:
uid = extractUserId(img)
f.write(
f'<a href="https://conf.researchr.org/profile/conf/{uid}" style="display: block; text-align: center; width: 180px;"><span style="display: block; height: 180px; width: 180px; overflow: hidden;"><img style="max-width: 100%;" src="{img}" alt="{name}"></span><span style="display: block;">{name}</span></a>'
)
f.write("</div>")


if __name__ == "__main__":
makeHTML(active, "active")
makeHTML(emeritus, "emeritus")
109 changes: 109 additions & 0 deletions AV/generated/active.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<div
style="
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 20px;
"
>
<a
href="https://conf.researchr.org/profile/conf/eduardomadeira"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/eduardomadeira/42073539-cbf3-4609-b04b-0a63287afd82/small.jpg"
alt="Eduardo Madeira" /></span
><span style="display: block">Eduardo Madeira</span></a
><a
href="https://conf.researchr.org/profile/conf/alexanderbai"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/alexanderbai/dc1a164a-690d-4c08-926d-de8f9ab476d5/small.jpg"
alt="Alexander Bai" /></span
><span style="display: block">Alexander Bai</span></a
><a
href="https://conf.researchr.org/profile/conf/jessicafoster"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://icfp24.sigplan.org/getProfileImage/jessicafoster/447e864c-9571-4c54-9f51-0e78d5d07ea4/small.jpg"
alt="Jessica Foster" /></span
><span style="display: block">Jessica Foster</span></a
><a
href="https://conf.researchr.org/profile/conf/ethanrange"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/ethanrange/a82e09a2-116a-4794-a499-13496f915d0a/small.jpg"
alt="Ethan Range" /></span
><span style="display: block">Ethan Range</span></a
><a
href="https://conf.researchr.org/profile/conf/christopherlam1"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/christopherlam1/00386a60-bf17-48da-8942-0d2815d7fa08/small.jpg"
alt="Chris Lam" /></span
><span style="display: block">Chris Lam</span></a
><a
href="https://conf.researchr.org/profile/conf/janpaulramosdavila"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/janpaulramosdavila/156687da-3cdb-4157-b31e-636bb71b31dc/small.jpg"
alt="Jan-Paul Ramos" /></span
><span style="display: block">Jan-Paul Ramos</span></a
><a
href="https://conf.researchr.org/profile/conf/maxsun"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/maxsun/7f927b55-626c-4c5c-9ac8-e10beb3d0b76/small.jpg"
alt="Max Sun" /></span
><span style="display: block">Max Sun</span></a
><a
href="https://conf.researchr.org/profile/conf/johnhui"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/johnhui/54a9a819-59d8-4b2c-96f8-76f813666876/small.jpg"
alt="John Hui" /></span
><span style="display: block">John Hui</span></a
><a
href="https://conf.researchr.org/profile/conf/zixiancai"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/zixiancai/22d210bf-85c3-49e6-8278-4ea50f3290dd/small.jpg"
alt="Zixian Cai" /></span
><span style="display: block">Zixian Cai</span></a
><a
href="https://conf.researchr.org/profile/conf/guilhermeespada"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/guilhermeespada/221aa9ee-6215-4712-b6df-a5a09d269e04/small.jpg"
alt="Guilherme Espada" /></span
><span style="display: block">Guilherme Espada</span></a
><a
href="https://conf.researchr.org/profile/conf/apoorvingle"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/apoorvingle/76632b78-6d6b-4f2e-9c36-af0a9e1a5fdb/small.jpg"
alt="Apoorv Ingle" /></span
><span style="display: block">Apoorv Ingle</span></a
>
</div>
37 changes: 37 additions & 0 deletions AV/generated/emeritus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<div
style="
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 20px;
"
>
<a
href="https://conf.researchr.org/profile/conf/bhaktishah"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/bhaktishah/624a5a4c-260a-43c9-b37a-eff79a3654f5/small.jpg?1719354125000"
alt="Bhakti Shah" /></span
><span style="display: block">Bhakti Shah</span></a
><a
href="https://conf.researchr.org/profile/conf/leifandersen"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/leifandersen/022e7f05-2a9a-4e3d-8be9-418b798e00c0/small.jpg?1711494677000"
alt="Leif Andersen" /></span
><span style="display: block">Leif Andersen</span></a
><a
href="https://conf.researchr.org/profile/conf/benjaminchung"
style="display: block; text-align: center; width: 180px"
><span style="display: block; height: 180px; width: 180px; overflow: hidden"
><img
style="max-width: 100%"
src="https://conf.researchr.org/getProfileImage/benjaminchung/30978af0-bcee-4c1e-9dd1-f2588ea14f38/small.jpg?1719395332000"
alt="Benjamin Chung" /></span
><span style="display: block">Benjamin Chung</span></a
>
</div>
20 changes: 4 additions & 16 deletions AV/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,13 @@ SIGPLAN-AV is a subcommitee of SIGPLAN whose goal is to centralize the efforts o

Everything we livestream and record is available for no cost at our [YouTube channel](https://www.youtube.com/@acmsigplan).

#### Active Members

- [Eduardo Madeira](https://conf.researchr.org/profile/conf/eduardomadeira)
- [Alexander Bai](https://conf.researchr.org/profile/conf/alexanderbai)
- [Jessica Foster](https://conf.researchr.org/profile/conf/jessicafoster)
- [Ethan Range](https://conf.researchr.org/profile/conf/ethanrange)
- [Chris Lam](https://conf.researchr.org/profile/conf/christopherlam1)
- [Jan-Paul Ramos](https://conf.researchr.org/profile/janpaulramosdavila)
- [Max Sun](https://conf.researchr.org/profile/conf/maxsun)
- [John Hui](https://conf.researchr.org/profile/conf/johnhui)
- [Zixian Cai](https://conf.researchr.org/profile/conf/zixiancai)
- [Guilherme Espada](https://conf.researchr.org/profile/conf/guilhermeespada)
- [Apoorv Ingle](https://conf.researchr.org/profile/conf/apoorvingle)
#### Active Members

{% include_relative generated/active.html %}

#### Members Emeritus

- [Bhakti Shah](https://conf.researchr.org/profile/conf/bhaktishah)
- [Leif Andersen](https://conf.researchr.org/profile/conf/leifandersen)
- [Benjamin Chung](https://conf.researchr.org/profile/conf/benjaminchung)
{% include_relative generated/emeritus.html %}

We also thank all the people who contributed to A/V before it became the structure it is today.

Expand Down
10 changes: 10 additions & 0 deletions AV/regenAndClean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'



ruff format
ruff check --fix-only
python generateMembersHTML.py
prettier generated/*.html -w
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build: vendor/bundle

.PHONY: serve
serve: vendor/bundle
bundle exec jekyll serve
bundle exec jekyll serve --livereload

.PHONY: update
update: vendor/bundle
Expand Down

0 comments on commit 2d866d2

Please sign in to comment.