Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 064b04c

Browse files
committed
Auto stash before checking out "origin/docs/new-layout"
1 parent ae593bc commit 064b04c

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

src/components/Libraries.tsx

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,33 @@ const libraries = [
4949
},
5050
]
5151

52-
export function Libraries() {
52+
export interface LibrariesProps {
53+
minimal?: boolean
54+
}
55+
56+
export function Libraries({ minimal = false }: LibrariesProps) {
57+
if (minimal) {
58+
return (
59+
<div className="flex items-center w-fit h-fit">
60+
{libraries.map((library) => (
61+
<Link
62+
href={library.href}
63+
key={library.name}
64+
className="grayscale opacity-90 transition-opacity hover:opacity-100 hover:grayscale-0"
65+
target='_blank'
66+
>
67+
<Image
68+
src={library.logo}
69+
alt={library.name + ' Logo'}
70+
className="h-12 w-12"
71+
unoptimized
72+
/>
73+
</Link>
74+
))}
75+
</div>
76+
)
77+
}
78+
5379
return (
5480
<div className="my-16 xl:max-w-none">
5581
<Heading level={2} id="libraries">

src/pages/index.mdx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { HomeHeader } from '@/components/HomeHeader'
22
import { InstallNitric } from '@/components/InstallNitric'
3+
import { Libraries } from '@/components/Libraries'
34

45
export const description =
56
'Documentation for the Nitric cloud application framework.'
@@ -19,6 +20,10 @@ It's what's missing between applications and infrastructure automation.
1920

2021
Oh, and it supports basically any language, like JavaScript, TypeScript, Python, Go, you name it.
2122

23+
<div className="">
24+
<Libraries minimal />
25+
</div>
26+
2227
## Services
2328

2429
Services are the heart of Nitric apps, they're the entrypoints to your code. They can serve as APIs, websockets, schedule handlers, subscribers and a lot more. You create services by telling Nitric where to look for your code and how to run it.
@@ -131,7 +136,7 @@ provider: custom/[email protected]
131136
132137
</CodeGroup>
133138
134-
We have a few providers built-in with IaC from Pulumi or Terraform, but you can build your own with any tools you prefer and to anywhere you want. You can even deploy to multiple clouds at once.
139+
We have a few providers built-in with IaC from Pulumi or Terraform, but you can build your own with any tools you prefer and to anywhere you want.
135140
136141
## Projects
137142
@@ -256,14 +261,18 @@ nitric down
256261

257262
## Dashboard
258263

259-
Nitric has a local Dashboard UI (hosted by the CLI) to help you interact with your resources. You can typically access it at [http://localhost:49152](http://localhost:49152/).
264+
Nitric has a local Dashboard UI (hosted by the CLI) to help you interact with your resources. You can typically access it at [http://localhost:49152](http://localhost:49152/) after running `nitric start` or `nitric run`.
260265

261266
<img
262267
src="/docs/images/docs/dashboard-architecture.png"
263268
style={{ maxWidth: 800, width: '100%' }}
264269
alt="screen shot of the local development dashboard"
265270
/>
266271

272+
## Extension
273+
274+
TODO
275+
267276
## What now?
268277

269278
If you're still not sure what to make of Nitric, maybe start with the [Concepts](/docs/concepts) section, otherwise the best way to learn is to dive into the [Guides](/docs/guides) and start building your first project.

0 commit comments

Comments
 (0)