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 tailwind from "@astrojs/tailwind";
import svelte from "@astrojs/svelte"; import svelte from "@astrojs/svelte";
import sitemap from "@astrojs/sitemap"; import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx"; import mdx from "@astrojs/mdx";
import partytown from "@astrojs/partytown";
// https://astro.build/config
export default defineConfig({ export default defineConfig({
site: "https://rafa.page/", site: "https://rafa.page/",
integrations: [tailwind({ integrations: [tailwind({
config: { 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", "tailwindcss": "^3.2.7",
"typescript": "^4.9.5", "typescript": "^4.9.5",
"vite": "^4.1.4" "vite": "^4.1.4"
},
"dependencies": {
"@astrojs/partytown": "^1.2.0"
} }
} }

View File

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

View File

@ -164,9 +164,10 @@ const {
} }
<!-- Global site tag (gtag.js) - Google Analytics --> <!-- 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>
<script <script
type="text/partytown"
set:html={` set:html={`
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];
function gtag() { function gtag() {

1037
yarn.lock

File diff suppressed because it is too large Load Diff