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

@@ -34,7 +34,13 @@ export default defineConfig({
], ],
prefetch: true, prefetch: true,
vite: { vite: {
plugins: [tailwindcss({ nesting: true })], plugins: [tailwindcss()],
build: {
assetsInlineLimit: 1024,
},
css: {
transformer: "lightningcss",
},
}, },
server: { server: {
host: "0.0.0.0", host: "0.0.0.0",

View File

@@ -20,6 +20,7 @@
"astro-icon": "^1.1.5", "astro-icon": "^1.1.5",
"astro-pagefind": "^1.8.3", "astro-pagefind": "^1.8.3",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"lightningcss": "^1.29.3",
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"react-hook-form": "^7.56.0", "react-hook-form": "^7.56.0",
@@ -2986,9 +2987,9 @@
} }
}, },
"node_modules/browserslist": { "node_modules/browserslist": {
"version": "4.24.4", "version": "4.24.5",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.5.tgz",
"integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", "integrity": "sha512-FDToo4Wo82hIdgc1CQ+NQD0hEhmpPjrZ3hiUgwgOG6IuTdlpr8jdjyG24P6cNP1yJpTLzS5OcGgSw0xmDU1/Tw==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
@@ -3005,10 +3006,10 @@
], ],
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"caniuse-lite": "^1.0.30001688", "caniuse-lite": "^1.0.30001716",
"electron-to-chromium": "^1.5.73", "electron-to-chromium": "^1.5.149",
"node-releases": "^2.0.19", "node-releases": "^2.0.19",
"update-browserslist-db": "^1.1.1" "update-browserslist-db": "^1.1.3"
}, },
"bin": { "bin": {
"browserslist": "cli.js" "browserslist": "cli.js"
@@ -3685,9 +3686,9 @@
} }
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.146", "version": "1.5.150",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.146.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.150.tgz",
"integrity": "sha512-KI0DFJBdqehWSqXmNKIAHpjW4rHL1ugBx4ljOXli41E+IV3JKyTxZ6E7/NgVifzDXBHUqR8Ae1I+eu9vAIqfyQ==", "integrity": "sha512-rOOkP2ZUMx1yL4fCxXQKDHQ8ZXwisb2OycOQVKHgvB3ZI4CvehOd4y2tfnnLDieJ3Zs1RL1Dlp3cMkyIn7nnXA==",
"license": "ISC" "license": "ISC"
}, },
"node_modules/emoji-regex": { "node_modules/emoji-regex": {
@@ -4832,8 +4833,6 @@
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.29.3.tgz", "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.29.3.tgz",
"integrity": "sha512-GlOJwTIP6TMIlrTFsxTerwC0W6OpQpCGuX1ECRLBUVRh6fpJH3xTqjCjRgQHTb4ZXexH9rtHou1Lf03GKzmhhQ==", "integrity": "sha512-GlOJwTIP6TMIlrTFsxTerwC0W6OpQpCGuX1ECRLBUVRh6fpJH3xTqjCjRgQHTb4ZXexH9rtHou1Lf03GKzmhhQ==",
"license": "MPL-2.0", "license": "MPL-2.0",
"optional": true,
"peer": true,
"dependencies": { "dependencies": {
"detect-libc": "^2.0.3" "detect-libc": "^2.0.3"
}, },
@@ -4869,7 +4868,6 @@
"os": [ "os": [
"darwin" "darwin"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -4890,7 +4888,6 @@
"os": [ "os": [
"darwin" "darwin"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -4911,7 +4908,6 @@
"os": [ "os": [
"freebsd" "freebsd"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -4932,7 +4928,6 @@
"os": [ "os": [
"linux" "linux"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -4953,7 +4948,6 @@
"os": [ "os": [
"linux" "linux"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -4974,7 +4968,6 @@
"os": [ "os": [
"linux" "linux"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -4995,7 +4988,6 @@
"os": [ "os": [
"linux" "linux"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -5016,7 +5008,6 @@
"os": [ "os": [
"linux" "linux"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -5037,7 +5028,6 @@
"os": [ "os": [
"win32" "win32"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },
@@ -5058,7 +5048,6 @@
"os": [ "os": [
"win32" "win32"
], ],
"peer": true,
"engines": { "engines": {
"node": ">= 12.0.0" "node": ">= 12.0.0"
}, },

View File

@@ -21,6 +21,7 @@
"astro-icon": "^1.1.5", "astro-icon": "^1.1.5",
"astro-pagefind": "^1.8.3", "astro-pagefind": "^1.8.3",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"lightningcss": "^1.29.3",
"react": "^19.1.0", "react": "^19.1.0",
"react-dom": "^19.1.0", "react-dom": "^19.1.0",
"react-hook-form": "^7.56.0", "react-hook-form": "^7.56.0",

View File

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

View File

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