Skip to content
techmelyPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Giữ Khoảng Cách AI — Landing page

Trang tĩnh (HTML/CSS/JS thuần, không build) để deploy lên GitHub Pages. Form đăng ký dùng thử gửi về Telegram qua một Cloudflare Worker nhỏ (token bot không nằm trên trang).

index.html  styles.css  main.js  config.js   # trang
assets/                                      # icon, og image
worker/                                      # Cloudflare Worker -> Telegram

Chạy thử local

python3 -m http.server 8080   # rồi mở http://localhost:8080

Khi SIGNUP_ENDPOINT còn trống, form chạy chế độ demo (không gửi đi đâu, log payload ra console).

Deploy GitHub Pages

Repo → Settings → Pages → Source: Deploy from a branch → main / (root). File .nojekyll đã có sẵn.

Kết nối Telegram

  1. Chat với @BotFather → /newbot → lấy bot token.
  2. Nhắn bất kỳ tin nào cho bot (hoặc thêm bot vào group và nhắn trong group).
  3. Mở https://api.telegram.org/bot<TOKEN>/getUpdates → lấy chat.id (group thường là số âm).
  4. Deploy Worker:
    cd worker
    npx wrangler login
    # sửa ALLOWED_ORIGIN trong wrangler.toml cho đúng domain Pages của bạn
    npx wrangler secret put TELEGRAM_BOT_TOKEN
    npx wrangler secret put TELEGRAM_CHAT_ID
    npx wrangler deploy
  5. Copy URL Worker (https://vdash-signup.<tên>.workers.dev) vào SIGNUP_ENDPOINT trong config.js, commit & push.

Test nhanh:

curl -X POST https://vdash-signup.<tên>.workers.dev \
  -H "Origin: https://techmely.github.io" \
  -d '{"name":"Test","contact":"0900000000","os":"Android"}'

Cập nhật sau

  • Link Google Play: điền PLAY_STORE_URL trong config.js → mọi nút CTA tự đổi thành "Tải trên Google Play".
  • Email hỗ trợ: SUPPORT_EMAIL trong config.js.
  • Thông tin gửi về Telegram: thêm/bớt <input> trong form (index.html), thêm trường vào payload (main.js) và dòng tương ứng trong worker/telegram-worker.js.
  • Chính sách quyền riêng tư: đăng bản chính thức (hiện mới có PRIVACY_POLICY_VI_DRAFT.md ở repo app) rồi thêm link vào footer; Play Console cũng cần URL này.
  • Ảnh thật: thay HUD minh hoạ bằng screenshot chụp từ điện thoại thật khi bản app ổn định.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages