Skip to content

Commit 95e8458

Browse files
committed
tweak design
1 parent b35e877 commit 95e8458

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

site/src/pages/CliInstallPage/CliInstallPageView.tsx

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Interpolation, Theme } from "@emotion/react";
22
import { CodeExample } from "components/CodeExample/CodeExample";
3-
import { SignInLayout } from "components/SignInLayout/SignInLayout";
43
import { Welcome } from "components/Welcome/Welcome";
54
import type { FC } from "react";
65
import { Link as RouterLink } from "react-router-dom";
@@ -9,15 +8,17 @@ export const CliInstallPageView: FC = () => {
98
const origin = location.origin;
109

1110
return (
12-
<SignInLayout>
13-
<Welcome className="pb-3">Install the Coder CLI</Welcome>
11+
<div css={styles.container}>
12+
<Welcome>Install the Coder CLI</Welcome>
1413

1514
<p css={styles.instructions}>
1615
Copy the command below and{" "}
1716
<strong css={{ display: "block" }}>paste it in your terminal.</strong>
1817
</p>
1918

2019
<CodeExample
20+
css={{ maxWidth: "100%" }}
21+
data-chromatic="ignore"
2122
code={`curl -fsSL ${origin}/install.sh | sh`}
2223
secret={false}
2324
/>
@@ -27,20 +28,31 @@ export const CliInstallPageView: FC = () => {
2728
Go to workspaces
2829
</RouterLink>
2930
</div>
30-
</SignInLayout>
31+
<div css={styles.copyright}>
32+
{"\u00a9"} {new Date().getFullYear()} Coder Technologies, Inc.
33+
</div>
34+
</div>
3135
);
3236
};
3337

3438
const styles = {
39+
container: {
40+
flex: 1,
41+
height: "-webkit-fill-available",
42+
display: "flex",
43+
flexDirection: "column",
44+
justifyContent: "center",
45+
alignItems: "center",
46+
width: 480,
47+
margin: "auto",
48+
},
49+
3550
instructions: (theme) => ({
3651
fontSize: 16,
3752
color: theme.palette.text.secondary,
3853
paddingBottom: 8,
3954
textAlign: "center",
4055
lineHeight: 1.4,
41-
42-
// Have to undo styling side effects from <Welcome> component
43-
marginTop: -24,
4456
}),
4557

4658
backLink: (theme) => ({
@@ -57,4 +69,10 @@ const styles = {
5769
textDecoration: "none",
5870
},
5971
}),
72+
73+
copyright: (theme) => ({
74+
fontSize: 12,
75+
color: theme.palette.text.secondary,
76+
marginTop: 24,
77+
}),
6078
} satisfies Record<string, Interpolation<Theme>>;

0 commit comments

Comments
 (0)