Skip to content

Commit 766a93d

Browse files
committed
chore: Remove dead pages
Removes pages referencing Celest Cloud and Teo, Inc.
1 parent eb8b419 commit 766a93d

File tree

13 files changed

+59
-1200
lines changed

13 files changed

+59
-1200
lines changed

.github/screenshot.png

-868 KB
Binary file not shown.

components/Download.tsx

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from "react";
22
import { FaLinux, FaWindows, FaApple } from "react-icons/fa";
3-
import { IconType } from "react-icons";
3+
import { IconBaseProps, IconType } from "react-icons";
44
import { usePostHog } from "posthog-js/react";
55
import { recordEvent } from "../src/analytics";
66
import { Card, Link } from "nextra-theme-docs";
@@ -89,9 +89,7 @@ export function DownloadButton() {
8989
return <OSCard {...system} />;
9090
}
9191

92-
// Component for detected OS Card
93-
function OSCard(props: DownloadState) {
94-
const { os, architecture, downloadLink } = props;
92+
function renderIcon(os: OperatingSystem) {
9593
let Icon: IconType;
9694
switch (os) {
9795
case "Windows":
@@ -106,6 +104,17 @@ function OSCard(props: DownloadState) {
106104
default:
107105
return;
108106
}
107+
const IconElement = (props: IconBaseProps) => {
108+
const icon = Icon(props);
109+
return <>{icon}</>;
110+
};
111+
return IconElement;
112+
}
113+
114+
// Component for detected OS Card
115+
function OSCard(props: DownloadState) {
116+
const { os, architecture, downloadLink } = props;
117+
let Icon = renderIcon(os);
109118

110119
const posthog = usePostHog();
111120
recordEvent(posthog, "detected_operating_system", {
@@ -146,20 +155,7 @@ function DownloadCard(
146155
) {
147156
const { os, architectures, detected } = props;
148157

149-
let Icon: IconType;
150-
switch (os) {
151-
case "Windows":
152-
Icon = FaWindows;
153-
break;
154-
case "Apple":
155-
Icon = FaApple;
156-
break;
157-
case "Linux":
158-
Icon = FaLinux;
159-
break;
160-
default:
161-
return;
162-
}
158+
let Icon = renderIcon(os);
163159

164160
const posthog = usePostHog();
165161
const isDetected = (architecture: Architecture) =>

components/Footer.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
import Link from "next/link";
22

33
export default function Footer() {
4-
return (
5-
<>
6-
<div>© {new Date().getFullYear()} Teo, Inc. (Celest)</div>
7-
<div className="grow" />
8-
<Link href="/privacy">Privacy Policy</Link>
9-
<span className="mx-2">&bull;</span>
10-
<Link href="/terms">Terms of Service</Link>
11-
<span className="mx-2">&bull;</span>
12-
<Link href="https://app.getdelve.com/celest">Compliance</Link>
13-
</>
14-
);
4+
// return (
5+
// <>
6+
// <div>© {new Date().getFullYear()} Teo, Inc. (Celest)</div>
7+
// <div className="grow" />
8+
// <Link href="/privacy">Privacy Policy</Link>
9+
// <span className="mx-2">&bull;</span>
10+
// <Link href="/terms">Terms of Service</Link>
11+
// <span className="mx-2">&bull;</span>
12+
// <Link href="https://app.getdelve.com/celest">Compliance</Link>
13+
// </>
14+
// );
15+
return <></>;
1516
}

components/Pricing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function PricingTier({
5959
<Card className="flex flex-col justify-between" {...props}>
6060
<CardHeader className="flex flex-col p-4 pt-2">
6161
<CardTitle className="flex flex-row items-center">
62-
<Icon className="my-4" />
62+
<>{Icon({ className: "my-4" })}</>
6363
<span className="text-xl ml-2">{name}</span>
6464
</CardTitle>
6565
<div

components/_app.tsx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,45 +27,13 @@ import '@fortawesome/fontawesome-svg-core/styles.css'
2727
config.autoAddCss = false
2828

2929
export default function App({ Component, pageProps }) {
30-
const { asPath } = useRouter();
31-
const isContactPage = asPath === "/contact";
32-
if (isContactPage) {
33-
useEffect(() => {
34-
loadIntercom();
35-
}, []);
36-
}
37-
3830
return (
3931
<PostHogProvider
4032
apiKey={process.env.NEXT_PUBLIC_POSTHOG_KEY}
4133
options={{
4234
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
4335
}}
4436
>
45-
{isContactPage && (
46-
<>
47-
<link
48-
rel="preconnect"
49-
href="https://widget.intercom.io"
50-
crossOrigin=""
51-
/>
52-
<link
53-
rel="preconnect"
54-
href="https://js.intercomcdn.com"
55-
crossOrigin=""
56-
/>
57-
<link
58-
rel="preconnect"
59-
href="https://downloads.intercomcdn.com"
60-
crossOrigin=""
61-
/>
62-
<link
63-
rel="preconnect"
64-
href="https://api-iam.intercom.io"
65-
crossOrigin=""
66-
/>
67-
</>
68-
)}
6937
<main className={`${poppins.variable} ${berkeleyMono.variable}`}>
7038
<Component {...pageProps} />
7139
<SpeedInsights />

pages/_meta.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,11 @@
2121
"sidebar": false
2222
}
2323
},
24-
"contact": {
25-
"title": "Contact",
26-
"type": "page"
27-
},
2824
"discord": {
2925
"title": "Discord",
3026
"type": "page",
3127
"display": "hidden"
3228
},
33-
"compliance": {
34-
"title": "Discord",
35-
"type": "page",
36-
"display": "hidden"
37-
},
38-
"privacy": {
39-
"title": "Privacy Policy",
40-
"type": "page",
41-
"display": "hidden",
42-
"theme": {
43-
"typesetting": "article"
44-
}
45-
},
46-
"tos": {
47-
"title": "Terms of Service",
48-
"type": "page",
49-
"display": "hidden",
50-
"theme": {
51-
"typesetting": "article"
52-
}
53-
},
5429
"404": {
5530
"title": "404",
5631
"type": "page",

pages/contact.mdx

Lines changed: 0 additions & 19 deletions
This file was deleted.

pages/docs/_meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"title": "Hosting",
1414
"type": "separator"
1515
},
16-
"cloud": "Celest Cloud",
1716
"self-hosting": "Self-Hosting",
1817
"--reference": {
1918
"title": "Reference",

pages/docs/cloud.mdx

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)