versione 1.0

This commit is contained in:
2026-05-23 22:50:13 +02:00
parent f8e6daa084
commit 57367b75c8
48 changed files with 1073 additions and 433 deletions

View File

@@ -6,6 +6,7 @@
import { useState, useEffect } from "react";
import { Button } from "@/components/ui/button";
import { ChevronDown, Menu, X, Phone, MapPin } from "lucide-react";
import { toast } from "sonner";
type NavLink = {
label: string;
@@ -55,6 +56,12 @@ export default function Navbar() {
const [scrolled, setScrolled] = useState(false);
const [mobileOpen, setMobileOpen] = useState(false);
const showActivationToast = () => {
toast.info("Servizio in corso di attivazione", {
description: "L'area riservata sara disponibile a breve.",
});
};
useEffect(() => {
const handleScroll = () => setScrolled(window.scrollY > 80);
window.addEventListener("scroll", handleScroll);
@@ -150,7 +157,7 @@ export default function Navbar() {
variant="outline"
size="sm"
className="border-[#1B4F72] text-[#1B4F72] hover:bg-[#1B4F72] hover:text-white transition-all duration-200"
onClick={() => document.getElementById("registrazione")?.scrollIntoView({ behavior: "smooth" })}
onClick={showActivationToast}
>
Accedi
</Button>
@@ -206,7 +213,7 @@ export default function Navbar() {
<Button
variant="outline"
className="border-[#1B4F72] text-[#1B4F72] w-full"
onClick={() => { setMobileOpen(false); document.getElementById("registrazione")?.scrollIntoView({ behavior: "smooth" }); }}
onClick={() => { setMobileOpen(false); showActivationToast(); }}
>
Accedi / Registrati
</Button>