VERANO ESTATE

Formulario de Información de Huéspedes

by Chef Franko

Información de WiFi

1 Información Básica

2 Transporte del Aeropuerto

3 Información de Estadía y Habitaciones

¿Prefiere pre-asignar habitaciones y registrar llegadas individuales?

4 Servicios Adicionales

¿Servicio de Comida Domingos?

¿Servicio de Limpieza Domingos?

5 Actividades Especiales

Marque si desea información o pre-reservar:

6 Provisiones y Bebidas

Costo de artículos + servicio se agrega a su cuenta.

# publish-ghpages.ps1 # Ejecutar desde la carpeta con Untitled-1.html # Lectura interactiva de variables $defaultRepo = 'pos-crema' $repoName = Read-Host "Nombre del repo en GitHub (enter = $defaultRepo)" if ([string]::IsNullOrWhiteSpace($repoName)) { $repoName = $defaultRepo } $githubUser = Read-Host "Tu nombre de usuario en GitHub (ej: aaron). Se usará para mostrar la URL" $gitUserEmail = Read-Host "Email para git (enter para omitir)" $visibility = Read-Host "Visibilidad del repo: 'public' o 'private' (enter = public)" if ([string]::IsNullOrWhiteSpace($visibility)) { $visibility = 'public' } # Configurar git user (opcional) if (-not [string]::IsNullOrWhiteSpace($gitUserEmail)) { git config --global user.email $gitUserEmail if (-not (git config --global user.name)) { git config --global user.name $env:USERNAME } } # Iniciar repo si hace falta if (-not (Test-Path .git)) { git init } # Asegurarse de que el archivo existe if (-not (Test-Path 'Untitled-1.html')) { Write-Error "No se encontró 'Untitled-1.html' en este directorio. Sitúate en la carpeta correcta y vuelve a ejecutar." exit 1 } # Añadir y commitear (sin modificar el contenido del archivo) git add 'Untitled-1.html' # Si no hay commits aún, hacer commit; si ya hay, crear commit solo si hay cambios try { git commit -m "Add Untitled-1.html" -a } catch { Write-Host "No hay cambios nuevos para commitear o ya existe un commit inicial." } # Comprobar gh $gh = Get-Command gh -ErrorAction SilentlyContinue if (-not $gh) { Write-Host "`nLa CLI 'gh' no está instalada. Intentando instalar vía winget (requiere permisos)..." -ForegroundColor Yellow try { winget install --id GitHub.cli -e --source winget } catch { Write-Warning "No se pudo instalar 'gh' automáticamente. Instálala manualmente: https://github.com/cli/cli#installation" exit 1 } } # Autenticación gh (interactiva) Write-Host "`nSe abrirá el flujo de autenticación de GitHub (gh auth login). Sigue las instrucciones." -ForegroundColor Cyan gh auth login # Crear el repo en GitHub y subir (usa --source=. --push para subir todo) Write-Host "`nCreando repositorio remoto y haciendo push..." -ForegroundColor Cyan gh repo create $repoName --$visibility --source=. --remote=origin --push # Asegurar que hay una rama main (si no, crearla y pushear) $branch = (git rev-parse --abbrev-ref HEAD) 2>$null if ($branch -ne 'main') { git branch -M main git push -u origin main } # Crear/activar GitHub Pages desde la rama main (root) Write-Host "`nActivando GitHub Pages (publicación desde main / root)..." -ForegroundColor Cyan # Intentar usar gh pages create; si falla, informar y dar instrucciones try { gh pages create --source main --branch main --path / } catch { Write-Warning "No se pudo activar Pages automáticamente con 'gh'. Abre: https://github.com/$githubUser/$repoName/settings/pages y selecciona 'main' en Branch y '/' como folder." } # Mostrar URL pública (si el repo es tipo usuario-site, la URL raíz, si no, URL con repo y ruta al archivo) if ($repoName -ieq "$githubUser.github.io") { $url = "https://$githubUser.github.io/" } else { $url = "https://$githubUser.github.io/$repoName/Untitled-1.html" } Write-Host "`nHe terminado los pasos. Espera unos minutos y abre la URL:" -ForegroundColor Green Write-Host $url Write-Host "`nSi no aparece, revisa en GitHub: Settings → Pages o Actions → 'Pages build and deployment' para errores."# publish-ghpages.ps1 # Ejecutar desde la carpeta con Untitled-1.html # Lectura interactiva de variables $defaultRepo = 'pos-crema' $repoName = Read-Host "Nombre del repo en GitHub (enter = $defaultRepo)" if ([string]::IsNullOrWhiteSpace($repoName)) { $repoName = $defaultRepo } $githubUser = Read-Host "Tu nombre de usuario en GitHub (ej: aaron). Se usará para mostrar la URL" $gitUserEmail = Read-Host "Email para git (enter para omitir)" $visibility = Read-Host "Visibilidad del repo: 'public' o 'private' (enter = public)" if ([string]::IsNullOrWhiteSpace($visibility)) { $visibility = 'public' } # Configurar git user (opcional) if (-not [string]::IsNullOrWhiteSpace($gitUserEmail)) { git config --global user.email $gitUserEmail if (-not (git config --global user.name)) { git config --global user.name $env:USERNAME } } # Iniciar repo si hace falta if (-not (Test-Path .git)) { git init } # Asegurarse de que el archivo existe if (-not (Test-Path 'Untitled-1.html')) { Write-Error "No se encontró 'Untitled-1.html' en este directorio. Sitúate en la carpeta correcta y vuelve a ejecutar." exit 1 } # Añadir y commitear (sin modificar el contenido del archivo) git add 'Untitled-1.html' # Si no hay commits aún, hacer commit; si ya hay, crear commit solo si hay cambios try { git commit -m "Add Untitled-1.html" -a } catch { Write-Host "No hay cambios nuevos para commitear o ya existe un commit inicial." } # Comprobar gh $gh = Get-Command gh -ErrorAction SilentlyContinue if (-not $gh) { Write-Host "`nLa CLI 'gh' no está instalada. Intentando instalar vía winget (requiere permisos)..." -ForegroundColor Yellow try { winget install --id GitHub.cli -e --source winget } catch { Write-Warning "No se pudo instalar 'gh' automáticamente. Instálala manualmente: https://github.com/cli/cli#installation" exit 1 } } # Autenticación gh (interactiva) Write-Host "`nSe abrirá el flujo de autenticación de GitHub (gh auth login). Sigue las instrucciones." -ForegroundColor Cyan gh auth login # Crear el repo en GitHub y subir (usa --source=. --push para subir todo) Write-Host "`nCreando repositorio remoto y haciendo push..." -ForegroundColor Cyan gh repo create $repoName --$visibility --source=. --remote=origin --push # Asegurar que hay una rama main (si no, crearla y pushear) $branch = (git rev-parse --abbrev-ref HEAD) 2>$null if ($branch -ne 'main') { git branch -M main git push -u origin main } # Crear/activar GitHub Pages desde la rama main (root) Write-Host "`nActivando GitHub Pages (publicación desde main / root)..." -ForegroundColor Cyan # Intentar usar gh pages create; si falla, informar y dar instrucciones try { gh pages create --source main --branch main --path / } catch { Write-Warning "No se pudo activar Pages automáticamente con 'gh'. Abre: https://github.com/$githubUser/$repoName/settings/pages y selecciona 'main' en Branch y '/' como folder." } # Mostrar URL pública (si el repo es tipo usuario-site, la URL raíz, si no, URL con repo y ruta al archivo) if ($repoName -ieq "$githubUser.github.io") { $url = "https://$githubUser.github.io/" } else { $url = "https://$githubUser.github.io/$repoName/Untitled-1.html" } Write-Host "`nHe terminado los pasos. Espera unos minutos y abre la URL:" -ForegroundColor Green Write-Host $url Write-Host "`nSi no aparece, revisa en GitHub: Settings → Pages o Actions → 'Pages build and deployment' para errores."