diff --git a/assets/styles/app.css b/assets/styles/app.css index 07f0089..cf9cc2f 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -450,6 +450,52 @@ footer a { width: 100%; } +/* Author profile (/p/npub…): NIP-01 uses `picture`; large circular crop */ +.author-profile { + max-width: 40rem; + margin: 0 auto; + text-align: center; +} + +.author-profile__avatar { + position: relative; + width: 8rem; + height: 8rem; + margin: 0 auto 1rem; + border-radius: 50%; + overflow: hidden; + box-shadow: 0 0 0 2px var(--color-border); +} + +.author-profile__avatar > img { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + max-width: none; + object-fit: cover; + object-position: center; + display: block; +} + +.author-profile__avatar--compact { + width: 4rem; + height: 4rem; + margin-bottom: 0.75rem; +} + +.author-profile__title { + margin-top: 0.25em; +} + +.author-profile__about { + text-align: left; +} + +.author-profile__divider { + margin: 2rem 0; +} + .badge { background-color: var(--color-primary); color: var(--color-bg); diff --git a/templates/event/index.html.twig b/templates/event/index.html.twig index e6f7cd3..c0c11e9 100644 --- a/templates/event/index.html.twig +++ b/templates/event/index.html.twig @@ -7,8 +7,16 @@
{{ rel }}
#} -{# {% endfor %}#} -{# {% endif %}#} +