Reference site: Example Studio on ipal-kit (reference/), index for agents, CI job

reference/ is one complete client site on the plugin (made-up company, pl/en,
MongoDB, every library block and template, token standard light/dark, forms,
consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook,
smoke tests). It uses the plugin as file:.. (injected) and is not shipped.

- docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs,
  kept current by test/referenceIndex.test.ts)
- AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference,
  ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b
- CI: reference (fast) on every push, reference-full on main; doctor steps
  wired, commented until ipal-doctor ships

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 15:17:11 +01:00
co-authored by Claude Opus 5.5
parent 8bb5ebd394
commit 8adac41f92
129 changed files with 18440 additions and 1 deletions
+409
View File
@@ -0,0 +1,409 @@
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.'),
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.'),
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.'),
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'),
},
]
export async function seedDemoGlobals(seed: Seeder, media: Record<string, string>) {
await seed.fillGlobal('company', company)
await seed.fillGlobal('site-settings', {
allowThemeToggle: true,
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?') }] },
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.text.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: 'entryList', collection: '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: 'entryList', collection: '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: 'contact', form: { $form: 'Quote form' }, variant: 'formOnly' },
],
slug: { en: 'quote', pl: 'wycena' },
title: tx('Wycena', 'Quote'),
}
await seed.upsertBySlug('pages', [
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.'], ['We reply within one working day. Prefer to talk? Call us during studio hours.']), 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?') }] },
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',
},
},
}),
noindex: true, // policies: noindex (AGENT.md §0c)
},
{
...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',
},
},
}),
noindex: true, // policies: noindex (AGENT.md §0c)
},
{
...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',
},
},
}),
noindex: true, // policies: noindex (AGENT.md §0c)
},
pageTemplates.notFound({ blocks }),
showcasePage(media),
])
await seed.upsertBySlug('posts', POSTS.map((p) => ({
...pageTemplates.post({
blocks,
// The post template starts with the text; a page hero gives the post its title as the h1
layout: (b) => [{ blockType: 'hero', header: header(p.title, p.excerpt, tx('Blog', 'Blog')), variant: 'page' }, ...b],
overrides: { cta: contactCta, richText: { content: p.text, tableOfContents: { label: tx('Spis treści', 'Contents'), show: true }, variant: 'narrow' } },
}),
aiSummary: p.excerpt,
excerpt: 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,
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.'),
})
}