mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
0df7ee430d
* feat: initial set up * feat: useFeature setup * feat: adjust attributes * chore(client): remove ts-disables in growth-book-wrapper * feat: pull growthbook uri from env * feat: adjust the staff atribute * feat: make linter happy * feat: update recruitment message * refactor: simplify types * chore: delete unused config * fix: update copy * fix: add growthbookUri to expected env vars Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
32 lines
1000 B
TypeScript
32 lines
1000 B
TypeScript
import React from 'react';
|
||
import { Alert, Button } from '@freecodecamp/react-bootstrap';
|
||
import { useFeature } from '@growthbook/growthbook-react';
|
||
|
||
const ResearchBannerx = (): JSX.Element | null => {
|
||
const feature = useFeature('show-research-recruitment-alert');
|
||
return feature.on ? (
|
||
<Alert>
|
||
<p>
|
||
<b>Launching Oct 19</b>: freeCodeCamp is teaming up with researchers
|
||
from Stanford and UPenn to study how to help people build strong coding
|
||
habits.
|
||
</p>
|
||
<p style={{ marginBottom: 20, marginTop: 14 }}>
|
||
Would you like to get involved? You’ll get free coaching from our
|
||
scientists.
|
||
</p>
|
||
<div style={{ display: 'flex', justifyContent: 'center' }}>
|
||
<Button
|
||
href={'https://wharton.qualtrics.com/jfe/form/SV_57rJfXROkQDDU2y'}
|
||
>
|
||
Learn about HabitLab
|
||
</Button>
|
||
</div>
|
||
</Alert>
|
||
) : null;
|
||
};
|
||
|
||
ResearchBannerx.displayName = 'ResearchBannerx';
|
||
|
||
export default ResearchBannerx;
|