5
5
6
6
import { Col , Divider , Modal , Row , Tabs , TabsProps } from "antd" ;
7
7
import { Gutter } from "antd/es/grid/row" ;
8
-
9
8
import { useProjectContext } from "@cocalc/frontend/project/context" ;
10
9
import { useState } from "@cocalc/frontend/app-framework" ;
11
10
import { A , Icon , Paragraph , Text , Title } from "@cocalc/frontend/components" ;
@@ -61,56 +60,56 @@ export function ProjectServers() {
61
60
return (
62
61
< >
63
62
< Row gutter = { gutter } style = { newRowStyle } >
64
- { available . jupyter_notebook ? (
65
- < Col sm = { sm } md = { md } >
66
- < NewFileButton
67
- name = { "Jupyter Classic..." }
68
- icon = { "ipynb" }
69
- active = { showNamedServer === "jupyter" }
70
- on_click = { ( ) => toggleShowNamedServer ( "jupyter" ) }
71
- />
72
- </ Col >
73
- ) : null }
74
- { available . jupyter_lab ? (
63
+ { available . jupyter_lab && (
75
64
< Col sm = { sm } md = { md } >
76
65
< NewFileButton
77
- name = { "JupyterLab..." }
66
+ name = { < span style = { { fontSize : "14pt" } } > JupyterLab </ span > }
78
67
icon = { "ipynb" }
79
68
active = { showNamedServer === "jupyterlab" }
80
69
on_click = { ( ) => toggleShowNamedServer ( "jupyterlab" ) }
81
70
/>
82
71
</ Col >
83
- ) : null }
84
- { available . vscode ? (
72
+ ) }
73
+ { available . vscode && (
85
74
< Col sm = { sm } md = { md } >
86
75
< NewFileButton
87
- name = { " VS Code..." }
76
+ name = { < span style = { { fontSize : "14pt" } } > VS Code</ span > }
88
77
icon = { "vscode" }
89
78
active = { showNamedServer === "code" }
90
79
on_click = { ( ) => toggleShowNamedServer ( "code" ) }
91
80
/>
92
81
</ Col >
93
- ) : null }
94
- { available . julia ? (
82
+ ) }
83
+ { available . julia && (
95
84
< Col sm = { sm } md = { md } >
96
85
< NewFileButton
97
- name = { "Pluto..." }
86
+ name = { < span style = { { fontSize : "14pt" } } > Pluto </ span > }
98
87
icon = { "julia" }
99
88
active = { showNamedServer === "pluto" }
100
89
on_click = { ( ) => toggleShowNamedServer ( "pluto" ) }
101
90
/>
102
91
</ Col >
103
- ) : null }
104
- { available . rserver ? (
92
+ ) }
93
+ { available . rserver && (
105
94
< Col sm = { sm } md = { md } >
106
95
< NewFileButton
107
- name = { ` ${ R_IDE } ...` }
96
+ name = { < span style = { { fontSize : "14pt" } } > { R_IDE } </ span > }
108
97
icon = { "r" }
109
98
active = { showNamedServer === "rserver" }
110
99
on_click = { ( ) => toggleShowNamedServer ( "rserver" ) }
111
100
/>
112
101
</ Col >
113
- ) : null }
102
+ ) }
103
+ { available . jupyter_notebook && (
104
+ < Col sm = { sm } md = { md } >
105
+ < NewFileButton
106
+ name = { < span style = { { fontSize : "14pt" } } > Jupyter Classic</ span > }
107
+ icon = { "ipynb" }
108
+ active = { showNamedServer === "jupyter" }
109
+ on_click = { ( ) => toggleShowNamedServer ( "jupyter" ) }
110
+ />
111
+ </ Col >
112
+ ) }
114
113
{ noServers && (
115
114
< Col sm = { sm } md = { md } >
116
115
< NewFileButton
@@ -137,16 +136,15 @@ export function ProjectServers() {
137
136
) }
138
137
</ Row >
139
138
140
- < Row gutter = { gutter } style = { newRowStyle } >
141
- < Col sm = { 18 } >
142
- { showNamedServer && (
143
- < NamedServerPanel
144
- project_id = { project_id }
145
- name = { showNamedServer }
146
- />
147
- ) }
148
- </ Col >
149
- </ Row >
139
+ < div >
140
+ { showNamedServer && (
141
+ < NamedServerPanel
142
+ project_id = { project_id }
143
+ name = { showNamedServer }
144
+ style = { { maxWidth : "600px" , margin : "30px auto" } }
145
+ />
146
+ ) }
147
+ </ div >
150
148
</ >
151
149
) ;
152
150
}
@@ -175,9 +173,9 @@ export function ProjectServers() {
175
173
children : (
176
174
< >
177
175
< Paragraph >
178
- You can run various servers inside this project. They run in the same
179
- environment, have access to the same files, and stop when the project
180
- stops. You can also{ " " }
176
+ You can run various notebook servers inside this project with one
177
+ click. They run in the same environment, have access to the same
178
+ files, and stop when the project stops. You can also{ " " }
181
179
< A href = { "https://doc.cocalc.com/howto/webserver.html" } >
182
180
run your own servers
183
181
</ A >
@@ -203,6 +201,14 @@ export function ProjectServers() {
203
201
< ComputeServerDocs style = { { float : "right" } } />
204
202
Compute Servers
205
203
</ h2 >
204
+ < div style = { { marginBottom : "15px" } } >
205
+ Compute servers provide powerful computing capabilities, allowing
206
+ you to scale up to 400+ CPU cores, terabytes of RAM, advanced GPUs,
207
+ extensive storage options and integration with multiple cloud
208
+ services for flexible use. The platform features real-time
209
+ collaboration, pre-configured software, and clear, minute-by-minute
210
+ billing for efficient project management and cost control.
211
+ </ div >
206
212
< ComputeServers project_id = { project_id } />
207
213
</ >
208
214
) ,
0 commit comments