Skip to content

Commit b327a9d

Browse files
authored
Merge pull request #28 from python-chile/init_2025
Versión 1.0.0: Mejoras de UI responsive y configuración de entorno
2 parents 6929141 + 3160fe7 commit b327a9d

33 files changed

+1138
-400
lines changed

.gitignore

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Dependencies
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
24
/node_modules
35
/.pnp
46
.pnp.*
@@ -8,37 +10,37 @@
810
!.yarn/releases
911
!.yarn/versions
1012

11-
# Testing
13+
# testing
1214
/coverage
1315

14-
# Next.js build files
16+
# next.js
1517
/.next/
16-
./out/
18+
/out/
1719

18-
# Production build
20+
# production
1921
/build
2022

21-
# Miscellaneous
23+
# misc
2224
.DS_Store
2325
*.pem
2426

25-
# Debug logs
27+
# debug
2628
npm-debug.log*
2729
yarn-debug.log*
2830
yarn-error.log*
2931
.pnpm-debug.log*
3032

31-
# Environment files (opt-in for committing if needed)
32-
/.env*
33+
# env files (can opt-in for committing if needed)
34+
.env*
3335

34-
# Vercel deployment settings
35-
/.vercel
36+
# vercel
37+
.vercel
3638

37-
# TypeScript cache
39+
# typescript
3840
*.tsbuildinfo
3941
next-env.d.ts
4042

41-
# Firebase configuration
42-
/.firebase
43-
/.firebaserc
44-
firebase-config.js
43+
# firebase
44+
.firebase/
45+
.firebaserc
46+
firebase-config.js

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,65 @@ pyday-frontend/
8888
- `[email protected]`: Utility-first CSS
8989
- `[email protected]`: 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

93152
We 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-
158+

env.local.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#Crear un .env.local con la data necesaria.
2+
NEXT_PUBLIC_SITE_URL=
3+
NEXT_PUBLIC_FEATURE_REGISTRATION=
4+
NEXT_PUBLIC_FEATURE_SPONSOR_FORM=
5+
NEXT_PUBLIC_FEATURE_SPONSORS=

next.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
output: 'export',
43
transpilePackages: ["framer-motion"],
54
trailingSlash: true,
65
images: {
@@ -18,7 +17,7 @@ const nextConfig = {
1817
formats: ["image/webp"],
1918
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
2019
minimumCacheTTL: 86400,
21-
unoptimized: true,
20+
unoptimized: false,
2221
},
2322
};
2423

package.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
{
2-
"name": "pyday2-2025",
3-
"version": "0.1.0",
2+
"name": "pydaydotcl",
3+
"version": "1.0.0",
4+
"description": "PyDay Chile 2025 - Evento anual gratuito que reúne a la comunidad Python en distintas ciudades de Chile.",
45
"private": true,
6+
"author": "María-Fernanda [email protected]",
7+
"contributors": [
8+
"Liliana Garmendia [email protected]"
9+
],
10+
"keywords": [
11+
"Python",
12+
"Chile",
13+
"PyDay",
14+
"evento",
15+
"comunidad",
16+
"talleres",
17+
"charlas",
18+
"networking"
19+
],
20+
"homepage": "https://pyday.cl",
21+
"repository": {
22+
"type": "git",
23+
"url": "git+https://github.com/python-chile/PyDay"
24+
},
25+
"bugs": {
26+
"url": "https://github.com/python-chile/PyDay/issues"
27+
},
28+
"license": "MIT",
529
"scripts": {
630
"dev": "next dev --turbopack",
731
"build": "next build",
8-
"export": "next output",
32+
"export": "next export",
933
"start": "next start",
1034
"lint": "next lint",
1135
"clean-build": "rd /s /q .next && npm run build && xcopy /E /I public\\images .next\\static\\images"

public/images/404status_transp.svg

Lines changed: 1 addition & 0 deletions
Loading
351 KB
Loading

0 commit comments

Comments
 (0)