Skip to content

Conversation

@pwizla
Copy link
Collaborator

@pwizla pwizla commented Oct 14, 2025

This PR is a variation of #2748 and adds a news ticker that sits at the top of the homepage, just below the top navigation bar.

The code consists in a new <NewsTicker /> component that can display several pieces of information. Each piece of information, configured in the newsTicker array of the _home.content.js file, includes an icon, a text, and a link.

The NewsTicker component display this information with the following characteristics:

  • The ticker changes every 5 seconds (configurable through the interval property) and display another information with a sliding animation
  • On hover, the information is highlighted using the main link color for the current mode (strapi-primary-600 for light mode and strapi-secondary-500 for dark mode)
  • The ticker is paused while an item is hovered
  • The ticker is responsive and should display nicely on mobile devices (breaking point: 996px)

While the default announcementBar from Docusaurus (purple banner above the top navigation bar) is disabled in the code of the present PR, we can still display it, as shown at the beginning of the following video demo:

news-ticker-demo.mov

Direct preview link 👉 here

@pwizla pwizla self-assigned this Oct 14, 2025
@pwizla pwizla added source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo pr: new content PRs for new product features or new documentation sections gemini PR generated with the help of Google Gemini labels Oct 14, 2025
@vercel
Copy link

vercel bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
documentation Ready Ready Preview Comment Oct 29, 2025 3:26pm
@pwizla pwizla added this to the 6.10.0 milestone Oct 14, 2025
@github-actions github-actions bot added the internal PRs created by the Strapi core team label Oct 14, 2025
@pwizla pwizla added the flag: don't merge This PR should not be merged at the moment label Oct 15, 2025
@pwizla pwizla changed the title [experimental] News ticker - alternate version Add a "News Ticker" to homepage Oct 21, 2025
@pwizla pwizla modified the milestones: 6.10.0, 6.9.5 Oct 21, 2025
@pwizla pwizla removed the flag: don't merge This PR should not be merged at the moment label Oct 29, 2025
@pwizla pwizla merged commit dfeae32 into main Oct 29, 2025
4 of 5 checks passed
@pwizla pwizla deleted the repo/news-ticker-v2-gemini branch October 29, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gemini PR generated with the help of Google Gemini internal PRs created by the Strapi core team pr: new content PRs for new product features or new documentation sections source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

1 participant