feat: implement compare functionality, checkout flow, and add 30 blog posts

This commit is contained in:
MichalC
2026-06-27 18:09:22 +02:00
parent 6bdfe18e18
commit 0c59086a6b
63 changed files with 9766 additions and 1874 deletions
+3 -22
View File
@@ -20,7 +20,7 @@ export function Footer() {
</span>
</Link>
<p className="text-sm text-slate-300 max-w-xs leading-relaxed">
Kompleksowe usługi HVAC, klimatyzacji, pomp ciepła oraz prace wykończeniowe i serwisowe dla Twojego domu.
Profesjonalne usługi w zakresie klimatyzacji i pomp ciepła dla domów, mieszkań i firm.
</p>
<div className="flex flex-col gap-3 mt-2 text-sm text-slate-300">
<a
@@ -70,21 +70,7 @@ export function Footer() {
Pompy Ciepła
</Link>
</li>
<li>
<Link href="/uslugi-domowe/remonty" className="hover:text-accent transition-colors">
Remonty i Wykończenia
</Link>
</li>
<li>
<Link href="/uslugi-domowe/hydraulika" className="hover:text-accent transition-colors">
Usługi Hydrauliczne
</Link>
</li>
<li>
<Link href="/uslugi-domowe/serwis-agd" className="hover:text-accent transition-colors">
Serwis AGD i Lodówek
</Link>
</li>
<li>
<Link href="/sklep" className="hover:text-accent transition-colors">
Sklep online
@@ -143,14 +129,9 @@ export function Footer() {
Obsługa Klienta
</h3>
<ul className="flex flex-col gap-3 text-sm text-slate-300">
<li>
<Link href="/koszyk" className="hover:text-accent transition-colors">
Twój Koszyk
</Link>
</li>
<li>
<Link href="/sklep" className="hover:text-accent transition-colors">
Zamów urządzenia
Sklep online
</Link>
</li>
<li>
+2 -2
View File
@@ -65,10 +65,10 @@ export function GlobalSearch() {
<div className="flex-1 flex flex-col">
<span className="text-[10px] font-bold text-text-muted uppercase tracking-wider">{product.brand}</span>
<span className="text-sm font-semibold text-primary group-hover:text-accent transition-colors">{product.name}</span>
<span className="text-xs text-text-muted mt-0.5">{product.power} kW • {product.category}</span>
<span className="text-xs text-text-muted mt-0.5">{product.specs?.['Moc chłodnicza'] ? `${product.specs['Moc chłodnicza']} kW • ` : ''}{product.category}</span>
</div>
<div className="text-right">
<span className="text-sm font-bold text-primary block">{formatCurrency(product.price)}</span>
<span className="text-sm font-bold text-primary block">{product.price !== null ? formatCurrency(product.price) : 'Zapytaj o cenę'}</span>
</div>
</Link>
))}
+20 -53
View File
@@ -71,45 +71,24 @@ export function Header() {
},
{
label: "Serwis i czyszczenie",
href: "/klimatyzacja",
href: "/klimatyzacja#serwis",
description: "Odgrzybianie, naprawy i przeglądy",
},
],
},
{
title: "Montaż w Twoim mieście",
items: [
{ label: "Klimatyzacja Wrocław", href: "/klimatyzacja/wroclaw", description: "Montaż i serwis we Wrocławiu" },
{ label: "Klimatyzacja Legnica", href: "/klimatyzacja/legnica", description: "Obsługujemy Legnicę i okolice" },
{ label: "Klimatyzacja Wałbrzych", href: "/klimatyzacja/walbrzych", description: "Montaż w Wałbrzychu" },
{ label: "Klimatyzacja Jelenia Góra", href: "/klimatyzacja/jelenia-gora", description: "Dolny Śląsk — południe" },
{ label: "→ Wszystkie miasta", href: "/klimatyzacja#miasta", description: "Cały Dolny Śląsk" },
],
},
];
const homeSections = [
{
title: "Prace wykończeniowe",
items: [
{
label: "Remonty i wykończenia",
href: "/uslugi-domowe/remonty",
description: "Kompleksowe remonty mieszkań i łazienek",
},
{
label: "Drobne naprawy",
href: "/uslugi-domowe",
description: "Pomoc „złotej rączki” w drobnych usterkach",
},
],
},
{
title: "Instalacje i AGD",
items: [
{
label: "Hydraulika",
href: "/uslugi-domowe/hydraulika",
description: "Montaż armatury, naprawy i instalacje wod-kan",
},
{
label: "Serwis AGD / Lodówki",
href: "/uslugi-domowe/serwis-agd",
description: "Szybka naprawa lodówek i urządzeń chłodniczych",
},
],
},
];
return (
<>
@@ -123,7 +102,7 @@ export function Header() {
<span className="text-accent">.</span>
</span>
<span className="text-xs text-muted-foreground font-medium border-l border-border pl-3">
Klimatyzacja i usługi domowe
Klimatyzacja i pompy ciepła
</span>
</Link>
@@ -139,15 +118,10 @@ export function Header() {
<div className="flex items-center gap-1">
<GlobalSearch />
<Link
href="/koszyk"
className="p-2 text-primary hover:text-accent hover:bg-background rounded-lg transition-colors relative outline-none"
aria-label={`Koszyk z ${cartCount} przedmiotami`}
>
<Link href="/koszyk" className="p-2 text-primary hover:text-accent hover:bg-background rounded-lg transition-colors relative outline-none" aria-label="Koszyk">
<ShoppingBag className="size-5" />
{cartCount > 0 && (
<span className="absolute top-0 right-0 bg-cta text-white text-[10px] font-bold size-4 rounded-full flex items-center justify-center translate-x-0.5 -translate-y-0.5">
<span className="absolute top-0 right-0 bg-accent text-white text-[10px] font-bold size-4 rounded-full flex items-center justify-center translate-x-0.5 -translate-y-0.5">
{cartCount}
</span>
)}
@@ -188,11 +162,7 @@ export function Header() {
>
Pompy ciepła
</Link>
<NavDropdown
label="Usługi domowe"
triggerHref="/uslugi-domowe"
sections={homeSections}
/>
<Link
href="/realizacje"
className="text-sm font-medium text-primary hover:text-accent transition-colors"
@@ -246,18 +216,15 @@ export function Header() {
{/* Mobile Icons (Cart + Hamburger) */}
<div className="flex items-center gap-3">
<Link
href="/koszyk"
className="p-2 text-primary hover:text-accent transition-colors relative outline-none"
aria-label={`Koszyk z ${cartCount} przedmiotami`}
>
<ShoppingBag className="size-6" />
<Link href="/koszyk" className="p-2 text-primary hover:text-accent hover:bg-muted transition-colors rounded-lg relative outline-none" aria-label="Koszyk">
<ShoppingBag className="size-5" />
{cartCount > 0 && (
<span className="absolute top-0 right-0 bg-cta text-white text-[10px] font-bold size-4 rounded-full flex items-center justify-center translate-x-0.5 -translate-y-0.5">
<span className="absolute top-0 right-0 bg-accent text-white text-[10px] font-bold size-4 rounded-full flex items-center justify-center translate-x-0.5 -translate-y-0.5">
{cartCount}
</span>
)}
</Link>
<button
onClick={() => setIsMobileMenuOpen(true)}
className="p-2 text-primary hover:text-accent hover:bg-muted transition-colors rounded-lg outline-none"
+2 -28
View File
@@ -35,12 +35,7 @@ export function MobileMenu({ isOpen, onClose }: MobileMenuProps) {
{ label: "Serwis i przeglądy", href: "/klimatyzacja" },
];
const homeServices = [
{ label: "Wszystkie usługi domowe", href: "/uslugi-domowe" },
{ label: "Remonty i wykończenia", href: "/uslugi-domowe/remonty" },
{ label: "Hydraulika i instalacje", href: "/uslugi-domowe/hydraulika" },
{ label: "Serwis AGD / Lodówki", href: "/uslugi-domowe/serwis-agd" },
];
return (
<div
@@ -116,28 +111,7 @@ export function MobileMenu({ isOpen, onClose }: MobileMenuProps) {
</Link>
</div>
{/* 3. Usługi Domowe */}
<details className="collapse collapse-arrow border-b border-border rounded-none">
<summary className="collapse-title text-sm font-medium text-primary hover:text-accent py-3 px-0 min-h-0">
Usługi domowe
</summary>
<div className="collapse-content px-0 pb-2">
<ul className="flex flex-col gap-2.5 pl-4 pb-2">
{homeServices.map((item, idx) => (
<li key={idx}>
<Link
href={item.href}
onClick={onClose}
className="text-sm text-text-muted hover:text-accent transition-colors flex items-center justify-between py-1"
>
<span>{item.label}</span>
<ChevronRight className="size-3.5 opacity-60" />
</Link>
</li>
))}
</ul>
</div>
</details>
{/* 4. Realizacje */}
<div className="border-b border-border py-3">
+1 -1
View File
@@ -55,7 +55,7 @@ export function NavDropdown({ label, triggerHref, sections, align = "center" }:
{/* Dropdown Panel */}
<div
className={cn(
"absolute top-full pt-2 z-50 w-[480px] transition-all duration-200 origin-top",
"absolute top-full pt-2 z-50 w-[640px] transition-all duration-200 origin-top",
align === "left" && "left-0",
align === "center" && "left-1/2 -translate-x-1/2",
align === "right" && "right-0",