Skip to content

docs: add react native paradise banner #3334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 14, 2025
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
6 changes: 3 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ const config = {
},
],
},
// State of React Native survey banner
// React Native Paradise banner
announcementBar: {
id: 'state-of-react-native-2024',
id: 'react-native-paradise-2025',
content: ' ',
backgroundColor: '#b1dfd0',
backgroundColor: '#fff5f7',
textColor: '#001a72',
},
footer: {
Expand Down
12 changes: 6 additions & 6 deletions docs/src/theme/AnnouncementBar/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ export default function AnnouncementBarContent(props) {
<div className={clsx(styles.content, props.className)}>
<img
className={styles.logo}
src={useBaseUrl('/img/state-of-react-native-logo.svg')}
alt="State of React Native logo"
src={useBaseUrl('/img/react-native-paradise.svg')}
alt="React Native Paradise logo"
/>
<strong className={styles.headline}>State of React Native 2024</strong>
<strong className={styles.headline}>React Native Paradise</strong>
<p className={styles.subText}>
Have a few minutes and want to shape the future of React Native?
Join us for one week of workshops hosted by React Native experts!
</p>
<a
className={styles.link}
href="https://survey.stateofreactnative.com/"
href="https://paradise.swmansion.com/"
target="_blank"
rel="noreferrer noopener">
<span className={styles.linkTitle}>Fill out the survey now!</span>
<span className={styles.linkTitle}>Check the details</span>
<div className={styles.linkArrowContainer}>
<ArrowButton className={styles.linkArrow} />
</div>
Expand Down
10 changes: 6 additions & 4 deletions docs/src/theme/AnnouncementBar/Content/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,26 @@ a.link {
grid-area: link;
margin-left: auto;
margin-right: 64px;
border-radius: 4px;
text-transform: uppercase;
}

.linkTitle {
color: var(--swm-white);
font-weight: 500;
font-weight: bold;
text-wrap: nowrap;
transition: all 0.2s ease-in-out;
}

.link:hover {
background-color: var(--swm-white);
border-color: var(--swm-navy-light-100);
background-color: var(--swm-blue-light-100);
border-color: var(--swm-blue-light-100);
text-decoration: none;
}

.link:hover .linkTitle,
.link:hover .linkArrow {
color: var(--swm-navy-light-100);
color: var(--swm-white);
}

.linkArrow {
Expand Down
6 changes: 3 additions & 3 deletions docs/src/theme/AnnouncementBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ function AnnouncementBar() {
return null;
}

// hide announcement bar at the end of the State of React Native survey
// hide announcement bar after 14.02.2025
const today = new Date();
const endOfStateOfReactNative = new Date('2025-01-08T00:00:00.000Z');
if (today > endOfStateOfReactNative) {
const hideAfter = new Date('2025-02-14T00:00:00.000Z');
if (today > hideAfter) {
return null;
}

Expand Down
5 changes: 5 additions & 0 deletions docs/static/img/react-native-paradise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading