-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adjust width of modal * Add WhoIsThisTrackForView, pass down seniority level * Set up logic around showing bootcamp recommendation view * Add Views, rearrange things * Add bootcamp landing path * Commit changes in track_welcome_modal * Add tests * Change HasLearningModeStep copy * Tweak copy * Adjust tests and copy --------- Co-authored-by: Jeremy Walker <jez.walker@gmail.com>
- Loading branch information
Showing
15 changed files
with
262 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 86 additions & 0 deletions
86
app/javascript/components/modals/track-welcome-modal/LHS/BootcampRecommendationView.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import React, { useContext } from 'react' | ||
import { TrackContext } from '../TrackWelcomeModal' | ||
import { GraphicalIcon } from '@/components/common' | ||
|
||
export function BootcampRecommendationView() { | ||
const { hideBootcampRecommendationView, links } = useContext(TrackContext) | ||
return ( | ||
<> | ||
<h4 | ||
data-capy-element="bootcamp-recommendation-header" | ||
className="text-h4 mb-8" | ||
> | ||
Our Bootcamp might be better for you… | ||
</h4> | ||
|
||
<p className="mb-8"> | ||
Exercism's tracks are designed for people who{' '} | ||
<strong className="font-medium">already know how to code</strong> and | ||
are practicing or learning new languages. | ||
</p> | ||
<p className="mb-8"> | ||
If you're just starting out on your coding journey,{' '} | ||
<strong className="font-semibold"> | ||
our Bootcamp might be a better fit for you. | ||
</strong>{' '} | ||
It offers: | ||
</p> | ||
<ul className="flex flex-col gap-2 text-14 font-medium mb-8"> | ||
<li className="flex items-center"> | ||
<GraphicalIcon | ||
icon="wave" | ||
category="bootcamp" | ||
className="mr-8 w-[20px]" | ||
/> | ||
Expert teaching and mentoring support | ||
</li> | ||
<li className="flex items-center"> | ||
<GraphicalIcon | ||
icon="fun" | ||
category="bootcamp" | ||
className="mr-8 w-[20px]" | ||
/> | ||
Hands-on project based learning | ||
</li> | ||
<li className="flex items-center"> | ||
<GraphicalIcon | ||
icon="complete" | ||
category="bootcamp" | ||
className="mr-8 w-[20px]" | ||
/> | ||
A complete Learn to Code syllabus | ||
</li> | ||
<li className="flex items-center"> | ||
<GraphicalIcon | ||
icon="certificate" | ||
category="bootcamp" | ||
className="mr-8 w-[20px]" | ||
/> | ||
A formal certificate on completion | ||
</li> | ||
</ul> | ||
<p className="mb-16"> | ||
It's part time, remote, and priced affordably, with discounts available | ||
for students, people who are unemployed, and those living in emerging | ||
economies. | ||
</p> | ||
|
||
<div className="flex gap-12 items-center w-full"> | ||
<a | ||
href={links.bootcampLanding} | ||
data-capy-element="go-to-bootcamp-button" | ||
className="btn-m btn-primary flex-grow" | ||
> | ||
Check out the Bootcamp | ||
</a> | ||
<button | ||
onClick={hideBootcampRecommendationView} | ||
className="btn-m btn-secondary" | ||
data-capy-element="continue-anyway-button" | ||
> | ||
Continue anyway | ||
</button> | ||
</div> | ||
</> | ||
) | ||
} |
2 changes: 1 addition & 1 deletion
2
app/javascript/components/modals/track-welcome-modal/LHS/TrackWelcomeModal.machine.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
app/javascript/components/modals/track-welcome-modal/RHS/TrackWelcomeModalRHS.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { useContext } from 'react' | ||
import { TrackContext } from '../TrackWelcomeModal' | ||
import { VideoRHS } from './VideoRHS' | ||
import { WhoIsThisTrackForRHS } from './WhoIsThisTrackForRHS' | ||
|
||
export function TrackWelcomeModalRHS(): JSX.Element { | ||
const { track, currentState, shouldShowBootcampRecommendationView } = | ||
useContext(TrackContext) | ||
|
||
if ( | ||
currentState.matches('learningEnvironmentSelector') && | ||
shouldShowBootcampRecommendationView | ||
) { | ||
return <WhoIsThisTrackForRHS track={track} /> | ||
} | ||
|
||
return <VideoRHS track={track} /> | ||
} |
7 changes: 3 additions & 4 deletions
7
...ck-welcome-modal/TrackWelcomeModalRHS.tsx → ...dals/track-welcome-modal/RHS/VideoRHS.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
app/javascript/components/modals/track-welcome-modal/RHS/WhoIsThisTrackForRHS.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { GraphicalIcon, Icon } from '@/components/common' | ||
import VimeoEmbed from '@/components/common/VimeoEmbed' | ||
import { Track } from '@/components/types' | ||
import React from 'react' | ||
|
||
export function WhoIsThisTrackForRHS({ track }: { track: Track }): JSX.Element { | ||
return ( | ||
<div className="rhs" data-capy-element="who-is-this-track-for-rhs"> | ||
<div className="rounded-8 p-20 bg-backgroundColorD border-1 border-borderColor7 mb-16"> | ||
<div className="flex flex-row gap-8 items-center justify-center text-16 text-textColor1 mb-16"> | ||
<Icon | ||
icon="exercism-face" | ||
className="filter-textColor1" | ||
alt="exercism-face" | ||
height={16} | ||
width={16} | ||
/> | ||
<div> | ||
<strong className="font-semibold"> Exercism </strong> | ||
Bootcamp | ||
</div> | ||
</div> | ||
<VimeoEmbed className="rounded-8 mb-16" id="1024390839?h=c2b3bdce14" /> | ||
<span className="text-16 leading-150 text-textColor2"> | ||
<strong className="font-medium"> | ||
🗓️ The Bootcamp starts in January.{' '} | ||
</strong> | ||
Check out our introduction video (☝️) to see how it will work and if | ||
it's the right fit for you! | ||
</span> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.