This commit is contained in:
2025-05-07 17:12:17 -03:00
parent ad15aa7a73
commit 9b713e5783
5 changed files with 26 additions and 33 deletions

View File

@@ -2,16 +2,12 @@
import { Icon } from "astro-icon/components";
---
<style>
@import "tailwindcss";
.modal {
@apply text-white bg-black fixed inset-1/2 w-full lg:w-112 -translate-1/2 p-5 lg:p-12 rounded-2xl border border-white/15;
@apply backdrop:bg-black/50 backdrop:backdrop-blur backdrop:backdrop-filter;
}
</style>
<dialog closedby="any" class="modal" {...Astro.props}>
<dialog
closedby="any"
class="text-white bg-black fixed inset-1/2 w-full lg:w-112 -translate-1/2 p-5 lg:p-12 rounded-2xl border border-white/15
backdrop:bg-black/50 backdrop:backdrop-blur backdrop:backdrop-filter"
{...Astro.props}
>
<button
class="cursor-pointer fixed top-2.5 right-2.5 lg:top-5 lg:right-5 border border-white rounded-full p-px"
data-dismiss

View File

@@ -71,7 +71,8 @@ const currency = new Intl.NumberFormat("pt-BR", {
const r = await checkout(item);
const json = await r.json();
target.disabled = true;
target.disabled = false;
location.href = `https://checkout.betaeducacao.com.br/${json.id}`;
});
</script>