@@ -88,6 +88,65 @@ pyday-frontend/
8888- ` tailwindcss@4.1 ` : Utility-first CSS
8989- ` framer-motion@10.16.0 ` : Smooth animations
9090
91+
92+ ## 🚦 Feature Management
93+
94+ Controla la visibilidad de funcionalidades mediante variables de entorno:
95+
96+ ``` env
97+ # .env.local
98+ NEXT_PUBLIC_FEATURE_REGISTRATION="false" # Formulario de registro general
99+ NEXT_PUBLIC_FEATURE_SPONSORS="true" # Sección completa de patrocinios
100+ NEXT_PUBLIC_FEATURE_SPONSOR_FORM="false" # Formulario de patrocinio específico
101+ ```
102+
103+ ### Variables Disponibles
104+ | Variable | Descripción | Valores Válidos |
105+ | -----------------------------------| ----------------------------------------------| -----------------|
106+ | ` NEXT_PUBLIC_FEATURE_REGISTRATION ` | Habilita formulario de registro principal | ` true ` /` false ` |
107+ | ` NEXT_PUBLIC_FEATURE_SPONSORS ` | Muestra sección completa de patrocinios | ` true ` /` false ` |
108+ | ` NEXT_PUBLIC_FEATURE_SPONSOR_FORM ` | Activa formulario de contacto para patrocinios | ` true ` /` false ` |
109+
110+ ### Flujo de Trabajo Recomendado
111+ 1 . ** Configurar variables** en ` .env.local ` (usar ` true ` /` false ` )
112+ 2 . ** Reiniciar servidor** después de cambios
113+ 3 . ** Los CTAs alternativos** se mostrarán automáticamente cuando:
114+ - Una funcionalidad está deshabilitada (` false ` )
115+ - Existe un link externo configurado en ` cityData.js `
116+
117+ ### Para Links Externos
118+ ``` javascript
119+ // Ejemplo en src/data/cities.js
120+ valparaiso: {
121+ talkProposalLink: " https://..." // URL válida habilita CTA automático
122+ }
123+ ```
124+
125+ ** Nota:** Los botones alternativos (CTAs) se muestran solo cuando:
126+ - La variable correspondiente está en ` false `
127+ - Existe un link configurado en los datos de la ciudad
128+
129+ ** Cambios realizados:**
130+ 1 . Sección dedicada a gestión de features
131+ 2 . Tabla clara de variables
132+ 3 . Explicación del comportamiento automático
133+ 4 . Ejemplo práctico de configuración
134+ 5 . Guía visual para no técnicos
135+
136+
137+ ** Version final del archivo .env.local:**
138+ ``` env
139+ # CONFIGURACIÓN DE FUNCIONALIDADES
140+ # Valores permitidos: "true" (activado) | "false" (desactivado)
141+
142+ NEXT_PUBLIC_FEATURE_REGISTRATION="false"
143+ NEXT_PUBLIC_FEATURE_SPONSORS="true"
144+ NEXT_PUBLIC_FEATURE_SPONSOR_FORM="false"
145+
146+ # URL BASE DEL SITIO (no modificar en desarrollo)
147+ NEXT_PUBLIC_SITE_URL="http://localhost:3000"
148+ ```
149+
91150## 🌍 Contributing
92151
93152We welcome community contributions! Please see our [ Contribution Guidelines] ( docs/CONTRIBUTING.md ) and review our [ Photography Style Guide] ( docs/guia-fotografia.md ) for asset submissions.
@@ -96,4 +155,4 @@ We welcome community contributions! Please see our [Contribution Guidelines](doc
96155
97156** License** : Apache 2.0 (See [ LICENSE] ( LICENSE ) )
98157** Maintainer** : PyDay Chile Tech Committee
99- 📧 * pyday@pythonchile.cl *
158+ 📧 * pyday@pythonchile.cl *
0 commit comments