Static corporate website for Hotnest Technology, rebuilt with Astro using hand-written CSS for broad browser compatibility.
- Astro 6 — static HTML output, minimal JavaScript
- Plain CSS — no Tailwind; Autoprefixer for vendor prefixes
- ES5 site script — header scroll, mobile nav, fade-in animations
- Deploy — Cloudflare Pages (build:
npm run build, output:dist)
Primary target: Firefox 78.15.0 ESR on macOS 10.9.5. CSS uses flexbox, transforms, and transitions; no :has(), scroll-driven CSS, or View Transitions. See COMPATIBILITY.md for GSAP vs CSS notes.
npm install
bash scripts/download-images.sh # fetch assets from Wix CDN (one-time)
npm run devnpm run build
npm run preview| Setting | Value |
|---|---|
| Build command | npm run build |
| Output directory | dist |
| Node version | 22 |
Connect your GitHub repository in the Cloudflare Pages dashboard and bind www.hotnest.net after preview approval.
src/
components/ # Reusable Astro components
data/ # Content (navigation, stats, partners, timeline)
layouts/ # BaseLayout
pages/ # Routes
styles/ # Global CSS
public/
images/ # Static images (after download script)
scripts/ # site.js (ES5)