1import React, { useCallback } from 'react';
2import cn from 'classnames';
3import ob from 'urbit-ob';
4import { Grid, Text, LinkButton } from 'indigo-react';
13} from '@tlon/indigo-react';
15import useWasGreeted from 'lib/useWasGreeted';
17const TEXT_STYLE = 'f5';
19export default function ActivateDisclaimer({ point }) {
20 const [wasGreeted, setWasGreeted] = useWasGreeted();
22 const pointName = ob.patp(point);
24 const dismiss = useCallback(async () => {
33 <Grid gap={4} className="mb10">
35 <Text className={cn(TEXT_STYLE, 'block mb4')}>
36 Welcome <span className="mono">{pointName}</span>,
38 <Text className={cn(TEXT_STYLE, 'block mb2')}>
39 As of this moment, you own a piece of Urbit.
40 Keep your login details safe. No one can recover them for you.
42 <Text className={cn(TEXT_STYLE, 'block mb2')}>Now that you own your identity, the next step is to run your own operating system:</Text>
46 <Box className="info-list">
47 <Row className="info-row">
48 <Box className="info-message">
49 Comfortable with a command line?
52 style={{ fontWeight: 600 }}
56 href="https://docs.urbit.org/get-on-urbit#get-the-urbit-runtime">
61 <Row className="info-row">
62 <Box className="info-message">
63 Graphical interfaces more your speed?
67 style={{ fontWeight: 600 }}
71 href="https://nativeplanet.io/software">
76 <Row className="info-row">
77 <Box className="info-message">
78 Want a dedicated Urbit device to do it all for you?
82 style={{ fontWeight: 600 }}
86 href="https://nativeplanet.io/hardware">
87 Get Native Planet hardware↗
91 <Row className="info-row">
92 <Box style={{ fontStyle: 'italic' }} className="info-message">
93 Not ready to self-host? Contact <a className="bold underline" href="mailto:support@tlon.io">support@tlon.io</a> to have them host your Urbit for you!
100 <Text className={cn(TEXT_STYLE, 'block mb4')}>
101 Welcome to Urbit. See you on the network.
104 <Grid.Item full as={LinkButton} onClick={dismiss}>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list