# CV Site - Go + HTMX **Modern, minimal curriculum vitae website** for Juan AndrΓ©s Moreno Rubio built with **Go** and **HTMX**. ## πŸš€ Features - βœ… **Bilingual Support** - Spanish and English with instant switching (no page reload) - βœ… **Server-Side PDF Export** - Professional PDF generation using chromedp (headless Chrome) - βœ… **Browser Print** - Alternative print-friendly layout for manual PDF creation - βœ… **HTMX Dynamic Updates** - Smooth UX without heavy JavaScript - βœ… **Paper Design** - Professional CV on elegant white paper with gray background - βœ… **Responsive** - Mobile, tablet, and desktop friendly - βœ… **JSON-Based Content** - Easy to update without touching code - βœ… **AI Development Section** - Showcases modern AI-assisted development skills - βœ… **Fast & Lightweight** - Go backend with chromedp for PDF generation ## πŸ“‹ Quick Start ### Prerequisites - **Go 1.21+** installed ### Run \`\`\`bash # Build and run go build -o cv-server && ./cv-server \`\`\` Open **http://localhost:1999** - πŸ‡¬πŸ‡§ English: http://localhost:1999/?lang=en - πŸ‡ͺπŸ‡Έ Spanish: http://localhost:1999/?lang=es ## πŸ“„ Updating Your CV Edit JSON files in `data/`: - **English**: `data/cv-en.json` - **Spanish**: `data/cv-es.json` No code changes needed - just refresh browser! ## πŸ–¨οΈ Export to PDF ### Server-Side PDF Generation (Recommended) 1. Click **"Download as PDF"** button in the action bar 2. PDF is generated server-side using headless Chrome 3. File downloads automatically: `CV-Juan-Andres-Moreno-Rubio-{lang}.pdf` **Advantages:** - Consistent rendering across all platforms - Perfect font rendering - No browser compatibility issues - Professional quality output ### Browser Print (Alternative) 1. Click **"Print Friendly"** button 2. Use browser print dialog (Cmd/Ctrl + P) 3. Select "Save as PDF" **Endpoints:** - English PDF: `http://localhost:1999/export/pdf?lang=en` - Spanish PDF: `http://localhost:1999/export/pdf?lang=es` ## 🎯 Key Technologies - Backend: **Go** (stdlib net/http) - PDF Generation: **chromedp** (headless Chrome automation) - Frontend: **HTMX** 1.9.10 - Styling: Custom **CSS** with Quicksand font - Data: **JSON** files --- **Built with ❀️ using Go, HTMX, and AI assistance**