-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d6d032
commit 1501e6b
Showing
7 changed files
with
158 additions
and
45 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
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
66 changes: 65 additions & 1 deletion
66
www/src/components/create-cluster/steps/DeployLocallyStep.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 |
---|---|---|
@@ -1,3 +1,67 @@ | ||
import { Callout, Checkbox, Codeline, Flex } from '@pluralsh/design-system' | ||
import { CSSProp, useTheme } from 'styled-components' | ||
|
||
import { useCreateClusterContext } from '../CreateClusterWizard' | ||
|
||
export function DeployLocallyStep() { | ||
return <div>DeployLocallyStep</div> | ||
const theme = useTheme() | ||
const { finishEnabled, setFinishEnabled } = useCreateClusterContext() | ||
|
||
return ( | ||
<Flex | ||
direction="column" | ||
gap="xlarge" | ||
> | ||
<Callout title="This command may take 30 or more minutes to complete"> | ||
We recommend keeping this tab open and proceeding once your control | ||
plane is deployed. | ||
</Callout> | ||
<Flex | ||
direction="column" | ||
gap="small" | ||
> | ||
<span css={theme.partials.text.body2}> | ||
Now that you've installed the Plural CLI, all that's needed is to run | ||
one command. This will provide everything you need to run your control | ||
plane. | ||
</span> | ||
<Codeline css={{ background: theme.colors['fill-two'] }}> | ||
plural up | ||
</Codeline> | ||
<span css={theme.partials.text.body2}> | ||
For a full guide on properly deploying your cloud instance and cluster | ||
with `plural up`,{' '} | ||
<a | ||
css={theme.partials.text.inlineLink} | ||
href="https://docs.plural.sh/" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
visit our documentation. | ||
</a> | ||
</span> | ||
</Flex> | ||
<Flex | ||
direction="column" | ||
gap="small" | ||
css={{ marginTop: theme.spacing.medium }} | ||
> | ||
<Checkbox | ||
small | ||
checked={finishEnabled} | ||
onChange={(e) => setFinishEnabled(e.target.checked)} | ||
css={ | ||
{ | ||
'& .label': { | ||
userSelect: 'none', | ||
}, | ||
} as CSSProp | ||
} | ||
> | ||
The `plural up` command has finished running. | ||
<span css={{ color: theme.colors['text-danger'] }}>*</span> | ||
</Checkbox> | ||
</Flex> | ||
</Flex> | ||
) | ||
} |
19 changes: 3 additions & 16 deletions
19
www/src/components/create-cluster/steps/HostingOptionsStep.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
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 |
---|---|---|
@@ -1,3 +1,23 @@ | ||
import { Callout, Flex } from '@pluralsh/design-system' | ||
import { CliInstallationBaseInfo } from 'components/shell/onboarding/sections/cli/CLIInstallationStep' | ||
|
||
import { useCreateClusterContext } from '../CreateClusterWizard' | ||
|
||
export function InstallCliStep() { | ||
return <div>InstallCliStep</div> | ||
const { hostingOption } = useCreateClusterContext() | ||
|
||
return ( | ||
<Flex | ||
direction="column" | ||
gap="xlarge" | ||
> | ||
{hostingOption === 'cloud' && ( | ||
<Callout title="The next two steps are in your local terminal"> | ||
This will help to setup and properly configure the control plane and | ||
Plural Cloud instance with your local environment. | ||
</Callout> | ||
)} | ||
<CliInstallationBaseInfo /> | ||
</Flex> | ||
) | ||
} |
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