diff --git a/content/people/_index.md b/content/people/_index.md new file mode 100644 index 00000000..76de9155 --- /dev/null +++ b/content/people/_index.md @@ -0,0 +1,11 @@ ++++ +title = "People of Linebender" +description = "Meet the members of Linebender who have chosen to share a profile." +sort_by = "slug" +template = "people.html" +page_template = "person.html" ++++ + +Meet the members of Linebender who have chosen to share a profile. You can also browse the [Linebender GitHub directory](https://github.com/orgs/linebender/people). + +[Learn how to add your profile](@/wiki/access.md#optional-members-add-your-profile). diff --git a/content/people/nuzzles.md b/content/people/nuzzles.md new file mode 100644 index 00000000..ec212df7 --- /dev/null +++ b/content/people/nuzzles.md @@ -0,0 +1,9 @@ ++++ +title = "Spencer Imbleau" +description = "Software engineer working on computer graphics and AI systems." + +[extra] +github = "nuzzles" +zulip = 414173 +homepage = "https://spencer.imbleau.com" ++++ diff --git a/content/wiki/access.md b/content/wiki/access.md new file mode 100644 index 00000000..fad8f1e5 --- /dev/null +++ b/content/wiki/access.md @@ -0,0 +1,36 @@ ++++ +title = "Linebender access" +description = "How to become a Linebender contributor or organization member and add a profile to People of Linebender." ++++ + +## Access levels + +**Contributor.** Anyone can submit a pull request to a Linebender project. Once you’ve submitted one, you’re a contributor. + +**Member.** You become a member when you accept an invitation from an owner of the [Linebender GitHub organization](https://github.com/linebender). This usually follows a conversation on [Linebender Zulip](https://xi.zulipchat.com/). Members can submit a pull request to list themselves in [People of Linebender](@/people/_index.md). + +**Owner.** Owners invite members to the Linebender GitHub organization, approve new committers, and manage organization settings. The [contributor guidelines](@/contributor-guidelines.md#code-reviews) list the organization owners. + +## Optional (Members) - Add your profile + +1. In the [website repository](https://github.com/linebender/linebender.github.io), create `content/people/.md` using your lowercase GitHub username. +2. Copy the template below into the file. Enter your lowercase GitHub username and your numeric Linebender Zulip user ID. You can find the ID after `#user/` in your Zulip profile link. Uncomment any optional fields you want to share. If you omit your display name, the directory shows your GitHub username. +3. Open a pull request with that file. Once it’s merged, your public profile appears at `/people//` and search engines can index it. + +```toml ++++ +# title = "Your display name" +# description = "A short description of your work or interests." + +[extra] +github = "your-github-username" +zulip = 12345 +# homepage = "https://example.org/" +# x = "your_handle" +# mastodon = "https://social.example/@your_handle" ++++ +``` + +Use an HTTPS URL for your homepage or Mastodon profile and omit the leading `@` from your X handle. Leave the file body empty. + +To update or remove your profile, submit a pull request editing or deleting the file. Earlier versions remain in the public Git history. diff --git a/sass/main.scss b/sass/main.scss index e7c5a6e0..a47efaed 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -104,6 +104,10 @@ ol { margin-left: 30px; } +.page-content hr + ul { + margin-top: 15px; +} + li>ul, li>ol { margin-bottom: 0; @@ -207,10 +211,143 @@ blockquote>:last-child { vertical-align: text-top; } +.profile-heading { + display: flex; + align-items: center; + gap: 1rem; + margin-bottom: 1rem; + + img { + margin: 0; + flex-shrink: 0; + border-radius: 50%; + } + + h1 { + margin: 0; + overflow-wrap: anywhere; + } +} + +.zulip-contact { + display: inline-block; + padding: 0.5em 1em; + border: 1px solid currentColor; + border-radius: 4px; + font-weight: 600; + + &:focus-visible { + outline: 2px solid currentColor; + outline-offset: 3px; + } +} + +.profile-links { + list-style: none; + margin-left: 0; + overflow-wrap: anywhere; +} + +.profile-links .svg-icon { + fill: currentColor; +} + +.profile-links li+li, .social-media-list li+li { padding-top: 5px; } +.people-intro { + max-width: 62ch; +} + +.people-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); + gap: 1rem; + margin: 1.5rem 0 0; + list-style: none; +} + +.people-card { + display: flex; + flex-direction: column; + min-width: 0; + background: var(--table-row-alt-color); + border: 1px solid var(--border-color); + border-radius: 0.625rem; + overflow-wrap: anywhere; +} + +.people-card-heading { + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 0.5rem; + padding-left: 1rem; + + > div { + min-width: 0; + padding-top: 0.75rem; + } + + h2 { + margin: 0; + font-size: 1.25rem; + font-weight: 600; + line-height: 1.25; + } + + img { + flex: none; + margin: 0; + border-radius: 0 0.5625rem 0 0.5rem; + background: var(--bg-color); + object-fit: cover; + } +} + +.people-card-description { + margin: 0.5rem 1rem 0.75rem; +} + +.people-card-profile, +.people-card-profile:visited { + align-self: flex-end; + margin: auto 1rem 0.75rem; + color: var(--anchor-visited-color); + font-size: 0.875rem; + font-weight: 600; +} + +.profile-links--compact { + display: flex; + flex-wrap: wrap; + gap: 0.25rem; + margin: 0; + + li+li { + padding-top: 0; + } + + a { + display: grid; + place-items: center; + width: 1.5rem; + height: 1.5rem; + color: var(--fg-color); + border-radius: 0.25rem; + + &:hover { + background: var(--border-color); + } + } + + .svg-icon { + padding-right: 0; + } +} + table { margin-bottom: 30px; width: 100%; diff --git a/static/minima-social-icons.svg b/static/minima-social-icons.svg index f7c3b81e..7de92cc3 100644 --- a/static/minima-social-icons.svg +++ b/static/minima-social-icons.svg @@ -29,4 +29,8 @@ + + + + diff --git a/templates/base.html b/templates/base.html index 8241a8bc..d81c9e58 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,18 +5,21 @@ + {% set title = page.title | default(value=section.title | default(value="")) %} + {% if not title and page.slug %}{% set title = page.slug %}{% endif %} + {% set description = page.description | default(value=section.description | default(value=title)) %} - {% if page.title %}{{page.title}} - {{config.title}}{% else %}| {{config.description}}{% endif %} + {% if title %}{{title}} - {{config.title}}{% else %}| {{config.description}}{% endif %} - + - + + content="{% if description %}{{description}}{% else %}{{config.description}}{% endif %}"> - + {% if config.generate_feeds %} @@ -55,6 +58,7 @@ {% block navlinks %} About Blog + People Wiki {% endblock navlinks %} diff --git a/templates/people.html b/templates/people.html new file mode 100644 index 00000000..14c2ecc2 --- /dev/null +++ b/templates/people.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% import "person_macros.html" as person_macros %} + +{% block content %} +

{{ section.title }}

+
+ {{ section.content | safe }} +
+{% if section.pages %} +
    + {% for person in section.pages %} + {% set name = person.title | default(value=person.slug) %} +
  • +
    +
    +

    {{ name }}

    + {{ person_macros::links(person=person, compact=true) }} +
    + {{ person_macros::avatar(username=person.slug, size=64) }} +
    + {% if person.description %}

    {{ person.description }}

    {% endif %} + View profile +
  • + {% endfor %} +
+{% endif %} +{% endblock content %} diff --git a/templates/person.html b/templates/person.html new file mode 100644 index 00000000..427b7b54 --- /dev/null +++ b/templates/person.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} +{% import "person_macros.html" as person_macros %} + +{% block content %} +{% if page.content | trim %} + {{ throw(message=page.path ~ ": put profile information in the front matter and leave the body empty") }} +{% endif %} +{% set links = page.extra %} +{% if not links.github or links.github != page.slug %} + {{ throw(message=page.path ~ ": set extra.github to the GitHub username matching your filename") }} +{% endif %} +{% if not links.zulip or not links.zulip is number or links.zulip < 1 or links.zulip != links.zulip | round %} + {{ throw(message=page.path ~ ": set extra.zulip to your numeric Linebender Zulip user ID") }} +{% endif %} +{% for field in ["homepage", "mastodon"] %} + {% if links[field] and not links[field] is starting_with("https://") %} + {{ throw(message=page.path ~ ": use an HTTPS URL for " ~ field) }} + {% endif %} +{% endfor %} +{% if links.x and not links.x is matching("^[A-Za-z0-9_]{1,15}$") %} + {{ throw(message=page.path ~ ": enter your X handle without the @") }} +{% endif %} + +

