Skip to content

Commit 9f34244

Browse files
committed
added android discount badge similar to supporter cert
1 parent f68dfb6 commit 9f34244

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/partials/android-getkey.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ <h3 class="font-h3 text-lg">{{ i18n "android_getkey_title" }}</h3>
66
<form x-show="!checkoutData.success" x-ref="form" class="px-4 py-8">
77
<div class="mb-4">
88
<label class="label-uppercase mb-2">{{ i18n "android_getkey_price" }}</label>
9-
<div class="input-box flex items-center gap-2 w-full lg:w-1/2">
9+
<div class="relative input-box flex items-center gap-2 w-full lg:w-1/2">
1010
<span x-show="checkoutData.price && checkoutData.price.amount != checkoutData.price.listAmount" x-text="checkoutData.price ? checkoutData.price.listAmount.toLocaleString('{{ .Site.Language.Lang }}', { style: 'currency', currency: checkoutData.price.currency }) : '…'" class="text-gray-500 line-through decoration-red-600" x-cloak></span>
1111
<span x-text="checkoutData.price ? checkoutData.price.amount.toLocaleString('{{ .Site.Language.Lang }}', { style: 'currency', currency: checkoutData.price.currency }) : '…'"></span>
12+
<span x-show="checkoutData.price && checkoutData.price.amount != checkoutData.price.listAmount" class="absolute top-0 left-0 -translate-2 -rotate-5 px-1 rounded-xs text-xs text-white bg-red-600 z-10" x-cloeak>-<span x-text="((1 - checkoutData.price.amount / checkoutData.price.listAmount) * 100).toFixed(0)"></span>%</span>
1213
</div>
1314
</div>
1415
<div class="mb-4">

0 commit comments

Comments
 (0)