2.3 KiB
id, title, status, type, team, supporting_teams, roadmap_item, priority
| id | title | status | type | team | supporting_teams | roadmap_item | priority |
|---|---|---|---|---|---|---|---|
| TASK-233 | Add HLL Vietnam release countdown | done | frontend | Frontend Senior | foundation | medium |
TASK-233 - Add HLL Vietnam release countdown
Goal
Add a visible frontend-only countdown to the public home page for the Hell Let Loose Vietnam release date.
Context
The home page is frontend/index.html and it loads frontend/assets/js/main.js, not frontend/assets/js/index.js. The countdown should work without backend support and should not affect other pages if the markup is absent.
Files Read First
ai/architecture-index.mdai/repo-context.mdai/orchestrator/frontend-senior.mdfrontend/index.htmlfrontend/assets/js/main.jsfrontend/assets/css/styles.css
Expected Files Modified
frontend/index.htmlfrontend/assets/js/main.jsfrontend/assets/css/styles.css- this task file
Changes
- Added a semantic countdown block below the main trailer video.
- Added
data-hll-vietnam-countdownanddata-countdown-target. - Used target date
2026-08-13T00:00:00+02:00. - Added frontend-only countdown logic in
main.js. - Rendered days, hours, minutes and seconds every second.
- Stopped the interval when the target date is reached.
- Prevented negative values by clamping remaining time to zero.
- Added a final available state message:
Hell Let Loose Vietnam ya esta disponible. - Added responsive CSS integrated with the existing tactical panel style.
Design Decision
The countdown is placed below the video. This keeps it visually tied to the HLL Vietnam trailer while avoiding changes to the public hero or server sections.
Validation
Passed:
node --check frontend/assets/js/main.js
The implementation is guarded by if (!root) return;, so pages without the countdown block do not throw errors if they load the same JS.
Manual logic review:
- Target date parsed from
data-countdown-target. - Days, hours, minutes and seconds are calculated from remaining seconds.
- Values are clamped with
Math.max(0, ...). - After the target date, the UI shows the available message and the interval is cleared.
Outcome
The public home now shows a responsive countdown below the main video for 2026-08-13T00:00:00+02:00. No backend file or backend configuration was changed.