feat(cards): center images, hyphenate text

This commit is contained in:
Joshua Seigler 2020-03-11 09:33:16 -04:00
parent 324b792dae
commit da7e6b42fb

View file

@ -1,5 +1,5 @@
{{ define "text" }}
<p class="f6 lh-copy mw5 mt2 mb0 mid-gray" style="word-break: break-all">
<p class="f6 lh-copy mt2 mb0 mid-gray" style="hyphens: auto; -webkit-hyphens: auto;">
{{- markdownify . -}}
</p>
{{ end }}
@ -31,7 +31,7 @@
<div class="dt w-100 mt1">
<div class="dtc">
<a target="_blank" class="no-underline charcoal" href="{{ if .website }}{{ .website }}{{ else if .source }}{{ .source }}{{ else if .demo }}{{ .demo }}{{ end }}">
<h1 class="f5 mw5 f4-ns mv0">{{- .title -}}</h1>
<h1 class="f5 f4-ns mv0">{{- .title -}}</h1>
</a>
</div>
</div>
@ -49,15 +49,15 @@
{{- end -}}
{{- if isset . "hash" -}}
<div class="mt2 mw5">
<div class="mt2">
{{ template "hash" .hash }}
</div>
{{- end -}}
{{- if isset . "picture" -}}
<div class="mt2 mw5">
<div class="mt2 tc">
<a target="_blank" class="no-underline charcoal" href="{{ if .website }}{{ .website }}{{ else if .source }}{{ .source }}{{ else if .demo }}{{ .demo }}{{ end }}">
<img class="br2" src="{{ .picture | relURL }}" >
<img class="br2" src="{{ .picture | relURL }}" style="max-height: 20em" >
</a>
</div>
{{ end }}