Skip to content

Commit 9cc2280

Browse files
committed
Add under construction note to home page as well
1 parent dbb65a7 commit 9cc2280

File tree

2 files changed

+39
-9
lines changed

2 files changed

+39
-9
lines changed

Diff for: src/app/page.mdx

+10-6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export const sections = [
1515

1616
<HeroPattern />
1717

18+
<Note type="warning">
19+
Much of this web site is still a work-in-progress, and we are working hard to try and get all of the documentation migrated here. In the meantime, our [Github Wiki](https://github.com/crowbartools/Firebot/wiki) contains a vast selection of <i>historical</i> documentation.
20+
</Note>
21+
1822
# Firebot Documentation
1923

2024
Firebot is a fully featured open-source bot that can help level up your streams. {{ className: 'lead' }}
@@ -28,16 +32,16 @@ Firebot is a fully featured open-source bot that can help level up your streams.
2832
</Button> */}
2933
</div>
3034

31-
## Getting started {{ anchor: false }}
35+
{/* ## Getting started {{ anchor: false }} */}
3236

33-
To get started, create a new application in your [developer settings](#), then read about how to make requests for the resources you need to access using our HTTP APIs or dedicated client SDKs. When your integration is ready to go live, publish it to our [integrations directory](#) to reach the Protocol community. {{ className: 'lead' }}
37+
{/* To get started, create a new application in your [developer settings](#), then read about how to make requests for the resources you need to access using our HTTP APIs or dedicated client SDKs. When your integration is ready to go live, publish it to our [integrations directory](#) to reach the Protocol community. {{ className: 'lead' }} */}
3438

35-
<div className="not-prose">
39+
{/* <div className="not-prose">
3640
<Button href="/sdks" variant="text" arrow="right">
3741
<>Get your API key</>
3842
</Button>
39-
</div>
43+
</div> */}
4044

41-
<Guides />
45+
{/* <Guides /> */}
4246

43-
<Resources />
47+
{/* <Resources /> */}

Diff for: src/components/mdx.tsx

+29-3
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,36 @@ function InfoIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
4242
)
4343
}
4444

45-
export function Note({ children }: { children: React.ReactNode }) {
45+
export function Note({
46+
children,
47+
type,
48+
}: {
49+
children: React.ReactNode
50+
type?: 'success' | 'warning'
51+
}) {
52+
const typeColors = {
53+
success: {
54+
container:
55+
'border-emerald-500/20 bg-emerald-50/50 text-emerald-900 dark:border-emerald-500/30 dark:bg-emerald-500/5 dark:text-emerald-200 dark:[--tw-prose-links-hover:theme(colors.emerald.300)] dark:[--tw-prose-links:theme(colors.white)]',
56+
icon: 'fill-emerald-500 stroke-white dark:fill-emerald-200/20 dark:stroke-emerald-200',
57+
},
58+
warning: {
59+
container:
60+
'border-amber-500/20 bg-amber-50/50 text-amber-900 dark:border-amber-500/30 dark:bg-amber-500/5 dark:text-amber-200 dark:[--tw-prose-links-hover:theme(colors.amber.300)] dark:[--tw-prose-links:theme(colors.white)]',
61+
icon: 'fill-amber-500 stroke-white dark:fill-amber-200/20 dark:stroke-amber-200',
62+
},
63+
}
64+
65+
const colors = typeColors[type ?? 'success']
66+
4667
return (
47-
<div className="my-6 flex gap-2.5 rounded-2xl border border-emerald-500/20 bg-emerald-50/50 p-4 leading-6 text-emerald-900 dark:border-emerald-500/30 dark:bg-emerald-500/5 dark:text-emerald-200 dark:[--tw-prose-links-hover:theme(colors.emerald.300)] dark:[--tw-prose-links:theme(colors.white)]">
48-
<InfoIcon className="mt-1 h-4 w-4 flex-none fill-emerald-500 stroke-white dark:fill-emerald-200/20 dark:stroke-emerald-200" />
68+
<div
69+
className={clsx(
70+
'my-6 flex gap-2.5 rounded-2xl border p-4 leading-6',
71+
colors.container,
72+
)}
73+
>
74+
<InfoIcon className={clsx('mt-1 h-4 w-4 flex-none', colors.icon)} />
4975
<div className="[&>:first-child]:mt-0 [&>:last-child]:mb-0">
5076
{children}
5177
</div>

0 commit comments

Comments
 (0)