-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy pathDeveloperView.tsx
78 lines (71 loc) · 2.94 KB
/
DeveloperView.tsx
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
72
73
74
75
76
77
78
import React, { useContext } from 'react'
import { FormButton } from '@/components/common/FormButton'
import { ErrorBoundary, ErrorMessage } from '@/components/ErrorBoundary'
import { WelcomeModalContext } from './WelcomeModal'
const DEFAULT_ERROR = new Error('Unable to dismiss modal')
export function SeniorView() {
const { numTracks, patchCloseModal } = useContext(WelcomeModalContext)
return (
<>
<div className="lhs">
<header>
<h1>Hello fellow developer 👋</h1>
<p className="">
Exercism is the place to deepen your programming skills and explore
over {numTracks} programming languages.
</p>
</header>
<h2>Thanks for joining!</h2>
<p className="mb-12">
Exercism has been made by thousands of people who want to create a
fun, powerful educational platform that makes it easy to learn and
deepen your programming skills. We're really glad you've
joined us for the ride! Check our forums, Youtube and Twitch to
explore everything Exercism has to offer 🎉
</p>
<p className="mb-12">
To get started, watch the welcome video on the right then head to the
Tracks page and choose the language you want to explore first. Solve
the classic "Hello World" exercise to familiarize yourself
with the platform, then start solving exercises for real.
</p>
<FormButton
status={patchCloseModal.status}
className="btn-primary btn-l"
type="button"
onClick={patchCloseModal.mutate}
>
Got it! Close this modal.
</FormButton>
<ErrorBoundary resetKeys={[patchCloseModal.status]}>
<ErrorMessage
error={patchCloseModal.error}
defaultError={DEFAULT_ERROR}
/>
</ErrorBoundary>
</div>
<div className="rhs">
<h2 className="text-h4 mb-12">Start with our welcome video 👇🏽</h2>
<div
className="video relative rounded-8 overflow-hidden !mb-24"
style={{ padding: '56.25% 0 0 0', position: 'relative' }}
>
<iframe
src="https://www.youtube-nocookie.com/embed/8rmbTWAncb8"
title="Introducing the 'Community' tab"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</div>
<h2 className="text-h4 mb-4">Where can I join #48in24?</h2>
<p className="text-p-base mb-8">
Discovered Exercism because of #48in24 or one of our featured months?
Good stuff! Once you've watched the video above, close this modal
and you'll see a big graphic on the right-hand side advertising
#48in24. Click on that and follow the instructions to get started!
</p>
</div>
</>
)
}