Skip to content

Commit 136f041

Browse files
committed
aggiunta ask ai a home
1 parent 2792356 commit 136f041

File tree

2 files changed

+52
-9
lines changed

2 files changed

+52
-9
lines changed

src/components/sections/hero.astro

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ import { siteConfig } from "@/config/site";
1111
aria-hidden="true"
1212
class="absolute inset-0 -z-10 grid grid-cols-2 -space-x-52 opacity-40"
1313
>
14-
<div class="blur-[60px] h-36 bg-gradient-to-br from-[#006fb1] to-[#2f8a81]">
14+
<div
15+
class="blur-[60px] h-36 bg-gradient-to-br from-[#006fb1] to-[#2f8a81]"
16+
>
1517
</div>
16-
<div class="blur-[60px] h-24 bg-gradient-to-r from-[#3d4f96] to-[#006fb1]">
18+
<div
19+
class="blur-[60px] h-24 bg-gradient-to-r from-[#3d4f96] to-[#006fb1]"
20+
>
1721
</div>
1822
</div>
1923

@@ -24,7 +28,11 @@ import { siteConfig } from "@/config/site";
2428
<a
2529
href="/releases"
2630
class={cn(
27-
buttonVariants({ variant: "outline", size: "sm", rounded: "full" }),
31+
buttonVariants({
32+
variant: "outline",
33+
size: "sm",
34+
rounded: "full",
35+
}),
2836
"px-3",
2937
)}
3038
target="_blank"
@@ -44,11 +52,29 @@ import { siteConfig } from "@/config/site";
4452
</h1>
4553

4654
<div class="space-y-3 max-w-md">
47-
<p class="text-balance leading-normal text-muted-foreground sm:text-base sm:leading-7">
48-
Accedi a risorse, documentazione, guide e strumenti utili.
55+
<p
56+
class="text-balance leading-normal text-muted-foreground sm:text-base sm:leading-7"
57+
>
58+
Accedi a risorse, documentazione, guide e strumenti
59+
utili.
4960
</p>
50-
<p class="text-balance font-semibold text-lg pt-2">
51-
Tutto in un unico posto.
61+
<p
62+
class="text-balance font-semibold text-2xl pt-2 flex items-center gap-2"
63+
>
64+
Tutto in un unico posto
65+
<a
66+
href="/ai"
67+
class="inline-flex items-center gap-1 text-lg font-semibold text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-green-500 transition-all duration-300 ease-in-out transform hover:from-green-500 hover:to-blue-600 hover:scale-105"
68+
style={{
69+
marginLeft: "20px", // Maggiore distanza a sinistra
70+
}}
71+
>
72+
ASK AI
73+
<Icon
74+
name="lucide:brain"
75+
class="size-5 text-green-500 font-bold transition-colors duration-300 ease-in-out hover:text-blue-500"
76+
/>
77+
</a>
5278
</p>
5379
</div>
5480

@@ -76,14 +102,19 @@ import { siteConfig } from "@/config/site";
76102
"px-4",
77103
)}
78104
>
79-
<span class="hidden sm:inline-block text-black dark:text-white">Vai Alla Knowledge Base</span>
105+
<span
106+
class="hidden sm:inline-block text-black dark:text-white"
107+
>Vai Alla Knowledge Base</span
108+
>
80109
<Icon name="lucide:arrow-right" class="ml-2 size-4" />
81110
</a>
82111
</div>
83112
</div>
84113

85114
<!-- Image Column -->
86-
<div class="relative h-[300px] w-full perspective sm:h-[350px] lg:h-[400px]">
115+
<div
116+
class="relative h-[300px] w-full perspective sm:h-[350px] lg:h-[400px]"
117+
>
87118
<div class="image-container">
88119
<img
89120
src="/images/banner-hero.svg"

src/pages/docs/index.astro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ const extraSections = [
9898
<h2 class="mt-2 mb-8 text-lg text-gray-700">
9999
Esplora risorse aggiuntive per trovare tutto ciò di cui hai bisogno.
100100
</h2>
101+
<div class="w-full bg-gradient-to-r from-teal-400 via-blue-400 to-teal-400 text-white py-6 px-10 mb-8 rounded-lg shadow-lg transition-transform transform hover:scale-105">
102+
<a href="/docs/getting-started" class="flex items-center justify-center">
103+
<div class="flex items-center">
104+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-8 h-8 mr-4">
105+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 2a10 10 0 100 20 10 10 0 000-20z" />
106+
<path stroke-linecap="round" stroke-linejoin="round" d="M8 12a4 4 0 118 0 4 4 0 01-8 0z" />
107+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v4m4 0H12m0 0H8m0 0v4m8-4v4" />
108+
</svg>
109+
<h2 class="text-xl font-bold">Chiedi al tuo assistente virtuale</h2>
110+
</div>
111+
</a>
112+
</div>
101113
<div class="grid gap-6 sm:grid-cols-1 md:grid-cols-2">
102114
{extraSections.map((section) => (
103115
<DocCard

0 commit comments

Comments
 (0)