1
1
import type { Interpolation , Theme } from "@emotion/react" ;
2
2
import { CodeExample } from "components/CodeExample/CodeExample" ;
3
- import { SignInLayout } from "components/SignInLayout/SignInLayout" ;
4
3
import { Welcome } from "components/Welcome/Welcome" ;
5
4
import type { FC } from "react" ;
6
5
import { Link as RouterLink } from "react-router-dom" ;
@@ -9,15 +8,17 @@ export const CliInstallPageView: FC = () => {
9
8
const origin = location . origin ;
10
9
11
10
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 >
14
13
15
14
< p css = { styles . instructions } >
16
15
Copy the command below and{ " " }
17
16
< strong css = { { display : "block" } } > paste it in your terminal.</ strong >
18
17
</ p >
19
18
20
19
< CodeExample
20
+ css = { { maxWidth : "100%" } }
21
+ data-chromatic = "ignore"
21
22
code = { `curl -fsSL ${ origin } /install.sh | sh` }
22
23
secret = { false }
23
24
/>
@@ -27,20 +28,31 @@ export const CliInstallPageView: FC = () => {
27
28
Go to workspaces
28
29
</ RouterLink >
29
30
</ div >
30
- </ SignInLayout >
31
+ < div css = { styles . copyright } >
32
+ { "\u00a9" } { new Date ( ) . getFullYear ( ) } Coder Technologies, Inc.
33
+ </ div >
34
+ </ div >
31
35
) ;
32
36
} ;
33
37
34
38
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
+
35
50
instructions : ( theme ) => ( {
36
51
fontSize : 16 ,
37
52
color : theme . palette . text . secondary ,
38
53
paddingBottom : 8 ,
39
54
textAlign : "center" ,
40
55
lineHeight : 1.4 ,
41
-
42
- // Have to undo styling side effects from <Welcome> component
43
- marginTop : - 24 ,
44
56
} ) ,
45
57
46
58
backLink : ( theme ) => ( {
@@ -57,4 +69,10 @@ const styles = {
57
69
textDecoration : "none" ,
58
70
} ,
59
71
} ) ,
72
+
73
+ copyright : ( theme ) => ( {
74
+ fontSize : 12 ,
75
+ color : theme . palette . text . secondary ,
76
+ marginTop : 24 ,
77
+ } ) ,
60
78
} satisfies Record < string , Interpolation < Theme > > ;
0 commit comments