Skip to content

Commit e8decca

Browse files
committed
aggiunta analytics vercel
1 parent 136f041 commit e8decca

File tree

4 files changed

+52
-46
lines changed

4 files changed

+52
-46
lines changed

package-lock.json

Lines changed: 42 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@radix-ui/react-tabs": "^1.0.4",
3333
"@types/react": "^18.3.3",
3434
"@types/react-dom": "^18.3.0",
35+
"@vercel/analytics": "^1.4.1",
3536
"ai": "^4.0.24",
3637
"aos": "^2.3.4",
3738
"astro": "^4.9.2",

src/config/nav-menu.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export const navMenuConfig: NavMenuConfig = {
2727
title: "Piattaforme e Tecnologie",
2828
href: "/releases",
2929
description: "Esplora le piattaforme e le tecnologie standard.",
30-
image: "/images/blog/placeholder-2.jpg",
30+
image: "/images/examples/placeholder.jpg",
3131
disabled: true,
3232
},
3333
{
3434
title: "Roadmap di Innovazione",
3535
href: "/animes",
3636
description: "Pianificazione strategica per l'innovazione tecnologica.",
37-
image: "/images/blog/placeholder-2.jpg",
37+
image: "/images/examples/placeholder.jpg",
3838
disabled: true,
3939
},
4040
],
@@ -60,14 +60,14 @@ export const navMenuConfig: NavMenuConfig = {
6060
title: "Link Utili",
6161
href: "/",
6262
description: "Raccolta di collegamenti utili per la struttura SST.",
63-
image: "/images/blog/placeholder-2.jpg",
63+
image: "/images/examples/placeholder.jpg",
6464
disabled: true,
6565
},
6666
{
6767
title: "Template e Librerie",
6868
href: "/",
6969
description: "Template e risorse per semplificare lo sviluppo.",
70-
image: "/images/blog/placeholder-2.jpg",
70+
image: "/images/examples/placeholder.jpg",
7171
disabled: true,
7272
},
7373
],
@@ -88,14 +88,14 @@ export const navMenuConfig: NavMenuConfig = {
8888
title: "Tutorial e Pillole Formative",
8989
href: "/",
9090
description: "Approfondisci con tutorial e contenuti brevi.",
91-
image: "/images/blog/placeholder-2.jpg",
91+
image: "/images/examples/placeholder.jpg",
9292
disabled: true,
9393
},
9494
{
9595
title: "Programmi di Certificazione",
9696
href: "/",
9797
description: "Scopri i programmi di certificazione disponibili.",
98-
image: "/images/blog/placeholder-2.jpg",
98+
image: "/images/examples/placeholder.jpg",
9999
disabled: true,
100100
},
101101
],

src/layouts/base-layout.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import BaseHead from "@/components/layout/base-head.astro";
33
import TailwindIndicator from "@/components/tailwind-indicator.astro";
4-
// ...
4+
import Analytics from '@vercel/analytics/astro';
55
import { Toaster } from "sonner";
66
import { cn } from "@/lib/utils";
77
@@ -21,11 +21,12 @@ const { title, description, bodyClass } = Astro.props;
2121
<script type="module">
2222
await import('/pagefind/pagefind-highlight.js');
2323
new PagefindHighlight({ highlightParam: "highlight" });
24-
</script>
24+
</script>
2525
</head>
2626
<body class={cn("flex flex-col min-h-screen", bodyClass)}>
2727
<slot />
2828
<TailwindIndicator />
2929
<Toaster richColors client:only="react" />
30+
<Analytics />
3031
</body>
3132
</html>

0 commit comments

Comments
 (0)