Kimberley Mackenzie e35e01f06f
Prettier Spike (#1517)
* Add Prettier set-up (no formatting in this commit).

* Manual fixes for Prettier issues.

* Run Prettier fix on non-markdown files.

* Incorporate Prettier PR feedback - update commands, re-apply new yaml styles, add editor config.

* Remove deprecated config item.

* Add dependency on prettier-plugin-go-template.

* reconcile changed file with prettier formatting.

* Add git blame ignore revs file to include Prettier formatting commit.

* Fix format issue with merge conflict.
2022-06-01 10:58:20 -07:00

51 lines
2.1 KiB
HTML

<!-- Default text color is white but we support gray for lighter backgrounds. -->
{{ $textColor := "text-white hover:text-white" }}
{{ if eq .textColor "grey" }}
{{ $textColor = "text-gray-700 hover:text-gray-800" }}
{{ end }}
<!-- Default is to align the text in the center. -->
{{ $textAlign := "text-center" }}
{{ if eq .textAlign "right" }}
{{ $textAlign = "text-right" }}
{{ else if eq .textAlign "left" }}
{{ $textAlign = "text-left" }}
{{ end }}
<p class="my-4 {{ $textAlign }} w-full">
<a class="inline-flex items-center {{ $textColor }} font-bold" href="{{ .url }}">
<span class="inline-block w-6 text-orange-300 mr-3">
<svg
aria-hidden="true"
focusable="false"
data-prefix="fad"
data-icon="sparkles"
class="svg-inline--fa fa-sparkles fa-w-16"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
>
<g class="fa-group">
<path
class="fa-secondary"
fill="currentColor"
d="M423.16 186.58L448 127l59.58-24.84a8 8 0 0 0 0-14.32L448 63 423.16 3.42a8 8 0 0 0-14.32 0L384 63l-59.58 24.84a8 8 0 0 0 0 14.32L384 127l24.84 59.58a8 8 0 0 0 14.32 0zm-14.32 136.84L384 383l-59.58 24.84a8 8 0 0 0 0 14.32L384 447l24.84 59.58a8 8 0 0 0 14.32 0L448 447l59.58-24.84a8 8 0 0 0 0-14.32L448 383l-24.84-59.58a8 8 0 0 0-14.32 0z"
opacity="0.4"
></path>
<path
class="fa-primary"
fill="currentColor"
d="M384 254.64a16.06 16.06 0 0 0-8.84-14.33l-112.57-56.39-56.28-112.77c-5.44-10.87-23.19-10.87-28.62 0l-56.28 112.77L8.84 240.31a16 16 0 0 0 0 28.67l112.57 56.39 56.28 112.77a16 16 0 0 0 28.62 0l56.28-112.77L375.16 269a16.07 16.07 0 0 0 8.84-14.36z"
></path>
</g>
</svg>
</span>
<span class="mr-2 hover:mr-3 transition-all">
{{ .text }}
</span>
<span> &rarr; </span>
</a>
</p>