Add pricing example

This commit is contained in:
Oliver Davies 2025-03-01 22:15:39 +00:00
parent 7a9dc15385
commit e879404376
2 changed files with 91 additions and 0 deletions
source/_includes

View file

@ -0,0 +1,11 @@
{% set classes = [
'block border transition-colors ease-in-out duration-200',
shape == "rounded" ? "rounded-md",
shape == "square" ? "rounded-none",
size == 'large' ? "py-3 px-5 text-xl" : "py-2 px-5 text-lg",
type == "primary" and not inverted ? "bg-blue-500 border-blue-500 text-white hocus:bg-blue-600 hocus:text-white",
type == "primary" and inverted ? "bg-white border-blue-500 text-blue-600 hocus:bg-blue-600 hocus:text-white",
type == "secondary" ? "bg-gray-500 text-white hocus:bg-gray-600 hocus:text-white",
] %}
<a class="{{ classes|join(' ') }}" href="#0">{{ text }}</a>