Skip to content

Commit baae3c6

Browse files
committed
tweak landing page a little; add "desc of cocalc" banner to share server pages
1 parent 1627f74 commit baae3c6

File tree

4 files changed

+42
-37
lines changed

4 files changed

+42
-37
lines changed

src/packages/next/components/landing/compute-servers.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function ComputeServers() {
3030
level={LANDING_HEADER_LEVEL}
3131
title={
3232
<>
33-
Powerful Compute Servers with Optional GPU Support
33+
Powerful Compute Servers with GPU Options
3434
<ComputeServerTemplates
3535
getPopupContainer={() => ref.current}
3636
style={{ maxWidth: "900px" }}
@@ -52,8 +52,8 @@ export default function ComputeServers() {
5252
>
5353
<Paragraph>
5454
Extend your {siteName} projects with powerful{" "}
55-
<Text strong>compute servers</Text>. They give you much more power,
56-
optional GPU support, and flexibility for your computations.
55+
<Text strong>compute servers</Text>. They give you much more power, GPU
56+
options, and flexibility for your computations.
5757
</Paragraph>
5858
<Paragraph>
5959
From within your {siteName} project, spin up and connect to a powerful
@@ -67,17 +67,17 @@ export default function ComputeServers() {
6767
project.
6868
</Paragraph>
6969
<Paragraph>
70-
These machines optionally come with{" "}
71-
<Text strong>extensive GPU support</Text>, from a single NVIDIA T4 to
72-
eight H100's, with many options in between, including L4 and L40,
73-
RTX-A4/5/6000, and A100 with 40GB and 80GB. The finely configured
74-
software images include SageMath, Anaconda,{" "}
75-
<A href="https://youtu.be/kcxyShH3wYE">Google Colab</A>, Julia,{" "}
76-
<A href="https://youtu.be/JG6jm6yv_KE">PyTorch</A>, Tensorflow and{" "}
77-
<A href="https://youtu.be/OMN1af0LUcA">Open WebUI</A>, accommodating a
78-
versatile range of uses. The pre-configured software environments make
79-
it very easy to make use of them, right out of the box. You can also run
80-
any command as{" "}
70+
These servers optionally come with{" "}
71+
<Text strong>very competitively priced GPU support</Text>, from a single
72+
NVIDIA T4 to eight H100's, with many options in between, including L4
73+
and L40, RTX-A4/5/6000, and A100 with 40GB and 80GB. The finely
74+
configured software images include{" "}
75+
<A href="https://youtu.be/kcxyShH3wYE">Google Colab</A>, SageMath,
76+
Anaconda, Julia, <A href="https://youtu.be/JG6jm6yv_KE">PyTorch</A>,
77+
Tensorflow and <A href="https://youtu.be/OMN1af0LUcA">Open WebUI</A>,
78+
accommodating a versatile range of uses. The pre-configured software
79+
environments make it very easy to make use of them, right out of the
80+
box. You can also run any command as{" "}
8181
<A href="https://doc.cocalc.com/compute_server.html#becoming-root-and-port-forwarding">
8282
root
8383
</A>
@@ -88,8 +88,8 @@ export default function ComputeServers() {
8888
<A href="https://doc.cocalc.com/compute_server.html#compute-server-filesystem">
8989
<Text strong>files are synchronized</Text>
9090
</A>
91-
. Therefore, you can seamlessly switch between local and remote
92-
computing. You also have much more disk storage on the remote machine.
91+
. Therefore, you can seamlessly switch between different servers. You
92+
also have much more disk storage on the remote machine.
9393
</Paragraph>
9494
<Paragraph>
9595
Usage of these machines is <Text strong>billed by the second</Text>. The

src/packages/next/components/landing/tagline.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,42 @@ import A from "components/misc/A";
1010
import SanitizedMarkdown from "components/misc/sanitized-markdown";
1111

1212
const A_STYLE: CSS = {
13-
color: "white",
13+
color: "#ddd",
1414
backgroundColor: "transparent",
1515
} as const;
1616

17-
export function Tagline({ value }: { value?: string }) {
17+
export function Tagline({ value, style }: { value?: string; style? }) {
1818
function renderContent() {
1919
if (value) {
2020
return <SanitizedMarkdown value={value} anchorStyle={A_STYLE} />;
2121
} else {
2222
return (
2323
<>
24-
Realtime collaborative{" "}
24+
CoCalc Runs Your{" "}
2525
<A href="/features/jupyter-notebook" style={A_STYLE}>
26-
Jupyter notebooks
26+
Jupyter Notebooks
27+
</A>{" "}
28+
and{" "}
29+
<A href="/features/terminal" style={A_STYLE}>
30+
Linux Terminals
31+
</A>{" "}
32+
using Powerful{" "}
33+
<A href="/features/compute-server" style={A_STYLE}>
34+
CPUs and GPUs
2735
</A>
28-
,{" "}
29-
<A href="/features/latex-editor" style={A_STYLE}>
30-
LaTeX
31-
</A>
32-
, Markdown, and Linux with GPUs
36+
!
3337
</>
3438
);
3539
}
3640
}
3741

3842
return (
3943
<Info.Heading
40-
level={2}
44+
level={3}
4145
textStyle={{ color: "white" }}
4246
style={{
4347
backgroundColor: COLORS.BLUE_D,
44-
paddingBottom: "30px",
45-
marginTop: "30px",
46-
paddingTop: "30px",
48+
...style,
4749
}}
4850
>
4951
{renderContent()}

src/packages/next/components/path/path.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ import type { PathContents as PathContentsType } from "lib/share/get-contents";
3838
import Avatar from "components/share/proxy/avatar";
3939
import A from "components/misc/A";
4040
import { join } from "path";
41+
import { Tagline } from "components/landing/tagline";
4142

42-
import {
43-
SocialMediaShareLinks
44-
} from "components/landing/social-media-share-links";
43+
import { SocialMediaShareLinks } from "components/landing/social-media-share-links";
4544

4645
export interface PublicPathProps {
4746
id: string;
@@ -71,8 +70,8 @@ export interface PublicPathProps {
7170
// doesn't use the names. See https://github.com/sagemathinc/cocalc/issues/6115
7271
redirect?: string;
7372
jupyter_api: boolean;
74-
created: string|null; // ISO 8601 string
75-
last_edited: string|null; // ISO 8601 string
73+
created: string | null; // ISO 8601 string
74+
last_edited: string | null; // ISO 8601 string
7675
ogUrl?: string; // Open Graph URL for social media sharing
7776
ogImage?: string; // Open Graph image for social media sharing
7877
}
@@ -344,12 +343,12 @@ export default function PublicPath({
344343
<AntdAvatar
345344
shape="square"
346345
size={160}
347-
icon={(
346+
icon={
348347
<img
349348
src={projectAvatarImage}
350349
alt={`Avatar for ${projectTitle}.`}
351350
/>
352-
)}
351+
}
353352
style={{ float: "left", margin: "20px" }}
354353
/>
355354
) : undefined
@@ -363,6 +362,10 @@ export default function PublicPath({
363362
/>
364363
)}
365364
<div>
365+
<Tagline
366+
value={customize.indexTagline}
367+
style={{ marginTop: "-15px", padding: "5px" }}
368+
/>
366369
{invalidRedirect && (
367370
<Alert
368371
type="warning"

src/packages/next/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default function Home(props: Props) {
171171
onCoCalcCom ? <Videos videos={YOUTUBE_IDS} /> : indexInfo
172172
}
173173
/>
174-
<Tagline value={indexTagline} />
174+
<Tagline value={indexTagline} style={{ padding: "5px" }} />
175175
{renderCoCalcComFeatures()}
176176
<Footer />
177177
</Layout.Content>

0 commit comments

Comments
 (0)