fiz
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user