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
+7 -12
View File
@@ -1,35 +1,30 @@
export interface Product {
slug: string;
sku: string;
name: string;
brand: string;
category: "scienne" | "multisplit" | "przenosne" | "kasetonowe" | "konsolowe";
power: number; // kW
price: number; // cena urządzenia brutto (23% VAT)
priceWithInstall: number; // cena z montażem brutto (8% VAT dla os. prywatnych)
variants?: { label: string; power: number; price: number; priceWithInstall?: number }[];
category: 'scienne' | 'multisplit';
price: number | null;
image: string;
features: string[]; // np. ["Wi-Fi", "jonizacja", "grzanie"]
heating: boolean;
description: string;
specs: Record<string, string>; // klucz: wartość
shortDescription: string;
specs: Record<string, string>;
}
export interface Project {
slug: string;
title: string;
category: "klimatyzacja" | "pompy-ciepla" | "remonty" | "hydraulika";
category: "klimatyzacja" | "pompy-ciepla";
location: string; // np. "Wrocław"
image: string;
images?: string[]; // galeria
description: string;
scope?: string[]; // zakres prac
beforeAfter?: { before: string; after: string }; // dla remontów
}
export interface Post {
slug: string;
title: string;
category: "klimatyzacja" | "pompy-ciepla" | "remonty" | "hydraulika" | "porady";
category: "klimatyzacja" | "pompy-ciepla" | "porady";
excerpt: string;
date: string; // ISO format string
author: string;