backend:
  name: gitlab
  repo: perifalab/gurgelhub-site
  branch: main
  auth_type: pkce
  app_id: "c220078f7b918c844a2373a0ee3eb47a8a616a25767674de004a67f9a78710c1"

media_folder: "public/images"
public_folder: "/images"

collections:
  - name: "cases"
    label: "Cases (Projetos)"
    folder: "src/content/cases"
    create: true
    extension: "yml"
    format: "yml"
    slug: "{{key}}-{{locale}}"
    fields:
      - { label: "Chave", name: "key", widget: "string", required: true }
      - { label: "Título", name: "title", widget: "string", required: true }
      - { label: "Subtítulo", name: "subtitle", widget: "string" }
      - { label: "Descrição", name: "description", widget: "string" }
      - { label: "Ano", name: "year", widget: "string" }
      - { label: "Tags", name: "tags", widget: "list", field: { label: "Tag", name: "tag", widget: "string" } }
      - { label: "Cor de destaque", name: "accentColor", widget: "color" }
      - { label: "Imagem principal", name: "image", widget: "image", media_folder: "../../../public/images/cases", public_folder: "/images/cases" }
      - { label: "Vídeo", name: "video", widget: "file", media_folder: "../../../public/videos/cases", public_folder: "/videos/cases", required: false, hint: "Envie um arquivo de vídeo (mp4 recomendado) ou cole uma URL (YouTube/Vimeo) usando 'Escolher URL'." }
      - label: "Blocos do Case (imagens e textos)"
        name: "blocks"
        widget: "list"
        collapsed: false
        fields:
          - { label: "Tipo", name: "type", widget: "select", options: ["image", "text", "video"], default: "image" }
          - { label: "Imagem", name: "src", widget: "image", media_folder: "../../../public/images/cases", public_folder: "/images/cases" }
          - { label: "Legenda (opcional)", name: "alt", widget: "string" }
          - { label: "Texto", name: "content", widget: "text" }
          - { label: "Largura", name: "span", widget: "select", options: [{ label: "Meia", value: "1" }, { label: "Linha inteira", value: "2" }], default: "1" }
          - { label: "Orientação", name: "orientation", widget: "select", options: [{ label: "Horizontal", value: "h" }, { label: "Vertical", value: "v" }], default: "h" }
          - { label: "Poster (vídeo)", name: "poster", widget: "image" }
      - { label: "Idioma", name: "locale", widget: "select", options: ["pt", "en"], default: "pt", required: true }
      - { label: "Ordem", name: "sort", widget: "number", default: 0 }

  - name: "services"
    label: "Serviços"
    folder: "src/content/services"
    create: true
    extension: "yml"
    format: "yml"
    slug: "{{key}}-{{locale}}"
    fields:
      - { label: "Chave", name: "key", widget: "string", required: true }
      - { label: "Título", name: "title", widget: "string", required: true }
      - { label: "Tags", name: "tags", widget: "list", field: { label: "Tag", name: "tag", widget: "string" } }
      - { label: "Descrição", name: "description", widget: "text", required: true }
      - { label: "Imagem", name: "image", widget: "image", media_folder: "../../../public/images/services", public_folder: "/images/services" }
      - { label: "Idioma", name: "locale", widget: "select", options: ["pt", "en"], default: "pt", required: true }
      - { label: "Ordem", name: "sort", widget: "number", default: 0 }

  - name: "clients"
    label: "Clientes"
    folder: "src/content/clients"
    create: true
    extension: "yml"
    format: "yml"
    slug: "{{key}}"
    fields:
      - { label: "Chave", name: "key", widget: "string", required: true }
      - { label: "Nome", name: "name", widget: "string", required: true }
      - { label: "Logo", name: "logo", widget: "image", media_folder: "../../../public/images/clients", public_folder: "/images/clients" }
      - { label: "Ordem", name: "sort", widget: "number", default: 0 }

  - name: "in_house"
    label: "Projetos In-House"
    folder: "src/content/in-house"
    create: true
    extension: "yml"
    format: "yml"
    slug: "{{key}}-{{locale}}"
    fields:
      - { label: "Chave", name: "key", widget: "string", required: true }
      - { label: "Título", name: "title", widget: "string", required: true }
      - { label: "Badge", name: "badge", widget: "string" }
      - { label: "Subtítulo", name: "subtitle", widget: "string" }
      - { label: "Descrição", name: "description", widget: "text" }
      - { label: "Imagem", name: "image", widget: "image", media_folder: "../../../public/images/in-house", public_folder: "/images/in-house" }
      - { label: "URL ao vivo", name: "liveUrl", widget: "string" }
      - { label: "Cor de destaque", name: "accentColor", widget: "color" }
      - { label: "Idioma", name: "locale", widget: "select", options: ["pt", "en"], default: "pt", required: true }
      - { label: "Ordem", name: "sort", widget: "number", default: 0 }

  - name: "site_settings"
    label: "Configurações do Site"
    folder: "src/content/site-settings"
    create: false
    extension: "yml"
    format: "yml"
    slug: "{{key}}"
    fields:
      - { label: "Chave", name: "key", widget: "hidden", default: "default" }
      - { label: "Instagram URL", name: "instagram", widget: "string" }
      - { label: "LinkedIn URL", name: "linkedin", widget: "string" }
      - { label: "Email", name: "email", widget: "string" }
      - { label: "Telefone", name: "phone", widget: "string" }
      - { label: "WhatsApp URL", name: "whatsapp", widget: "string" }
      - { label: "Imagem Hero", name: "heroBackground", widget: "image", media_folder: "../../../public/images", public_folder: "/images" }
      - { label: "Imagem CTA", name: "ctaBackground", widget: "image", media_folder: "../../../public/images", public_folder: "/images" }
      - { label: "Foto Retrato", name: "aboutPortrait", widget: "image", media_folder: "../../../public/images", public_folder: "/images" }
      - { label: "Foto Estúdio", name: "aboutStudio", widget: "image", media_folder: "../../../public/images", public_folder: "/images" }
      - { label: "Música de fundo", name: "music", widget: "file", media_folder: "../../../public/audio", public_folder: "/audio", required: false, hint: "Envie um arquivo de áudio (mp3 recomendado) para tocar como música de fundo do site." }

  - name: "ui_texts"
    label: "Textos Editáveis"
    folder: "src/content/ui-texts"
    create: true
    extension: "yml"
    format: "yml"
    slug: "{{key}}"
    fields:
      - { label: "Chave", name: "key", widget: "string", required: true }
      - { label: "Texto PT", name: "pt", widget: "text" }
      - { label: "Texto EN", name: "en", widget: "text" }

  - name: "blog"
    label: "Blog"
    folder: "src/content/blog"
    create: true
    extension: "md"
    format: "frontmatter"
    slug: "{{slug}}-{{locale}}"
    fields:
      - { label: "Título", name: "title", widget: "string", required: true }
      - { label: "Slug (URL)", name: "slug", widget: "string", required: true }
      - { label: "Resumo", name: "excerpt", widget: "text" }
      - { label: "Imagem de capa", name: "coverImage", widget: "image", media_folder: "../../../public/images/blog", public_folder: "/images/blog" }
      - { label: "Data", name: "date", widget: "datetime" }
      - { label: "Tags", name: "tags", widget: "list", field: { label: "Tag", name: "tag", widget: "string" } }
      - { label: "Idioma", name: "locale", widget: "select", options: ["pt", "en"], default: "pt", required: true }
      - { label: "Publicado", name: "published", widget: "boolean", default: false }
      - { label: "Conteúdo", name: "body", widget: "markdown" }
