Files
ipal-kit/reference/src/seed/demo.ts
T
Radosław SmolińskiandClaude Opus 5.5 64ee581098 Reference site SEO: own meta descriptions, fuller demo content; blocksToMarkdown reads section headers
- blocksToMarkdown: the library's section header (heading → ##, then intro; eyebrow
  skipped), intro, quote and bio are content. Pages whose text sat only in a hero
  (archive pages, quote, 404) auto-filled no meta description and fell back to the
  site description; /md and llms-full.txt also missed every section heading.
- legal() template: the placeholder names its page, so unfilled privacy/terms pages
  don't share a description.
- reference: every demo page has its own meta description (pl/en), posts and case
  studies use their excerpt; fuller made-up text on services, contact, quote and
  the archives (all pages >= 150 words); no seeding of allowThemeToggle (its default,
  fillGlobal rewrote it on every run). The two content silences are gone.

ipal-doctor --strict --offline --deep --url: 0/0/0 (4 silenced: 2 permanent,
2 entryList follow-ups of the block-library track). Smoke tests 15/15.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 16:38:09 +01:00

472 lines
41 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { Seeder } from '@intecion/ipal-kit/seed'
import { libraryBlockSlugs } from '@intecion/ipal-kit/blocks'
import { pageTemplates, systemPageRefs } from '@intecion/ipal-kit/templates'
import { blockOptions } from '@/blocks/configs'
import { header, pageLink, rich, tx } from './lib'
import { showcasePage } from './showcase'
/**
* DEMO layer — the made-up company "Example Studio" / `Pracownia Przykład` (an architecture and interior studio).
* Every name, number, address and quote here is invented. The project starter drops this file (starter.manifest.json).
* Runs BEFORE the base layer: pages are create-only, so these filled pages win over the base templates' [TO FILL] versions.
*/
const blocks = libraryBlockSlugs(blockOptions)
const company = {
address: { city: 'Warszawa', country: 'PL', postalCode: '00-000', street: 'ul. Przykładowa 1' },
email: '[email protected]',
hours: tx('pon.–pt. 9:00–17:00', 'Mon–Fri 9:00–17:00'),
legalName: 'Pracownia Przykład sp. z o.o.',
name: 'Example Studio',
phone: '+48 000 000 000',
socials: [
{ label: 'Instagram', url: 'https://www.instagram.com/example' },
{ label: 'LinkedIn', url: 'https://www.linkedin.com/company/example' },
],
taxId: '000-000-00-00',
}
export const DEMO_NOTIFY_EMAIL = company.email
const contactCta = {
header: header(tx('Masz działkę, budynek albo wnętrze do zaprojektowania?', 'Have a plot, a building or an interior to design?'), tx('Opowiedz nam o nim. Pierwsza rozmowa jest bezpłatna i do niczego nie zobowiązuje.', 'Tell us about it. The first conversation is free and commits you to nothing.')),
links: [pageLink(tx('Umów rozmowę', 'Book a call'), 'kontakt'), pageLink(tx('Poproś o wycenę', 'Ask for a quote'), 'wycena', 'secondary')],
variant: 'band',
}
const SERVICES = [
{
benefits: [tx('Koncepcja w trzech wariantach', 'A concept in three options'), tx('Projekt budowlany i wykonawczy', 'Permit and construction drawings'), tx('Analiza nasłonecznienia', 'Daylight analysis'), tx('Kosztorys inwestorski', 'Cost estimate')],
intro: tx('Domy jednorodzinne i małe budynki usługowe — od analizy działki po pozwolenie na budowę.', 'Single-family houses and small commercial buildings — from the site analysis to the building permit.'),
media: 'facade',
slug: { en: 'residential-architecture', pl: 'architektura-domow' },
text: tx('Zaczynamy od działki: światła, widoków i tego, jak chcesz mieszkać. Dopiero potem rysujemy bryłę. Każdy projekt prowadzi jeden architekt, który odpowiada za całość aż do odbioru.', 'We start with the plot: its light, its views and how you want to live. Only then do we draw the building. One architect leads each project and stays responsible for it until handover.'),
more: tx('Koncepcję pokazujemy w trzech wariantach, z modelem bryły i analizą nasłonecznienia, żeby decyzje zapadały na podstawie tego, co widać, a nie tylko rysunków. Potem przygotowujemy projekt budowlany, składamy wniosek o pozwolenie i rysujemy projekt wykonawczy z detalami, z którym wykonawca może wycenić i postawić dom bez zgadywania.', 'We show the concept in three options, with a massing model and a daylight analysis, so decisions rest on what you can see, not only on drawings. Then we prepare the permit design, file the application and draw the construction set with details, so a contractor can price and build the house without guessing.'),
title: tx('Architektura domów', 'Residential architecture'),
},
{
benefits: [tx('Układ funkcjonalny i meble na wymiar', 'Layout and built-in furniture'), tx('Dobór materiałów z próbkami', 'Materials chosen with samples'), tx('Wizualizacje każdego pomieszczenia', 'Renderings of every room'), tx('Lista zakupów z linkami', 'A shopping list with links')],
intro: tx('Wnętrza mieszkań, domów i biur, które dobrze się starzeją.', 'Interiors for flats, houses and offices that age well.'),
media: 'interior',
slug: { en: 'interior-design', pl: 'projektowanie-wnetrz' },
text: tx('Projektujemy wnętrza od układu ścian po klamki. Pracujemy na naturalnych materiałach i ponadczasowych formach, więc wnętrze nie zestarzeje się po dwóch sezonach.', 'We design interiors from the wall layout to the door handles. We work with natural materials and timeless forms, so the interior does not date after two seasons.'),
more: tx('Zaczynamy od inwentaryzacji i rozmowy o tym, jak korzystasz z każdego pomieszczenia. Potem rysujemy układ funkcjonalny, meble na wymiar i oświetlenie, a materiały wybieramy na próbkach w pracowni. Dostajesz wizualizacje każdego pomieszczenia, rysunki dla stolarza i listę zakupów z linkami, więc wykonawcy wiedzą dokładnie, co mają zrobić.', 'We start with a measured survey and a conversation about how you use every room. Then we draw the layout, built-in furniture and lighting, and choose materials from samples at the studio. You get renderings of every room, drawings for the joiner and a shopping list with links, so the contractors know exactly what to do.'),
title: tx('Projektowanie wnętrz', 'Interior design'),
},
{
benefits: [tx('Wizyty na budowie co tydzień', 'Weekly site visits'), tx('Odbiory etapów z protokołem', 'Stage inspections with a report'), tx('Kontakt z wykonawcami', 'Liaison with contractors'), tx('Zmiany w projekcie na bieżąco', 'Design changes as you go')],
intro: tx('Pilnujemy, żeby budynek powstał tak, jak został zaprojektowany.', 'We make sure the building is built the way it was designed.'),
media: 'volumes',
slug: { en: 'site-supervision', pl: 'nadzor-autorski' },
text: tx('Nadzór autorski to nasza obecność na budowie: odpowiadamy na pytania wykonawców, sprawdzamy detale i dokumentujemy postęp. Ty dostajesz raport po każdej wizycie.', 'Site supervision means we are present on site: we answer the contractors’ questions, check the details and record the progress. You get a report after every visit.'),
more: tx('Przyjeżdżamy na budowę raz w tygodniu i na każdy ważny etap: fundamenty, więźbę, stolarkę i wykończenie. Sprawdzamy zgodność z projektem, rozwiązujemy problemy, zanim staną się kosztowne, i zatwierdzamy zmiany materiałów. Raport ze zdjęciami trafia do Ciebie tego samego dnia, więc wiesz, co się dzieje, nawet jeśli nie możesz przyjechać.', 'We visit the site once a week and at every key stage: foundations, roof structure, windows and finishes. We check the work against the design, solve problems before they get expensive and approve material changes. A report with photos reaches you the same day, so you know what is happening even when you cannot come.'),
title: tx('Nadzór autorski', 'Site supervision'),
},
]
const POSTS = [
{
excerpt: tx('Pięć pytań, które warto zadać, zanim kupisz działkę pod dom.', 'Five questions to ask before you buy a plot for a house.'),
media: 'courtyard',
publishedAt: '2026-09-02T09:00:00.000Z',
slug: { en: 'before-you-buy-a-plot', pl: 'zanim-kupisz-dzialke' },
text: rich(
['## Plan miejscowy', 'Miejscowy plan zagospodarowania przestrzennego mówi, co i jak wysoko można zbudować. Przeczytaj go przed podpisaniem umowy.', '## Media i dojazd', 'Sprawdź, czy prąd, woda i kanalizacja są w drodze, i ile kosztuje przyłącze.', '## Strony świata', 'Działka z wjazdem od północy pozwala otworzyć dom na ogród od południa.'],
['## The local plan', 'The local zoning plan says what can be built and how tall. Read it before you sign anything.', '## Utilities and access', 'Check that power, water and sewage are in the road, and what the connection costs.', '## Orientation', 'A plot entered from the north lets the house open onto a south-facing garden.'],
),
title: tx('Zanim kupisz działkę', 'Before you buy a plot'),
},
{
excerpt: tx('Dlaczego zaczynamy projekt od światła, a nie od rzutu.', 'Why we start a design with light, not with a floor plan.'),
media: 'arches',
publishedAt: '2026-09-23T09:00:00.000Z',
slug: { en: 'designing-with-daylight', pl: 'projektowanie-ze-swiatlem' },
text: rich(
['## Światło jako materiał', 'Okno to nie otwór w ścianie, tylko sposób, w jaki dzień wchodzi do domu.', '## Analiza nasłonecznienia', 'Dla każdego projektu liczymy, ile godzin słońca dostaje każde pomieszczenie w grudniu i w czerwcu.'],
['## Light as a material', 'A window is not a hole in a wall but the way the day enters the house.', '## Daylight analysis', 'For every project we calculate how many hours of sun each room gets in December and in June.'],
),
title: tx('Projektowanie ze światłem', 'Designing with daylight'),
},
{
excerpt: tx('Drewno, wapno, glina: materiały, do których wracamy.', 'Timber, lime, clay: the materials we keep coming back to.'),
media: 'pavilion',
publishedAt: '2026-10-14T09:00:00.000Z',
slug: { en: 'natural-materials', pl: 'naturalne-materialy' },
text: rich(
['## Drewno', 'Ciepłe w dotyku, łatwe w naprawie i coraz lepiej udokumentowane w przepisach.', '## Tynki wapienne', 'Oddychają, regulują wilgotność i pięknie się starzeją.'],
['## Timber', 'Warm to the touch, easy to repair and increasingly well covered by the building code.', '## Lime plaster', 'It breathes, balances humidity and ages beautifully.'],
),
title: tx('Naturalne materiały', 'Natural materials'),
},
]
const CASES = [
{
excerpt: tx('Dom jednorodzinny na skraju lasu, 180 m².', 'A family house at the edge of a forest, 180 m².'),
gallery: ['facade', 'interior', 'stairs'],
media: 'facade',
publishedAt: '2026-06-10T09:00:00.000Z',
slug: { en: 'house-by-the-forest', pl: 'dom-pod-lasem' },
stats: [[tx('180 m²', '180 m²'), tx('powierzchni użytkowej', 'of floor area')], [tx('14 mies.', '14 months'), tx('od koncepcji do odbioru', 'from concept to handover')]],
text: tx('Parterowy dom z dachem dwuspadowym, otwarty na las przez przeszkloną ścianę salonu.', 'A single-storey house with a pitched roof, opening onto the forest through a glazed living-room wall.'),
title: tx('Dom pod lasem', 'House by the forest'),
},
{
excerpt: tx('Przebudowa kamienicy na sześć mieszkań.', 'A tenement building converted into six flats.'),
gallery: ['library', 'courtyard', 'arches'],
media: 'courtyard',
publishedAt: '2026-07-21T09:00:00.000Z',
slug: { en: 'tenement-conversion', pl: 'przebudowa-kamienicy' },
stats: [[tx('6', '6'), tx('mieszkań', 'flats')], [tx('1912', '1912'), tx('rok budowy kamienicy', 'year the building was built')]],
text: tx('Zachowaliśmy klatkę schodową i stropy, a w oficynie powstały jasne mieszkania z dostępem do dziedzińca.', 'We kept the staircase and the floors, and the rear wing now holds bright flats with access to the courtyard.'),
title: tx('Przebudowa kamienicy', 'Tenement conversion'),
},
{
excerpt: tx('Wnętrze kawiarni z czytelnią, 90 m².', 'A café interior with a reading room, 90 m².'),
gallery: ['interior', 'library', 'pavilion'],
media: 'library',
publishedAt: '2026-08-30T09:00:00.000Z',
slug: { en: 'cafe-reading-room', pl: 'kawiarnia-czytelnia' },
stats: [[tx('90 m²', '90 m²'), tx('wnętrza', 'of interior')], [tx('40', '40'), tx('miejsc siedzących', 'seats')]],
text: tx('Długi regał z dębu dzieli kawiarnię od cichej czytelni, a wapienne tynki wyciszają salę.', 'A long oak bookcase separates the café from a quiet reading room, and lime plaster softens the acoustics.'),
title: tx('Kawiarnia z czytelnią', 'Café with a reading room'),
},
]
/**
* Every page's own meta description (≤ 155 characters, unique, both languages), keyed by its pl slug.
* Without one a page falls back to the site description, and Google ignores descriptions it sees on many pages.
*/
const META: Record<string, { en: string; pl: string }> = {
'architektura-domow': tx('Projekty domów jednorodzinnych: analiza działki, koncepcja w trzech wariantach, projekt budowlany i wykonawczy. Example Studio, Warszawa.', 'Family house design: site analysis, a concept in three options, permit and construction drawings. Example Studio, Warsaw.'),
blog: tx('Blog pracowni Example Studio: jak wybrać działkę, ile trwa projekt domu, z czego budować. Odpowiedzi na pytania klientów, bez żargonu.', 'The Example Studio blog: choosing a plot, how long a house design takes, what to build with. Answers to clients’ questions, no jargon.'),
bloki: tx('Strona testowa biblioteki bloków ipal-kit: każdy blok w każdym wariancie, także na odwróconym tle. Niewidoczna dla wyszukiwarek.', 'The ipal-kit block library test page: every block in every variant, also on the inverted background. Hidden from search engines.'),
kontakt: tx('Napisz do Example Studio: odpowiadamy w ciągu jednego dnia roboczego. Pierwsza rozmowa o domu, wnętrzu albo nadzorze jest bezpłatna.', 'Write to Example Studio: we reply within one working day. The first conversation about a house, an interior or supervision is free.'),
'nadzor-autorski': tx('Nadzór autorski: cotygodniowe wizyty na budowie, odbiory etapów i raport ze zdjęciami po każdej wizycie. Example Studio.', 'Site supervision: weekly site visits, stage inspections and a photo report after every visit. Example Studio.'),
'nie-znaleziono': tx('Nie znaleziono strony w serwisie Example Studio. Przejdź na stronę główną albo skorzystaj z menu.', 'Page not found on the Example Studio site. Go to the home page or use the menu.'),
'o-nas': tx('Example Studio to sześcioro architektów z Warszawy. Od 2014 roku projektujemy domy i wnętrza, prowadząc każdy projekt od rozmowy do odbioru.', 'Example Studio is six architects from Warsaw. Since 2014 we have designed houses and interiors, leading each project from the first talk to handover.'),
'polityka-cookies': tx('Polityka cookies Example Studio: jakich plików cookies używamy, w jakim celu i jak zmienić zgodę.', 'The Example Studio cookie policy: which cookies we use, why, and how to change your consent.'),
'polityka-prywatnosci': tx('Polityka prywatności Example Studio: kto przetwarza dane z formularzy, w jakim celu i jakie masz prawa.', 'The Example Studio privacy policy: who processes form data, for what purpose and what your rights are.'),
'projektowanie-wnetrz': tx('Projektowanie wnętrz mieszkań, domów i biur: układ, meble na wymiar, materiały z próbkami i wizualizacje każdego pomieszczenia.', 'Interior design for flats, houses and offices: layout, built-in furniture, materials from samples and renderings of every room.'),
realizacje: tx('Realizacje Example Studio: dom pod lasem, przebudowa kamienicy i kawiarnia z czytelnią — założenia, decyzje, materiały i czas realizacji.', 'Example Studio case studies: a house by the forest, a tenement conversion and a café with a reading room — brief, decisions, materials, timing.'),
regulamin: tx('Regulamin serwisu Example Studio — przykładowa treść strony referencyjnej ipal-kit.', 'Terms of service of the Example Studio site — sample text on the ipal-kit reference site.'),
start: tx('Example Studio — pracownia architektury i wnętrz z Warszawy. Projektujemy domy i wnętrza z naturalnych materiałów, które dobrze się starzeją.', 'Example Studio — an architecture and interior studio in Warsaw. We design houses and interiors in natural materials that age well.'),
uslugi: tx('Usługi Example Studio: projekty domów, projektowanie wnętrz i nadzór autorski. Zakres, proces i orientacyjne ceny.', 'Example Studio services: house design, interior design and site supervision. Scope, process and indicative prices.'),
wycena: tx('Poproś o wycenę projektu: trzy krótkie kroki, odpowiedź z wyceną i harmonogramem w ciągu trzech dni roboczych.', 'Ask for a project quote: three short steps, a reply with the price and schedule within three working days.'),
}
/** The page with its own meta description from META (by its pl slug). */
function withMeta<T extends { slug: unknown }>(page: T): T & { meta?: { description: { en: string; pl: string } } } {
const slug = typeof page.slug === 'string' ? page.slug : (page.slug as { pl?: string }).pl
const description = slug ? META[slug] : undefined
return description ? { ...page, meta: { description } } : page
}
export async function seedDemoGlobals(seed: Seeder, media: Record<string, string>) {
await seed.fillGlobal('company', company)
await seed.fillGlobal('site-settings', {
defaultShareImage: media.arches,
defaultTheme: 'system',
favicon: media['icon-example-studio'],
llmsIntro: tx(
'Example Studio to fikcyjna pracownia architektury i wnętrz z Warszawy, stworzona jako strona referencyjna ipal-kit. Projektuje domy jednorodzinne, wnętrza i prowadzi nadzór autorski.',
'Example Studio is a made-up architecture and interior studio from Warsaw, built as the ipal-kit reference site. It designs family houses and interiors and provides site supervision.',
),
siteDescription: tx('Pracownia architektury i wnętrz: domy, wnętrza, nadzór autorski. Projekty, które dobrze się starzeją.', 'Architecture and interior studio: houses, interiors, site supervision. Designs that age well.'),
siteName: 'Example Studio',
themeToggleLabel: tx('Tryb ciemny', 'Dark mode'),
})
}
export async function seedDemoPages(seed: Seeder, media: Record<string, string>) {
const services = SERVICES.map((s, i) =>
pageTemplates.service({
blocks,
form: { $form: 'Quote form' },
overrides: {
faq: { header: header(tx('Pytania o tę usługę', 'Questions about this service')), items: [{ answer: tx('Zwykle od dwóch do czterech miesięcy, zależnie od wielkości projektu.', 'Usually two to four months, depending on the size of the project.'), question: tx('Ile trwa projekt?', 'How long does a project take?') }, { answer: tx('Tak, pracujemy w całej Polsce; na budowę dojeżdżamy według harmonogramu.', 'Yes, we work across Poland and visit sites on a schedule.'), question: tx('Czy pracujecie poza Warszawą?', 'Do you work outside Warsaw?') }, { answer: tx('Po pierwszej rozmowie przygotowujemy wycenę z zakresem i harmonogramem. Płacisz w ratach po każdym etapie.', 'After the first conversation we prepare a quote with the scope and the schedule. You pay in instalments after each stage.'), question: tx('Jak wygląda wycena?', 'How does the quote work?') }] },
featureGrid: { header: header(tx('Co dostajesz', 'What you get')), items: s.benefits.map((heading) => ({ heading })) },
gallery: { header: header(tx('Wybrane realizacje', 'Selected work')), items: ['facade', 'interior', 'courtyard'].map((m) => ({ media: media[m] })) },
hero: { header: header(s.title, s.intro, tx('Usługa', 'Service')), media: media[s.media] },
textMedia: { content: rich([s.text.pl, s.more.pl], [s.text.en, s.more.en]), header: header(tx('Jak pracujemy', 'How we work')), media: media[['stairs', 'arches', 'pavilion'][i]] },
},
slug: s.slug,
title: s.title,
}),
)
const blogIndex = pageTemplates.blogIndex({
blocks,
layout: (b) => [
b[0],
{
blockType: 'richText',
content: rich(
['Piszemy o tym, o co klienci pytają nas najczęściej: jak wybrać działkę, ile naprawdę trwa projekt, z czego budować i jak przygotować się do rozmowy z wykonawcą. Każdy wpis powstaje na podstawie naszych projektów i odpowiada na jedno konkretne pytanie, bez żargonu i bez reklam. Jeśli chcesz, żebyśmy napisali o czymś jeszcze, wyślij nam pytanie przez formularz kontaktowy.'],
['We write about what clients ask us most often: how to choose a plot, how long a design really takes, what to build with and how to prepare for the conversation with a contractor. Every post comes from our own projects and answers one specific question, without jargon and without ads. If you want us to write about something else, send us your question through the contact form.'],
),
variant: 'narrow',
},
{ blockType: 'entryList', entryCollection: 'posts', limit: 9, mode: 'latest', variant: 'cards' },
...b.slice(1),
],
overrides: { cta: contactCta, hero: { header: header(tx('Blog', 'Blog'), tx('O projektowaniu, materiałach i budowie — bez żargonu.', 'On design, materials and building — without the jargon.')), variant: 'page' } },
})
const caseStudiesIndex = {
layout: [
{ blockType: 'hero', header: header(tx('Realizacje', 'Case studies'), tx('Domy, wnętrza i przebudowy, które zaprojektowaliśmy.', 'Houses, interiors and conversions we designed.')), variant: 'page' },
{
blockType: 'richText',
content: rich(
['Każda realizacja zaczyna się od rozmowy o tym, jak klient chce żyć albo pracować, a kończy na odbiorze z nami na budowie. Poniżej pokazujemy wybrane projekty: dom jednorodzinny, przebudowę kamienicy i wnętrze kawiarni. Przy każdym opisujemy założenia, najważniejsze decyzje projektowe, materiały i to, ile trwała droga od koncepcji do klucza w drzwiach.', 'Wszystkie projekty prowadzimy w tym samym rytmie: rozmowa, koncepcja w wariantach, projekt i nadzór na budowie. Dzięki temu klient od początku wie, kiedy zapadają decyzje i ile kosztują, a my możemy pokazać efekt bez niespodzianek na końcu.'],
['Every project starts with a conversation about how the client wants to live or work, and ends with a handover where we are on site. Below are selected projects: a family house, a tenement conversion and a café interior. For each we describe the brief, the key design decisions, the materials and how long it took from the concept to the key in the door.', 'We run every project in the same rhythm: conversation, concept in options, design and supervision on site. That way the client knows from the start when decisions are made and what they cost, and we can show the result without surprises at the end.'],
),
variant: 'narrow',
},
{ blockType: 'entryList', entryCollection: 'caseStudies', limit: 9, mode: 'latest', variant: 'cards' },
{ blockType: 'cta', ...contactCta },
],
slug: { en: 'case-studies', pl: 'realizacje' },
title: tx('Realizacje', 'Case studies'),
}
const quote = {
layout: [
{ blockType: 'hero', header: header(tx('Wycena projektu', 'Project quote'), tx('Trzy krótkie kroki. Odpowiemy z wyceną w ciągu trzech dni roboczych.', 'Three short steps. We reply with a quote within three working days.')), variant: 'page' },
{
blockType: 'richText',
content: rich(
['Wycena obejmuje zakres prac, podział na etapy, harmonogram i warunki płatności. Im więcej wiemy na starcie, tym dokładniejsza będzie: podaj lokalizację, przybliżoną powierzchnię, rodzaj budynku albo wnętrza i planowany termin rozpoczęcia. Jeśli masz rzuty, zdjęcia, mapę do celów projektowych albo wypis z planu miejscowego, wspomnij o nich w formularzu — poprosimy o pliki w odpowiedzi. Wycena jest bezpłatna i do niczego nie zobowiązuje.'],
['The quote covers the scope of work, the stages, the schedule and the payment terms. The more we know at the start, the more precise it is: tell us the location, the rough floor area, the type of building or interior and when you plan to start. If you have floor plans, photos, a survey map or an extract from the local plan, mention them in the form — we will ask for the files in our reply. The quote is free and commits you to nothing.'],
),
variant: 'narrow',
},
{ blockType: 'contact', form: { $form: 'Quote form' }, variant: 'formOnly' },
{
blockType: 'steps',
header: header(tx('Co dzieje się dalej', 'What happens next')),
items: [
{ heading: tx('Czytamy zgłoszenie', 'We read your request'), text: tx('Architekt prowadzący sprawdza zakres, metraż i termin, a w razie pytań dzwoni lub pisze.', 'The lead architect checks the scope, floor area and timing, and calls or writes if anything is unclear.') },
{ heading: tx('Wysyłamy wycenę', 'We send the quote'), text: tx('W ciągu trzech dni roboczych dostajesz wycenę z podziałem na etapy i harmonogram prac.', 'Within three working days you get a quote split into stages, with a schedule of the work.') },
{ heading: tx('Umawiamy spotkanie', 'We meet'), text: tx('Omawiamy wycenę w pracowni albo online i odpowiadamy na pytania, zanim cokolwiek podpiszesz.', 'We go through the quote at the studio or online and answer your questions before you sign anything.') },
],
variant: 'numbered',
},
],
slug: { en: 'quote', pl: 'wycena' },
title: tx('Wycena', 'Quote'),
}
const pages: { slug: unknown }[] = [
pageTemplates.home({
blocks,
overrides: {
cta: contactCta,
faq: {
header: header(tx('Najczęstsze pytania', 'Frequently asked questions')),
items: [
{ answer: tx('Pierwsza rozmowa jest bezpłatna. Potem przygotowujemy wycenę dopasowaną do zakresu.', 'The first conversation is free. Then we prepare a quote that fits the scope.'), question: tx('Ile kosztuje pierwsze spotkanie?', 'What does the first meeting cost?') },
{ answer: tx('Projekt domu trwa zwykle od trzech do sześciu miesięcy, wnętrza — od jednego do trzech.', 'A house design usually takes three to six months; an interior one to three.'), question: tx('Jak długo trwa projekt?', 'How long does a design take?') },
{ answer: tx('Tak. Prowadzimy cały proces, łącznie z wnioskiem i kontaktem z urzędem.', 'Yes. We handle the whole process, including the application and contact with the office.'), question: tx('Czy załatwiacie pozwolenie na budowę?', 'Do you handle the building permit?') },
{ answer: tx('Tak, nadzór autorski jest osobną usługą i można go zamówić na każdym etapie.', 'Yes, site supervision is a separate service you can order at any stage.'), question: tx('Czy możecie nadzorować budowę?', 'Can you supervise the construction?') },
],
},
featureGrid: {
header: header(tx('Czym się zajmujemy', 'What we do'), tx('Trzy usługi, jeden zespół od pierwszego szkicu do odbioru.', 'Three services, one team from the first sketch to handover.')),
items: SERVICES.map((s) => ({ heading: s.title, link: { label: s.title, page: { $page: s.slug.pl }, type: 'internal' }, text: s.intro })),
},
hero: {
header: header(tx('Architektura, która dobrze się starzeje', 'Architecture that ages well'), tx('Projektujemy domy i wnętrza z naturalnych materiałów, z myślą o świetle i o tym, jak naprawdę mieszkasz.', 'We design houses and interiors in natural materials, with light in mind and the way you really live.'), tx('Pracownia architektury', 'Architecture studio')),
links: [pageLink(tx('Umów rozmowę', 'Book a call'), 'kontakt'), pageLink(tx('Zobacz realizacje', 'See our work'), 'realizacje', 'secondary')],
media: media.arches,
},
logos: { header: header(tx('Zaufali nam', 'They trust us')), items: ['logo-north', 'logo-oak', 'logo-vistula', 'logo-rynek'].map((m, i) => ({ heading: ['North Bank', 'Oak & Co', 'Vistula Homes', 'Rynek Hotel'][i], media: media[m] })) },
stats: { items: [{ heading: tx('lat doświadczenia', 'years of experience'), value: '12' }, { heading: tx('zrealizowanych projektów', 'completed projects'), value: '140' }, { heading: tx('architektów w zespole', 'architects on the team'), value: '6' }] },
testimonials: {
header: header(tx('Co mówią klienci', 'What our clients say')),
items: [
{ heading: 'Marta K.', quote: tx('Dostaliśmy dom, w którym rano jest słońce w kuchni, a wieczorem w salonie. Dokładnie o to prosiliśmy.', 'We got a house with morning sun in the kitchen and evening sun in the living room. Exactly what we asked for.'), rating: 5, text: tx('Dom pod lasem', 'House by the forest') },
{ heading: 'Piotr W.', quote: tx('Nadzór autorski oszczędził nam kilku drogich pomyłek wykonawcy.', 'Site supervision saved us from a few expensive contractor mistakes.'), rating: 5, text: tx('Przebudowa kamienicy', 'Tenement conversion') },
{ heading: 'Ewa i Jan', quote: tx('Wnętrze po trzech latach wygląda tak samo dobrze jak w dniu odbioru.', 'Three years on, the interior looks as good as on handover day.'), rating: 5, text: tx('Kawiarnia z czytelnią', 'Café with a reading room') },
],
},
textMedia: {
content: rich(
['Example Studio to sześcioro architektów z Warszawy. Każdy projekt prowadzi jedna osoba — od pierwszej rozmowy do odbioru kluczy.', 'Rysujemy ręcznie, liczymy dokładnie i odwiedzamy budowę co tydzień.'],
['Example Studio is six architects from Warsaw. One person leads each project — from the first conversation to handing over the keys.', 'We sketch by hand, calculate carefully and visit the site every week.'],
),
header: header(tx('O nas', 'About us')),
links: [pageLink(tx('Poznaj zespół', 'Meet the team'), 'o-nas', 'secondary')],
media: media.interior,
},
},
}),
pageTemplates.about({
blocks,
overrides: {
cta: contactCta,
hero: { header: header(tx('O nas', 'About us'), tx('Mała pracownia, duża uważność.', 'A small studio that pays close attention.')), variant: 'page' },
stats: { items: [{ heading: tx('założenie pracowni', 'studio founded'), value: '2014' }, { heading: tx('projektów domów', 'house designs'), value: '85' }, { heading: tx('projektów wnętrz', 'interior designs'), value: '55' }], variant: 'cards' },
steps: {
header: header(tx('Jak pracujemy', 'How we work')),
items: [
{ heading: tx('Rozmowa', 'Conversation'), text: tx('Poznajemy Ciebie, działkę albo wnętrze i budżet.', 'We get to know you, the site or interior, and the budget.') },
{ heading: tx('Koncepcja', 'Concept'), text: tx('Trzy warianty do wyboru, z modelem i wizualizacjami.', 'Three options to choose from, with a model and renderings.') },
{ heading: tx('Projekt', 'Design'), text: tx('Dokumentacja budowlana i wykonawcza, kosztorys.', 'Permit and construction drawings, cost estimate.') },
{ heading: tx('Budowa', 'Construction'), text: tx('Nadzór autorski i odbiory etapów.', 'Site supervision and stage inspections.') },
],
},
team: {
header: header(tx('Zespół', 'The team')),
items: [
{ heading: 'Anna Przykładowa', media: media['person-anna'], text: tx('architektka, założycielka', 'architect, founder') },
{ heading: 'Tomasz Testowy', media: media['person-tomasz'], text: tx('architekt, nadzór', 'architect, supervision') },
{ heading: 'Julia Wzorcowa', media: media['person-julia'], text: tx('projektantka wnętrz', 'interior designer') },
],
},
textMedia: {
content: rich(
['Pracownię założyliśmy w 2014 roku, żeby projektować mniej, ale lepiej.', 'Dziś bierzemy jednocześnie najwyżej osiem projektów, żeby każdy dostał pełną uwagę.'],
['We founded the studio in 2014 to design less, but better.', 'Today we take on no more than eight projects at a time, so each gets our full attention.'],
),
header: header(tx('Nasza historia', 'Our story')),
media: media.library,
},
},
}),
pageTemplates.services({
blocks,
overrides: {
cta: contactCta,
faq: { header: header(tx('Pytania o usługi', 'Questions about our services')), items: [{ answer: tx('Tak, każdą usługę można zamówić osobno.', 'Yes, each service can be ordered on its own.'), question: tx('Czy mogę zamówić tylko wnętrza?', 'Can I order only the interior?') }, { answer: tx('Ceny są orientacyjne; dokładną wycenę przygotowujemy po rozmowie.', 'Prices are indicative; we prepare an exact quote after a conversation.'), question: tx('Czy ceny są ostateczne?', 'Are the prices final?') }] },
featureGrid: { header: header(tx('Usługi', 'Services')), items: SERVICES.map((s) => ({ heading: s.title, link: { label: s.title, page: { $page: s.slug.pl }, type: 'internal' }, text: s.intro })) },
hero: { header: header(tx('Usługi', 'Services'), tx('Od działki do klucza w drzwiach.', 'From the plot to the key in the door.')), variant: 'page' },
pricing: {
header: header(tx('Cennik', 'Pricing')),
highlightLabel: tx('Najczęściej wybierany', 'Most popular'),
items: [
{ features: [{ text: tx('Koncepcja', 'Concept') }, { text: tx('Wizualizacje', 'Renderings') }], heading: tx('Koncepcja', 'Concept'), period: tx('za projekt', 'per project'), price: tx('od 9 000 zł', 'from PLN 9,000') },
{ features: [{ text: tx('Koncepcja', 'Concept') }, { text: tx('Projekt budowlany', 'Permit design') }, { text: tx('Projekt wykonawczy', 'Construction drawings') }], heading: tx('Pełny projekt', 'Full design'), highlighted: true, period: tx('za projekt', 'per project'), price: tx('od 39 000 zł', 'from PLN 39,000') },
{ features: [{ text: tx('Wizyta co tydzień', 'Weekly visit') }, { text: tx('Raport z każdej wizyty', 'A report after each visit') }], heading: tx('Nadzór autorski', 'Site supervision'), period: tx('miesięcznie', 'per month'), price: tx('od 2 500 zł', 'from PLN 2,500') },
],
note: tx('Ceny netto, orientacyjne. Dokładną wycenę przygotujemy po rozmowie.', 'Net prices, indicative. We prepare an exact quote after a conversation.'),
},
steps: { header: header(tx('Jak to działa', 'How it works')), items: [{ heading: tx('Rozmowa i wycena', 'Conversation and quote') }, { heading: tx('Umowa i harmonogram', 'Contract and schedule') }, { heading: tx('Projekt i nadzór', 'Design and supervision') }] },
},
}),
...services,
pageTemplates.contact({
blocks,
form: { $form: 'Contact form' },
overrides: {
contact: { content: rich(['Odpowiadamy w ciągu jednego dnia roboczego. Wolisz porozmawiać? Zadzwoń w godzinach pracy pracowni.', 'Napisz, czego dotyczy projekt: dom, wnętrze czy nadzór, gdzie się znajduje i kiedy chcesz zacząć. Jeśli masz rzuty, zdjęcia albo plan miejscowy, wspomnij o nich — poprosimy o pliki w odpowiedzi. Pierwsza rozmowa jest bezpłatna.'], ['We reply within one working day. Prefer to talk? Call us during studio hours.', 'Tell us what the project is about: a house, an interior or supervision, where it is and when you want to start. If you have floor plans, photos or the local plan, mention them — we will ask for the files in our reply. The first conversation is free.']), form: { $form: 'Contact form' }, header: header(tx('Napisz do nas', 'Write to us')) },
faq: { header: header(tx('Zanim napiszesz', 'Before you write')), items: [{ answer: tx('Adres działki albo mieszkania, przybliżony metraż i termin.', 'The address of the plot or flat, the rough floor area and the timing.'), question: tx('Co warto podać w wiadomości?', 'What should I include in the message?') }, { answer: tx('Tak, w pracowni albo online — jak wolisz.', 'Yes, at the studio or online — whichever you prefer.'), question: tx('Czy można się spotkać?', 'Can we meet?') }, { answer: tx('Tak. Dane z formularza służą tylko do odpowiedzi na wiadomość; szczegóły są w polityce prywatności.', 'Yes. We use the form data only to answer your message; the details are in the privacy policy.'), question: tx('Czy moje dane są bezpieczne?', 'Is my data safe?') }] },
hero: { header: header(tx('Kontakt', 'Contact'), tx('Odpowiadamy w ciągu jednego dnia roboczego.', 'We reply within one working day.')), variant: 'page' },
},
}),
quote,
blogIndex,
caseStudiesIndex,
pageTemplates.legal('privacyPolicy', {
blocks,
overrides: {
richText: {
content: rich(
['## Kto jest administratorem', 'To przykładowa treść strony referencyjnej, nie prawdziwa polityka. Administratorem danych w prawdziwym projekcie jest klient — treść przygotowuje on lub jego prawnik.', '## Jakie dane zbieramy', 'Dane z formularzy kontaktowych i wyceny, zapis zgody na cookies oraz anonimowe statystyki odwiedzin.', '## Twoje prawa', 'Dostęp do danych, ich poprawienie, usunięcie i sprzeciw wobec przetwarzania.'],
['## Who the controller is', 'This is sample text on the reference site, not a real policy. In a real project the client is the controller — the text comes from them or their lawyer.', '## What data we collect', 'Data from the contact and quote forms, the cookie consent record and anonymous visit statistics.', '## Your rights', 'Access to your data, correction, deletion and objection to processing.'],
),
tableOfContents: { label: tx('Spis treści', 'Contents'), show: true },
variant: 'narrow',
},
},
}),
pageTemplates.legal('termsOfService', {
blocks,
overrides: {
richText: {
content: rich(['## Postanowienia ogólne', 'Przykładowa treść regulaminu strony referencyjnej.', '## Kontakt', 'Pytania o regulamin prosimy kierować przez formularz kontaktowy.'], ['## General terms', 'Sample terms of service on the reference site.', '## Contact', 'Please send questions about these terms through the contact form.']),
tableOfContents: { label: tx('Spis treści', 'Contents'), show: true },
variant: 'narrow',
},
},
}),
pageTemplates.cookiePolicy({
blocks,
overrides: {
richText: {
content: rich(['## Czym są cookies', 'Małe pliki zapisywane przez przeglądarkę. Używamy ich tylko za Twoją zgodą, poza niezbędnymi.', '## Jak zmienić zgodę', 'Kliknij przycisk ustawień cookies w rogu strony.'], ['## What cookies are', 'Small files your browser stores. We use them only with your consent, except the necessary ones.', '## How to change your consent', 'Click the cookie settings button in the corner of the page.']),
tableOfContents: { show: false },
variant: 'narrow',
},
},
}),
pageTemplates.notFound({ blocks }),
showcasePage(media),
]
await seed.upsertBySlug('pages', pages.map(withMeta))
await seed.upsertBySlug('posts', POSTS.map((p) => ({
...pageTemplates.post({
blocks,
overrides: { cta: contactCta, hero: { header: header(p.title, p.excerpt, tx('Blog', 'Blog')) }, richText: { content: p.text, tableOfContents: { label: tx('Spis treści', 'Contents'), show: true }, variant: 'narrow' } },
title: p.title,
}),
aiSummary: p.excerpt,
excerpt: p.excerpt,
meta: { description: p.excerpt },
media: media[p.media],
publishedAt: p.publishedAt,
slug: p.slug,
title: p.title,
})))
await seed.upsertBySlug('caseStudies', CASES.map((c) => ({
aiSummary: c.excerpt,
excerpt: c.excerpt,
meta: { description: c.excerpt },
layout: [
{ blockType: 'hero', header: header(c.title, c.excerpt, tx('Realizacja', 'Case study')), media: media[c.media], variant: 'background' },
{ blockType: 'textMedia', content: rich([c.text.pl], [c.text.en]), header: header(tx('Projekt', 'The project')), media: media[c.gallery[1]], variant: 'mediaRight' },
{ blockType: 'stats', items: c.stats.map(([value, heading]) => ({ heading, value })), variant: 'cards' },
{ blockType: 'gallery', columns: 'three', header: header(tx('Galeria', 'Gallery')), items: c.gallery.map((m) => ({ media: media[m] })), variant: 'grid' },
{ blockType: 'cta', ...contactCta },
],
media: media[c.media],
publishedAt: c.publishedAt,
slug: c.slug,
title: c.title,
})))
}
export async function seedDemoNavigation(seed: Seeder) {
const link = (label: { en: string; pl: string }, slug: string) => ({ link: { label, page: { $page: slug }, type: 'internal' } })
await seed.fillGlobal('site-settings', {
...systemPageRefs({ cookiePolicy: 'polityka-cookies', homepage: 'start', notFound: 'nie-znaleziono', privacyPolicy: 'polityka-prywatnosci', termsOfService: 'regulamin' }),
caseStudiesArchive: { $page: 'realizacje' },
postsArchive: { $page: 'blog' },
})
await seed.fillGlobal('header', {
links: [pageLink(tx('Wycena', 'Get a quote'), 'wycena')],
menuLabel: tx('Menu', 'Menu'),
navItems: [
{ ...link(tx('Usługi', 'Services'), 'uslugi'), subItems: SERVICES.map((s) => link(s.title, s.slug.pl)) },
link(tx('Realizacje', 'Case studies'), 'realizacje'),
link(tx('O nas', 'About'), 'o-nas'),
link(tx('Blog', 'Blog'), 'blog'),
link(tx('Kontakt', 'Contact'), 'kontakt'),
],
})
await seed.fillGlobal('footer', {
columns: [
{ heading: tx('Usługi', 'Services'), items: SERVICES.map((s) => link(s.title, s.slug.pl)) },
{ heading: tx('Pracownia', 'Studio'), items: [link(tx('O nas', 'About'), 'o-nas'), link(tx('Realizacje', 'Case studies'), 'realizacje'), link(tx('Blog', 'Blog'), 'blog')] },
{ heading: tx('Kontakt', 'Contact'), items: [link(tx('Napisz do nas', 'Write to us'), 'kontakt'), link(tx('Wycena', 'Get a quote'), 'wycena')] },
],
note: tx('Strona referencyjna ipal-kit — firma i treści są fikcyjne.', 'ipal-kit reference site — the company and content are made up.'),
})
}