Rename the h-card implementation to match up with the naming of h-feed and h-entry

This commit is contained in:
Danielle McLean 2017-10-08 16:55:21 +11:00
parent 4b7a8a7198
commit 3ff560e07e
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
5 changed files with 6 additions and 6 deletions

View file

@ -0,0 +1,19 @@
.card.h-card
margin: 2em auto
width: 22rem
ul.profiles
list-style: none
padding-left: 0
margin-bottom: 0
text-align: center
> li
display: inline-block
margin-right: 5px
&:last-child
margin-right: 0
/* Provide a little extra space around the badges added by the
* http://www.kevinmarks.com/distributed-verify.html script. */
.verified, .unverified
margin-right: 4px

View file

@ -0,0 +1,26 @@
<div .card.h-card .bg-dark itemscope itemtype="http://schema.org/Person">
$maybe route <- mcurrentRoute
<a .u-uid.u-url itemprop="url" href=@{route} hidden>
$maybe avatar <- maybeAvatar
<img .card-img-top.u-photo itemprop="image" src=#{avatar} alt="Avatar for #{userFullName user}">
<div .card-body>
<h4 .card-title.p-name itemprop="name">#{userFullName user}
$forall key <- pgpKeys
<a .card-subtitle.u-key href=@{routeFromPgp key}>
<i .fa.fa-key>
#{prettyPgp key}
<link rel="pgpkey" type="application/pgp-keys" href=@{routeFromPgp key}>
<p .card-text.p-note .text-muted itemprop="description">#{userNote user}
<ul .profiles>
<li>
<a .u-email itemprop="email" rel="me" href="mailto:#{userEmail user}">
<i .fa.fa-envelope>
#{userEmail user}
$forall (site, profile) <- userProfiles
<li>
<a .u-url itemprop="sameAs" rel="me" href="#{siteUrl site}#{profileUsername profile}">
<i .fa.fa-#{siteIcon site}>
#{profileUsername profile}