Added party town

This commit is contained in:
Rafael González Vázquez 2023-04-19 09:12:22 -06:00
parent a73a6220f5
commit 5a1d8073b5
5 changed files with 602 additions and 464 deletions

View File

@ -2,14 +2,19 @@ import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import svelte from "@astrojs/svelte";
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
import partytown from "@astrojs/partytown";
// https://astro.build/config
export default defineConfig({
site: "https://rafa.page/",
integrations: [tailwind({
config: {
applyBaseStyles: false,
applyBaseStyles: false
}
}), svelte(), sitemap(), mdx()]
});
}), svelte(), sitemap(), mdx(), partytown({
config: {
forward: ["dataLayer.push"]
}
})]
});

View File

@ -23,5 +23,8 @@
"tailwindcss": "^3.2.7",
"typescript": "^4.9.5",
"vite": "^4.1.4"
},
"dependencies": {
"@astrojs/partytown": "^1.2.0"
}
}

View File

@ -49,16 +49,16 @@
"url": "https://github.com/acromatico-development",
"icon": "github"
},
{
"name": "Instagram",
"url": "https://www.instagram.com/acromatico.dev",
"icon": "instagram"
},
{
"name": "Discord",
"url": "https://discord.gg/NswUaFSG",
"icon": "discord"
},
{
"name": "Instagram",
"url": "https://www.instagram.com/acromatico.dev",
"icon": "instagram"
},
{
"name": "LinkedIn",
"url": "https://www.linkedin.com/company/acromatico",

View File

@ -164,9 +164,10 @@ const {
}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-45FLVCCPTZ"
<script type="text/partytown" src="https://www.googletagmanager.com/gtag/js?id=G-45FLVCCPTZ"
></script>
<script
type="text/partytown"
set:html={`
window.dataLayer = window.dataLayer || [];
function gtag() {

1037
yarn.lock

File diff suppressed because it is too large Load Diff