-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathindex.tsx
More file actions
71 lines (66 loc) · 1.94 KB
/
index.tsx
File metadata and controls
71 lines (66 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import React, { useRef } from 'react';
import BrowserOnly from '@docusaurus/BrowserOnly';
import styles from './styles.module.css';
import ArrowRight from '@site/static/img/arrow-right.svg';
const items = [
{
text: 'An all-in-one IDE for Expo & React Native.',
button: 'Try Radon IDE for free',
},
{
text: 'Streamline your React Native & Expo development.',
button: 'Install Radon IDE',
},
{
text: 'Set breakpoints and debug React Native apps with ease.',
button: 'Try Radon IDE for free',
},
{
text: 'Catch runtime errors right in your editor.',
button: 'Install Radon IDE',
},
{
text: 'Preview React Native components in isolation.',
button: 'Try Radon IDE',
},
{
text: 'Run, preview, and debug your React Native & Expo apps without leaving VSCode.',
button: 'Try Radon IDE for free',
},
{
text: 'Run, preview, and debug apps faster.',
button: 'Try our IDE for React Native',
},
{
text: 'Reduce context switching & debug faster.',
button: 'Try Radon IDE for free',
},
{
text: 'Reduce context switching & preview components instantly.',
button: 'Try Radon IDE for free',
},
{
text: 'Reduce context switching & streamline React Native and Expo development.',
button: 'Install Radon IDE',
},
];
function RadonBannerInner(): JSX.Element {
const item = useRef(items[Math.floor(Math.random() * items.length)]);
return (
<a
href="https://ide.swmansion.com/?utm_source=gesture-handler"
className={styles.container}>
<div className={styles.content}>
<p className={styles.text}>{item.current.text}</p>
<span className={styles.button}>
{item.current.button} <ArrowRight />
</span>
</div>
<span className={styles.ellipseLeft} />
<span className={styles.ellipseRight} />
</a>
);
}
export default function RadonBanner() {
return <BrowserOnly>{() => <RadonBannerInner />}</BrowserOnly>;
}