# Taobao HK Finds — EdgeZone Static Website

This is a fully static, EdgeZone-compatible version of the Taobao HK Finds website. It does **not** require Node.js, npm, a database, or a running backend.

Upload the contents of the `public` folder to your website’s public/root directory.

## Pages

- `index.html` — homepage
- `categories.html` — category directory
- `listings.html` — ranked listings with search, filters and sorting
- `guides.html` — shopping guides
- `advertise.html` — advertiser packages
- `about.html` — about page
- `admin.html` — browser-based listings manager

## Update listings

1. Open `admin.html` in your browser.
2. Add, edit or delete listings and categories.
3. Click **Download updated JSON**.
4. In EdgeZone, upload the downloaded file as:

```text
assets/site-data.json
```

5. Republish or clear cache if needed.
6. Refresh your live website.

The public website reads listings from:

```text
assets/site-data.json
```

## Important: upload location

Upload the **contents of `public/`**, not the `public` folder itself.

Correct structure:

```text
index.html
categories.html
listings.html
guides.html
advertise.html
about.html
admin.html
assets/style.css
assets/app.js
assets/data.js
assets/site-data.json
```

## Listings format

Each listing uses these fields:

```json
{
  "id": 1710000000000,
  "rank": 1,
  "name": "Product name",
  "cat": "Home & Storage",
  "price": "HK$149",
  "score": 9.2,
  "emoji": "🪑",
  "tag": "Best value",
  "image": "https://example.com/image.jpg",
  "url": "https://your-taobao-or-affiliate-link.com",
  "note": "Why it is good for Hong Kong expats.",
  "status": "published"
}
```

Use `"status": "draft"` to hide a listing from the public website.

## Advertisements

The pages include placeholder ad areas. Replace them with your approved EdgeZone/AdSense-compatible ad code once your domain and ad account are approved.

## Notes

- This version is ideal for static hosting.
- The admin page cannot directly save changes to the live server because static hosting does not allow browser-based file writes.
- Use the admin page to prepare changes, download `site-data.json`, then upload it through EdgeZone.
- For automatic in-browser saving, you would need a backend, database, or EdgeOne serverless function setup.