People of Linebender

+
+ {{ person_macros::avatar(username=links.github, size=80) }} +

{{ page.title | default(value=page.slug) }}

+
+{% if page.description %}

{{ page.description }}

{% endif %} +{{ person_macros::links(person=page) }} +Contact me on Zulip +{% endblock content %} diff --git a/templates/person_macros.html b/templates/person_macros.html new file mode 100644 index 00000000..70fa301e --- /dev/null +++ b/templates/person_macros.html @@ -0,0 +1,30 @@ +{% macro avatar(username, size) %} + +{% endmacro avatar %} + +{% macro link(icon, label, url, text, compact) %} +{% set accessible_label = label %} +{% if icon == "zulip" %}{% set accessible_label = "Zulip" %}{% endif %} +
  • + {% if compact %} + + + + {% else %} + + {{ label }}: {{ text }} + {% endif %} +
  • +{% endmacro link %} + +{% macro links(person, compact=false) %} +{% set links = person.extra %} +{% set github_url = "https://github.com/" ~ links.github %} + +{% endmacro links %} diff --git a/templates/section.html b/templates/section.html index 39a7a632..68c848fb 100644 --- a/templates/section.html +++ b/templates/section.html @@ -10,7 +10,7 @@

    {{ section.title }}

    {% endfor %} {% for page in section.pages %} -
  • {{ page.title }}
  • +
  • {{ page.title | default(value=page.slug) }}
  • {% endfor %} {% endblock content %}