Skip to content

Commit b211052

Browse files
authored
Merge branch 'master' into i18n-20241002
2 parents cefac2b + 65f94a0 commit b211052

File tree

3 files changed

+289
-104
lines changed

3 files changed

+289
-104
lines changed

src/packages/frontend/components/icon.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ import {
159159
PlusSquareOutlined,
160160
PoweroffOutlined,
161161
PrinterOutlined,
162+
ProjectOutlined,
162163
QuestionCircleOutlined,
163164
RedoOutlined,
164165
ReloadOutlined,
@@ -383,6 +384,7 @@ const IconSpec: { [name: string]: any } = {
383384
frown: FrownOutlined,
384385
fx: FunctionOutlined,
385386
slides: FundProjectionScreenOutlined,
387+
"project-outlined": ProjectOutlined,
386388
"gateway-outlined": GatewayOutlined,
387389
gavel: { IconFont: "gavel" },
388390
gears: ControlOutlined,

src/packages/next/components/landing/pricing-item.tsx

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ export default function PricingItem({ icon, children, title }: Props) {
2020
<List.Item style={{ padding: 0 }}>
2121
<Card
2222
styles={{ header: { backgroundColor: "#d9edf7" } }}
23-
style={{ color: COLORS.GRAY }}
23+
style={{ color: COLORS.GRAY_M }}
2424
type="inner"
2525
title={
26-
<>
26+
<span style={{ fontSize: "120%" }}>
2727
<Icon name={icon} style={{ marginRight: "10px" }} />{" "}
2828
<strong>{title}</strong>
29-
</>
29+
</span>
3030
}
3131
>
3232
{children}
@@ -42,8 +42,8 @@ const STYLE: React.CSSProperties = {
4242
} as const;
4343

4444
interface Line {
45-
amount?: string | number;
46-
desc?: string;
45+
amount?: string | number | ReactNode;
46+
desc?: string | ReactNode;
4747
}
4848

4949
export function Line(props: Line) {
@@ -56,19 +56,26 @@ export function Line(props: Line) {
5656
);
5757

5858
let unit = "";
59-
if (desc?.includes("RAM") || desc?.includes("Disk")) {
60-
unit = "G";
61-
} else if (desc?.includes("CPU")) {
62-
unit = amount == 1 ? "core" : "cores";
63-
} else if (desc == "Projects") {
64-
unit = "simultaneously running";
65-
} else if (desc?.includes("Overcommit")) {
66-
unit = "x";
59+
if (typeof desc === "string") {
60+
if (desc?.includes("RAM") || desc?.includes("Disk")) {
61+
unit = "G";
62+
} else if (desc?.includes("CPU")) {
63+
unit = amount == 1 ? "core" : "cores";
64+
} else if (desc == "Projects") {
65+
unit = "simultaneously running";
66+
} else if (desc?.includes("Overcommit")) {
67+
unit = "x";
68+
}
6769
}
6870
return (
6971
<div>
7072
<b style={STYLE}>
71-
{amount} {unit}
73+
<div
74+
style={{ display: "inline-block", width: "3em", textAlign: "right" }}
75+
>
76+
{amount}
77+
</div>{" "}
78+
{unit}
7279
</b>{" "}
7380
{desc}
7481
</div>

0 commit comments

Comments
 (0)