Skip to content

Commit 6446b58

Browse files
committed
add 'companies using logstruct' page
1 parent 6f648ea commit 6446b58

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

site/app/docs/companies/page.tsx

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import { HeadingWithAnchor } from '@/components/heading-with-anchor';
2+
import { EditPageLink } from '@/components/edit-page-link';
3+
interface ProductionCompany {
4+
name: string;
5+
url: string;
6+
summary: string;
7+
}
8+
9+
const productionCompanies: ProductionCompany[] = [
10+
{
11+
name: 'DocSpring',
12+
url: 'https://www.docspring.com',
13+
summary:
14+
'DocSpring is a PDF filling API that makes it easy to fill out PDF forms, ' +
15+
'convert HTML to PDFs, or collect legally-binding e-signatures. ' +
16+
'We built LogStruct to keep our production logs structured and secure.',
17+
},
18+
19+
{
20+
name: 'Your Company',
21+
url: 'https://www.example.com',
22+
summary: 'Add your company to the list!',
23+
},
24+
];
25+
26+
export default function CompaniesUsingLogStructPage() {
27+
return (
28+
<div className="space-y-6">
29+
<HeadingWithAnchor id="companies-using-logstruct-in-production" level={1}>
30+
Companies Using LogStruct
31+
</HeadingWithAnchor>
32+
33+
<p className="text-neutral-600 dark:text-neutral-400">
34+
Does your team run LogStruct in production? Click the edit link below to
35+
add your company to the list.
36+
</p>
37+
38+
<hr className="my-14" />
39+
40+
<ul className="space-y-14 list-inside">
41+
{productionCompanies.map((company) => (
42+
<li key={company.name}>
43+
<a
44+
href={`${company.url}?utm_source=logstruct&utm_medium=referral`}
45+
target="_blank"
46+
rel="noopener noreferrer"
47+
className="font-semibold text-xl hover:underline"
48+
>
49+
{company.name}
50+
</a>
51+
<div className="text-neutral-600 dark:text-neutral-400 pt-3">
52+
{company.summary}
53+
</div>
54+
</li>
55+
))}
56+
</ul>
57+
58+
<EditPageLink />
59+
</div>
60+
);
61+
}

site/app/docs/layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ export default function DocsLayout({
186186
title="Supported Versions"
187187
active={pathname.startsWith('/docs/supported-versions')}
188188
/>
189+
<DocNavItem
190+
href="/docs/companies"
191+
title="Companies Using LogStruct"
192+
active={pathname.startsWith('/docs/companies')}
193+
/>
189194
</nav>
190195

191196
<h2 className="mt-6 mb-3 text-lg font-semibold">Reference</h2>

0 commit comments

Comments
 (0)