Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Dependencies
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
Expand All @@ -8,37 +10,37 @@
!.yarn/releases
!.yarn/versions

# Testing
# testing
/coverage

# Next.js build files
# next.js
/.next/
./out/
/out/

# Production build
# production
/build

# Miscellaneous
# misc
.DS_Store
*.pem

# Debug logs
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# Environment files (opt-in for committing if needed)
/.env*
# env files (can opt-in for committing if needed)
.env*

# Vercel deployment settings
/.vercel
# vercel
.vercel

# TypeScript cache
# typescript
*.tsbuildinfo
next-env.d.ts

# Firebase configuration
/.firebase
/.firebaserc
firebase-config.js
# firebase
.firebase/
.firebaserc
firebase-config.js
61 changes: 60 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,65 @@ pyday-frontend/
- `tailwindcss@4.1`: Utility-first CSS
- `framer-motion@10.16.0`: Smooth animations


## 🚦 Feature Management

Controla la visibilidad de funcionalidades mediante variables de entorno:

```env
# .env.local
NEXT_PUBLIC_FEATURE_REGISTRATION="false" # Formulario de registro general
NEXT_PUBLIC_FEATURE_SPONSORS="true" # Sección completa de patrocinios
NEXT_PUBLIC_FEATURE_SPONSOR_FORM="false" # Formulario de patrocinio específico
```

### Variables Disponibles
| Variable | Descripción | Valores Válidos |
|-----------------------------------|----------------------------------------------|-----------------|
| `NEXT_PUBLIC_FEATURE_REGISTRATION` | Habilita formulario de registro principal | `true`/`false` |
| `NEXT_PUBLIC_FEATURE_SPONSORS` | Muestra sección completa de patrocinios | `true`/`false` |
| `NEXT_PUBLIC_FEATURE_SPONSOR_FORM` | Activa formulario de contacto para patrocinios | `true`/`false` |

### Flujo de Trabajo Recomendado
1. **Configurar variables** en `.env.local` (usar `true`/`false`)
2. **Reiniciar servidor** después de cambios
3. **Los CTAs alternativos** se mostrarán automáticamente cuando:
- Una funcionalidad está deshabilitada (`false`)
- Existe un link externo configurado en `cityData.js`

### Para Links Externos
```javascript
// Ejemplo en src/data/cities.js
valparaiso: {
talkProposalLink: "https://..." // URL válida habilita CTA automático
}
```

**Nota:** Los botones alternativos (CTAs) se muestran solo cuando:
- La variable correspondiente está en `false`
- Existe un link configurado en los datos de la ciudad

**Cambios realizados:**
1. Sección dedicada a gestión de features
2. Tabla clara de variables
3. Explicación del comportamiento automático
4. Ejemplo práctico de configuración
5. Guía visual para no técnicos


**Version final del archivo .env.local:**
```env
# CONFIGURACIÓN DE FUNCIONALIDADES
# Valores permitidos: "true" (activado) | "false" (desactivado)

NEXT_PUBLIC_FEATURE_REGISTRATION="false"
NEXT_PUBLIC_FEATURE_SPONSORS="true"
NEXT_PUBLIC_FEATURE_SPONSOR_FORM="false"

# URL BASE DEL SITIO (no modificar en desarrollo)
NEXT_PUBLIC_SITE_URL="http://localhost:3000"
```

## 🌍 Contributing

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.
Expand All @@ -96,4 +155,4 @@ We welcome community contributions! Please see our [Contribution Guidelines](doc

**License**: Apache 2.0 (See [LICENSE](LICENSE))
**Maintainer**: PyDay Chile Tech Committee
📧 *pyday@pythonchile.cl*
📧 *pyday@pythonchile.cl*
5 changes: 5 additions & 0 deletions env.local.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Crear un .env.local con la data necesaria.
NEXT_PUBLIC_SITE_URL=
NEXT_PUBLIC_FEATURE_REGISTRATION=
NEXT_PUBLIC_FEATURE_SPONSOR_FORM=
NEXT_PUBLIC_FEATURE_SPONSORS=
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
transpilePackages: ["framer-motion"],
trailingSlash: true,
images: {
Expand All @@ -18,7 +17,7 @@ const nextConfig = {
formats: ["image/webp"],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
minimumCacheTTL: 86400,
unoptimized: true,
unoptimized: false,
},
};

Expand Down
30 changes: 27 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
{
"name": "pyday2-2025",
"version": "0.1.0",
"name": "pydaydotcl",
"version": "1.0.0",
"description": "PyDay Chile 2025 - Evento anual gratuito que reúne a la comunidad Python en distintas ciudades de Chile.",
"private": true,
"author": "María-Fernanda marifer.villalobos@pythonchile.cl",
"contributors": [
"Liliana Garmendia liliana.garmendia@pythonchile.cl"
],
"keywords": [
"Python",
"Chile",
"PyDay",
"evento",
"comunidad",
"talleres",
"charlas",
"networking"
],
"homepage": "https://pyday.cl",
"repository": {
"type": "git",
"url": "git+https://github.com/python-chile/PyDay"
},
"bugs": {
"url": "https://github.com/python-chile/PyDay/issues"
},
"license": "MIT",
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"export": "next output",
"export": "next export",
"start": "next start",
"lint": "next lint",
"clean-build": "rd /s /q .next && npm run build && xcopy /E /I public\\images .next\\static\\images"
Expand Down
1 change: 1 addition & 0 deletions public/images/404status_transp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/campus/Inacap_Copiapo.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading