from pathlib import Path import zipfile, textwrap base = Path("/mnt/data/fsp_customer_portal") base.mkdir(parents=True, exist_ok=True) html = r''' Financial Support Philippines | Customer Portal
FINANCIAL SUPPORT PHILIPPINES
Customer Portal · Loan application and account access

Support for your financial goals.

Register your account, estimate a monthly installment, and submit a loan application for review by our team.

Customer registration

Use at least 10 characters. Your information should be submitted only through the secured, production version of this service.

Preview only: this page is not connected to a live database or secure authentication yet. Do not enter real personal, financial, or password information.
''' (base / "index.html").write_text(html, encoding="utf-8") readme = """Financial Support Philippines — Customer Portal Preview Contains index.html for Cloudflare Pages static upload. IMPORTANT: This is a UI preview only. It does NOT store or send registration data, does not implement real login, and is not production-ready for personal/financial data. Before launch, connect a secure backend and PostgreSQL/Supabase with Row Level Security, verified email authentication, server-side validation, and admin-only approval permissions. Cloudflare Pages: 1. Create a project named fsp-customer-portal. 2. Upload the extracted folder contents (index.html at the root). 3. Deploy. """ (base / "README.txt").write_text(readme, encoding="utf-8") zip_path = Path("/mnt/data/fsp_customer_portal_preview.zip") with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as z: for f in base.iterdir(): z.write(f, arcname=f.name) print(f"Created {zip_path} ({zip_path.stat().st_size} bytes)")