backend:
  name: github
  repo: workstudiopl-pixel/workstudiopl-landing
  branch: main
  auth_type: pkce
  app_id: Ov23li6TEueIyGV6FD9X

media_folder: public/images
public_folder: /images

locale: pl

collections:
  # ── 1. Homepage content ──────────────────────────────────────────────
  - name: homepage
    label: "Strona główna"
    files:
      - name: main
        label: "Treści strony głównej"
        file: src/content/homepage/main.md
        fields:
          - { label: "Hero – Tytuł", name: heroTitle, widget: string }
          - { label: "Hero – Podtytuł", name: heroSubtitle, widget: text }
          - { label: "O nas – Tytuł", name: aboutTitle, widget: string }
          - { label: "O nas – Tekst", name: aboutText, widget: text }
          - label: "Statystyki"
            name: stats
            widget: object
            fields:
              - { label: "Stat 1 – Wartość", name: stat1Value, widget: string }
              - { label: "Stat 1 – Etykieta", name: stat1Label, widget: string }
              - { label: "Stat 2 – Wartość", name: stat2Value, widget: string }
              - { label: "Stat 2 – Etykieta", name: stat2Label, widget: string }
              - { label: "Stat 3 – Wartość", name: stat3Value, widget: string }
              - { label: "Stat 3 – Etykieta", name: stat3Label, widget: string }
          - label: "Usługi"
            name: services
            widget: object
            fields:
              - { label: "Usługa 1 – Tytuł", name: service1Title, widget: string }
              - { label: "Usługa 1 – Opis", name: service1Desc, widget: text }
              - { label: "Usługa 2 – Tytuł", name: service2Title, widget: string }
              - { label: "Usługa 2 – Opis", name: service2Desc, widget: text }
              - { label: "Usługa 3 – Tytuł", name: service3Title, widget: string }
              - { label: "Usługa 3 – Opis", name: service3Desc, widget: text }
              - { label: "Usługa 4 – Tytuł", name: service4Title, widget: string }
              - { label: "Usługa 4 – Opis", name: service4Desc, widget: text }
              - { label: "Usługa 5 – Tytuł", name: service5Title, widget: string }
              - { label: "Usługa 5 – Opis", name: service5Desc, widget: text }
              - { label: "Usługa 6 – Tytuł", name: service6Title, widget: string }
              - { label: "Usługa 6 – Opis", name: service6Desc, widget: text }

  # ── 2. Jobs ──────────────────────────────────────────────────────────
  - name: jobs
    label: "Oferty pracy"
    label_singular: "Oferta pracy"
    folder: src/content/jobs
    create: true
    delete: true
    slug: "{{slug}}"
    fields:
      - { label: "Tytuł stanowiska", name: title, widget: string }
      - { label: "Lokalizacja", name: location, widget: string }
      - { label: "Wynagrodzenie", name: salary, widget: string, hint: "np. 5 200 – 6 800 PLN brutto" }
      - label: "Rodzaj zatrudnienia"
        name: type
        widget: select
        options:
          - { label: "Tymczasowa", value: "Tymczasowa" }
          - { label: "Stała", value: "Stała" }
          - { label: "Sezonowa", value: "Sezonowa" }
      - label: "Wymagania"
        name: requirements
        widget: list
        field: { label: Wymaganie, name: item, widget: string }
      - { label: "Opis stanowiska", name: description, widget: text }
      - { label: "Data publikacji", name: publishedDate, widget: datetime, format: "YYYY-MM-DD" }
      - { label: "Aktywna oferta", name: active, widget: boolean, default: true }

  # ── 3. Settings (singleton) ──────────────────────────────────────────
  - name: settings
    label: "Ustawienia"
    files:
      - name: contact
        label: "Dane kontaktowe"
        file: src/content/settings/contact.md
        fields:
          - { label: "Telefon 1 (Dział rekrutacji)", name: phone1, widget: string }
          - { label: "Telefon 2 (Biuro)", name: phone2, widget: string }
          - { label: "E-mail (Biuro)", name: emailContact, widget: string }
          - { label: "E-mail (Rekrutacja)", name: emailRecruit, widget: string }
          - { label: "Ulica i nr", name: address, widget: string }
          - { label: "Kod pocztowy i miasto", name: city, widget: string }
          - { label: "Godziny – Dni", name: hoursWeekdays, widget: string }
          - { label: "Godziny – Czas", name: hoursTime, widget: string }
          - { label: "NIP", name: nip, widget: string }
          - { label: "KRS", name: krs, widget: string }
