Skip to content

Commit 37c9d75

Browse files
committed
add instruqt labs in netpol, postresql, and getting-started
1 parent 3bb1779 commit 37c9d75

File tree

5 files changed

+46
-31
lines changed

5 files changed

+46
-31
lines changed

docs/features/network-mapping-network-policies/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ title: Network mapping & network policies
55
import DocsLinkCard from "@site/src/components/LinkCard";
66

77
export const network_access_tutorials = [
8+
{
9+
title: '🧪 Self-paced labs: Network Policy automation',
10+
description: 'Preconfigured labs to learn how to use Otterize with guided examples',
11+
url: 'https://otterize.instruqt.com/pages/docs-netpols'
12+
},
813
{
914
title: 'Visualizing a Kubernetes Network',
1015
description: 'Map network traffic in a cluster and view the connections',

docs/features/postgresql/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ hide_title: true
77
import DocsLinkCard from "@site/src/components/LinkCard";
88

99
export const postgres_tutorials = [
10+
{
11+
title: '🧪 Self-paced labs: just-in-time credentials for PostgreSQL',
12+
description: 'Preconfigured labs to learn how to use Otterize with guided examples',
13+
url: 'https://otterize.instruqt.com/pages/docs-postgresql'
14+
},
1015
{
1116
title: 'Just-in-time PostgreSQL Access',
1217
description: 'Learn how to manage just-in-time users and SQL GRANTs',

docs/getting-started/README.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export const introduction = [
1919
];
2020

2121
export const features = [
22+
{
23+
title: 'Self-Paced Labs',
24+
icon: '/img/instruqt-logo.jpg',
25+
url: 'https://otterize.com/resources?categories=Lab&page=1&search='
26+
},
2227
{
2328
title: 'Network mapping & network policies',
2429
icon: '/img/icons/networking.png',

src/components/LinkCard/index.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
import React from 'react';
22

3-
export default function DocsLinkCard({items, colSize}) {
4-
let colClasses = "lg:tw-grid-cols-2 tw-gap-4 xs:tw-grid-cols-1 ";
5-
if (colSize === "lg") {
6-
colClasses = "lg:tw-grid-cols-4 tw-gap-2 xs:tw-grid-cols-2"
7-
}else if (colSize === "md") {
8-
colClasses = "lg:tw-grid-cols-3 tw-gap-2 xs:tw-grid-cols-1 md:tw-grid-cols-2"
9-
}
10-
return (
11-
<div className={`tw-grid ${colClasses}`}>
12-
{items.map((item) => (
13-
<div
14-
key={item.title}
15-
className="tw-relative tw-flex tw-items-center tw-space-x-3 tw-rounded-lg tw-border tw-border-solid tw-border-primary-500 tw-bg-white tw-px-6 tw-py-5 tw-shadow-sm focus-within:tw-ring-2 focus-within:tw-ring-indigo-500 focus-within:tw-ring-offset-2 hover:tw-border-primary-600 hover:tw-shadow-md"
16-
>
17-
{item.icon &&
18-
<div className="tw-flex-shrink-0">
19-
<img width="40px" className="tw-max-h-10 tw-max-w-10" src={item.icon} alt=""/>
20-
</div>
21-
}
22-
<div className="tw-min-w-0 tw-flex-1">
23-
<a href={item.url} className="focus:tw-outline-none hover:tw-no-underline">
24-
<span className="tw-absolute tw-inset-0" aria-hidden="true"/>
25-
<div className="tw-text-md tw-font-medium tw-text-gray-900 tw-break-keep">{item.title}</div>
26-
{item.description &&
27-
<div className="tw-text-sm tw-text-gray-500">{item.description}</div>
28-
}
29-
</a>
30-
</div>
31-
</div>
32-
))}
3+
export default function DocsLinkCard({ items, colSize }) {
4+
let colClasses = "lg:tw-grid-cols-2 tw-gap-4 xs:tw-grid-cols-1 ";
5+
if (colSize === "lg") {
6+
colClasses = "lg:tw-grid-cols-4 tw-gap-2 xs:tw-grid-cols-2"
7+
} else if (colSize === "md") {
8+
colClasses = "lg:tw-grid-cols-3 tw-gap-2 xs:tw-grid-cols-1 md:tw-grid-cols-2"
9+
}
10+
return (
11+
<div className={`tw-grid ${colClasses}`}>
12+
{items.map((item) => (
13+
<div
14+
key={item.title}
15+
className="tw-relative tw-flex tw-items-center tw-space-x-3 tw-rounded-lg tw-border tw-border-solid tw-border-primary-500 tw-bg-white tw-px-6 tw-py-5 tw-shadow-sm focus-within:tw-ring-2 focus-within:tw-ring-indigo-500 focus-within:tw-ring-offset-2 hover:tw-border-primary-600 hover:tw-shadow-md"
16+
>
17+
{item.icon &&
18+
<div className="tw-flex-shrink-0">
19+
<img width="40px" className="tw-max-h-10 tw-max-w-10" src={item.icon} alt="" />
20+
</div>
21+
}
22+
<div className="tw-min-w-0 tw-flex-1">
23+
<a href={item.url} className="focus:tw-outline-none hover:tw-no-underline">
24+
<span className="tw-absolute tw-inset-0" aria-hidden="true" />
25+
<div className="tw-text-md tw-font-medium tw-text-gray-900 tw-break-keep">{item.title}</div>
26+
{item.description &&
27+
<div className="tw-text-sm tw-text-gray-500">{item.description}</div>
28+
}
29+
</a>
30+
</div>
3331
</div>
34-
)
32+
))}
33+
</div>
34+
)
3535
}

static/img/instruqt-logo.jpg

11.5 KB
Loading

0 commit comments

Comments
 (0)