Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const config: Config = {
tagName: 'script',
attributes: {},
innerHTML: `try {
if (window.localStorage.getItem('code-genome-project-announcement-dismissed') === 'true') {
if (window.localStorage.getItem('ai-software-factory-27-announcement-dismissed') === 'true') {
document.documentElement.setAttribute('data-notice-bar-dismissed', 'true');
}
} catch (e) {}`,
Expand Down
16 changes: 9 additions & 7 deletions src/theme/AnnouncementBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from './styles.module.css';
// Mirrored by the head script in docusaurus.config.ts, which sets these attributes before
// hydration so nothing flashes. The key is specific to this notice, so new copy re-shows
// the bar to everyone.
const NOTICE_BAR_STORAGE_KEY = 'code-genome-project-announcement-dismissed';
const NOTICE_BAR_STORAGE_KEY = 'ai-software-factory-27-announcement-dismissed';
const NOTICE_BAR_DISMISSED_ATTRIBUTE = 'data-notice-bar-dismissed';

/**
Expand Down Expand Up @@ -60,12 +60,14 @@ function NoticeAnnouncementBar({onClose}: {onClose: () => void}): JSX.Element {
<div className={styles.noticeBar} role="banner">
<div className={styles.announcementBarPlaceholder} />
<div className={styles.noticeBarContent}>
<strong>Recipes are moving from Maven Central to the Code Genome
Project.</strong>{' '}
<Link to="/running-recipes/getting-started#step-2-add-rewrite-maven-plugin-or-rewrite-gradle-plugin-to-your-project">
Configure access
</Link>{' '}
to keep releases resolving.
Using OpenRewrite at work? Become an expert with hands-on training,
roundtables, and more at <strong>AI Software Factory Summit</strong>,
Feb. 22-24 in Miami. Save 50% on your pass with code{' '}
<strong>REWRITE50</strong>.{' '}
<Link href="https://dashboard.eventcombo.com/e/ai-software-factory-summit-2027-79906?discount=REWRITE50">
Register Now
</Link>
.
</div>
<AnnouncementBarCloseButton
onClick={onClose}
Expand Down
4 changes: 2 additions & 2 deletions src/theme/AnnouncementBar/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ html[data-notice-bar-dismissed='true'] .noticeBar {

@media (min-width: 997px) {
:root {
/* The bar's own height on desktop, where one line of copy always fits.
Below the breakpoint it stays `auto` and wraps. Nothing derives a layout
/* The bar's minimum height on desktop; longer copy wraps and grows it.
Below the breakpoint it stays `auto`. Nothing derives a layout
offset from this any more — Navbar/Layout measures the rendered header. */
--docusaurus-announcement-bar-height: 40px;
}
Expand Down
Loading