feat: простой браузерный счётчик в серо‑солнечных тонах - #3
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a30aa16691
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| counterValue.textContent = value; | ||
| counterValue.classList.remove('counter__value--pulse'); | ||
| void counterValue.offsetWidth; | ||
| counterValue.classList.add('counter__value--pulse'); |
There was a problem hiding this comment.
Clear pulse state after rendering
The pulse effect is applied with counter__value--pulse on every render but never removed afterward, so after the initial renderCounter() call the value remains permanently scaled/colored instead of briefly pulsing on updates. This makes the UI stay in the highlighted state and prevents a true pulse cycle on each increment/decrement/reset.
Useful? React with 👍 / 👎.
Motivation
Description
index.html: добавлена разметка счётчика с заголовком, значением (id="counterValue") и кнопками−,Сброс,+.script.js: удалена логика Tetris и добавлена логика счётчика (увеличение, уменьшение, сброс) и простая pulse‑анимация при обновлении значения.style.css: добавлена тема в серых и тёплых солнечных тонах, плавные градиенты, карточка и стили кнопок с hover/active эффектами.aria-live="polite"для озвучивания изменений.Testing
npm test, тестовая команда проекта выводит заглушку and завершилась успешно.Codex Task