Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/gcsconsultores/gcs-website/llms.txt

Use this file to discover all available pages before exploring further.

The GCS Insights section (<Insights />, located at components/sections/Insights/insights.tsx) is the editorial hub of the website. It presents three types of content in a unified layout: articles in a Swiper carousel on the left, a news sidebar on the right, and a multimedia grid below. All content is declared as static TypeScript arrays in a single data file — components/sections/Insights/insight-data.ts — so adding or updating content requires no JSX edits. The homepage shows only items flagged with home_destacado: true (articles) or publicado_home: true (multimedia), and pinned articles always sort first.

Data File Location

components/sections/Insights/insight-data.ts

Articles (articlesData)

Three articles are currently defined. Each article object carries the following fields:
// Example article object
{
  id: 1,
  categoria: 'calidad',           // Internal category slug
  slug: 'su-empresa-gestiona-calidad', // URL segment for /insights/[slug]
  tag: 'CALIDAD',                 // Displayed badge on the card
  title: '¿Su empresa gestiona la calidad... o solo administra documentos?',
  excerpt: 'Las brechas que están definiendo la competitividad empresarial.',
  readTime: '4 min lectura',
  image: '/Insights/calidad-img.jpeg',  // Hero image path (empty string = no image)
  home_destacado: true,           // true → included in homepage carousel
  is_pinned: true,                // true → sorted first among home_destacado items
  fecha_publicacion: '2026-07-10T10:00:00Z' // ISO 8601 timestamp for sort order
}

Current Articles

IDTagTitleRead timeHome?Pinned?Published
1CALIDAD¿Su empresa gestiona la calidad… o solo administra documentos?4 min2026-07-10
2COMPLIANCESARLAFT: Más cumplimiento, inteligencia empresarial6 min2026-07-05
3SSTNueva normativa SST 20263 min2026-07-12
// Full articlesData array from insight-data.ts
export const articlesData = [
  {
    id: 1,
    categoria: 'calidad',
    slug: 'su-empresa-gestiona-calidad',
    tag: 'CALIDAD',
    title: '¿Su empresa gestiona la calidad... o solo administra documentos?',
    excerpt: 'Las brechas que están definiendo la competitividad empresarial.',
    readTime: '4 min lectura',
    image: '/Insights/calidad-img.jpeg',
    home_destacado: true,
    is_pinned: true,
    fecha_publicacion: '2026-07-10T10:00:00Z'
  },
  {
    id: 2,
    categoria: 'compliance',
    slug: 'sarlaft-mas-cumplimiento',
    tag: 'COMPLIANCE',
    title: 'SARLAFT: Más cumplimiento, inteligencia empresarial',
    excerpt: 'Transforme su sistema en una ventaja competitiva real',
    readTime: '6 min lectura',
    image: '/Insights/compliance-img.jpeg',
    home_destacado: true,
    is_pinned: false,
    fecha_publicacion: '2026-07-05T10:00:00Z'
  },
  {
    id: 3,
    categoria: 'seguridad',
    slug: 'nueva-normativa-sst',
    tag: 'SST',
    title: 'Nueva normativa SST 2026',
    excerpt: 'Lo que debe saber para evitar sanciones.',
    readTime: '3 min lectura',
    image: '',
    home_destacado: false,
    is_pinned: false,
    fecha_publicacion: '2026-07-12T10:00:00Z'
  }
]

News Items (newsData)

Two regulatory news items feed the sidebar panel rendered by <NewsSidebar />:
// Full newsData array from insight-data.ts
export const newsData = [
  {
    id: 1,
    slug: 'iso-9001-2026-cambios',
    date: 'Mayo 2026',
    fecha_publicacion: '2026-05-15T10:00:00Z',
    title: 'ISO 9001:2026 — Cambios clave que su empresa debe conocer antes de la transición',
    icon: '/Insights/news-1.png'
  },
  {
    id: 2,
    slug: 'sic-amplia-inspecciones',
    date: 'Abr 2026',
    fecha_publicacion: '2026-04-20T10:00:00Z',
    title: 'SIC amplía inspecciones a empresas medianas en Bogotá: ¿está preparado?',
    icon: '/Insights/news-2.png'
  }
]

