Build a navigation with an announcement bar in Tailwind CSS: a thin full-width bar above the header carrying a short announcement with an inline link, and a close button at its right end. Dismissing the bar slides it up and shifts the header to the top, with the choice remembered for the session. Use a tinted background rather than a loud solid color, and keep the announcement to one line on desktop.
提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。