Multimedia Items (multimediaData)

Three multimedia items are defined — one image and two videos — rendered by <MultimediaGrid /> below the article carousel and news sidebar:
IDTypeSourcePosterLabel / TitleVertical?Published home?
1image/Insights/reporte-anual.jpeg
2video/sandra-video.mp4/poster-entrevista.jpg1 de marzo al 31 de julio de 2026
3video/resolucion-video.mp4/poster-resolucion.jpgResolución 3461 de 2025 – Parte II: Nuevo rol del Comité de Convivencia
// Full multimediaData array from insight-data.ts
export const multimediaData = [
  {
    id: 1,
    type: 'image',
    src: '/Insights/reporte-anual.jpeg',
    alt: 'Reporte Anual SST',
    publicado_home: true,
    fecha_publicacion: '2026-07-01T10:00:00Z'
  },
  {
    id: 2,
    type: 'video',
    src: '/sandra-video.mp4',
    poster: '/poster-entrevista.jpg',
    label: '1 de marzo al 31 de julio de 2026',
    publicado_home: true,
    fecha_publicacion: '2026-06-15T10:00:00Z',
    isVertical: true
  },
  {
    id: 3,
    type: 'video',
    src: '/resolucion-video.mp4',
    poster: '/poster-resolucion.jpg',
    title: 'Resolución 3461 de 2025 – Parte II: Nuevo rol del Comité de Convivencia',
    publicado_home: true,
    fecha_publicacion: '2026-06-10T10:00:00Z',
    isVertical: false
  }
]
The isVertical flag on video items signals to <MultimediaGrid /> that the video should be rendered in a portrait/vertical aspect ratio, which is the correct treatment for mobile-captured footage.

Content Visibility Flags

home_destacado (articles)

Controls whether an article appears in the homepage carousel. The <Insights /> component filters the article list with:
let displayArticles = articlesData.filter(a => a.home_destacado)

// Fallback: if no articles are flagged, show all of them
if (displayArticles.length === 0) {
  displayArticles = [...articlesData]
}
Set home_destacado: false on an article to keep it in the data file (available for the full insights listing page) without showing it on the homepage.

is_pinned (articles)

Controls sort order within the home_destacado subset. Pinned items always appear first; among non-pinned items, sort order falls back to fecha_publicacion descending (newest first):
displayArticles.sort((a, b) => {
  if (a.is_pinned && !b.is_pinned) return -1
  if (!a.is_pinned && b.is_pinned) return 1
  return new Date(b.fecha_publicacion).getTime() - new Date(a.fecha_publicacion).getTime()
})

// Homepage shows a maximum of 2 articles
displayArticles = displayArticles.slice(0, 2)

publicado_home (multimedia)

Controls whether a multimedia item is rendered in <MultimediaGrid /> on the homepage. Set to false to draft a video or image without showing it publicly.

Frequently Asked Questions

Append a new object to the articlesData array in components/sections/Insights/insight-data.ts. Provide a unique id, a URL-safe slug, and a valid ISO 8601 fecha_publicacion timestamp. To show it on the homepage, set home_destacado: true. To have it appear before other articles, also set is_pinned: true. Place the article’s hero image in /public/Insights/ and reference it in the image field.
Set home_destacado: true on the article object in articlesData. The homepage carousel shows a maximum of two articles — if more than two are flagged, only the two with the highest sort priority (pinned first, then newest by fecha_publicacion) will be shown. To guarantee a specific article appears first, set is_pinned: true on it and is_pinned: false on all others.
Append a new object to the multimediaData array with type: 'video', a src path pointing to a video file in /public/, a poster path for the thumbnail frame, and publicado_home: true. If the video was recorded in portrait orientation, set isVertical: true so the multimedia grid renders it with the correct aspect ratio.

All three data arrays — articlesData, newsData, and multimediaData — live in components/sections/Insights/insight-data.ts. Editing this single file is the only step needed to add, remove, or update any Insights content on the website.

Build docs developers (and LLMs) love