Skip to content

Commit 28740ff

Browse files
katarinasupematea16tonilastre
authored
Restructure Lab docs & Lab 3.2 (#1182)
* Add v1 * add getting started content * update getting started * update deployment and installation (#1209) * update deployment and installation * add content * remove bolds * update --------- Co-authored-by: katarinasupe <[email protected]> * Update connection types page (#1213) * Update data import (#1217) * add data import docs * update --------- Co-authored-by: katarinasupe <[email protected]> * Add collections feature (#1214) * Add collections feature * update * update after review * Add layout feature (#1219) * Add run history (#1220) * update data migration * Add configuration (#1223) * Add configuration * add todo * update features overview * update features overview * Update querying (#1222) * add querying * update with images * update querying --------- Co-authored-by: katarinasupe <[email protected]> * update features table * add callouts on sharing features * update features table * Update query modules (#1225) * update query modules * resolve comments * update * Add monitoring page (#1226) * add fundamentals (#1228) * Add streaming page (#1227) * Add streaming page * update * remove fundamentals * Update lab docs (#1230) * update lab docs * update content * Add Lab fixes/todos (#1229) * Add Lab fixes/todos * update installation and deployment * update collections * update gss * update sso * update sharing features and config * update enterprise flow * updates * update enterprise flow * update * Add redirects and update wrong links * typo fix * add suggestions * new: Add Lab custom SSO and new env variables (#1235) Co-authored-by: Matea Pesic <[email protected]> * update * update visuals * add query status bar images * add daily builds * New/add lab config docs (#1255) * new: Add Lab docs for custom configuration * Apply suggestions from code review * update structure --------- Co-authored-by: Matea Pesic <[email protected]> Co-authored-by: matea16 <[email protected]> --------- Co-authored-by: matea16 <[email protected]> Co-authored-by: Matea Pesic <[email protected]> Co-authored-by: Toni <[email protected]>
1 parent 342c850 commit 28740ff

File tree

103 files changed

+4746
-2704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+4746
-2704
lines changed

components/social-card/CommunityLinks.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ export function CommunityLinks() {
1414
title="Discord"
1515
body="Join the community"
1616
href="https://discord.gg/memgraph"
17+
is_external={true}
1718
/>
1819
<SocialCard
1920
icon={<GitHub />}
2021
title="GitHub"
2122
body="Ask a question"
2223
href="https://github.com/memgraph/memgraph/discussions"
24+
is_external={true}
2325
/>
2426
<SocialCard
2527
icon={<Calendar />}
2628
title="Office hours"
2729
body="Talk with Memgraph engineers"
2830
href="https://memgraph.com/office-hours"
31+
is_external={true}
2932
/>
3033
</SocialCards>
3134
</div>
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { SocialCards } from './SocialCards';
2+
import { SocialCard } from './SocialCard';
3+
4+
// TODO: Make this customizable - forward a list of icon?, title and body and create social cards
5+
export function LabOverview() {
6+
return (
7+
<div>
8+
<SocialCards>
9+
<SocialCard
10+
title="Getting started →"
11+
body="Learn the Memgraph Lab installation and deployment best practices."
12+
href="/docs/memgraph-lab/getting-started"
13+
/>
14+
<SocialCard
15+
title="Querying →"
16+
body="Discover how to execute Cypher queries, explore query results, and optimize performance."
17+
href="/docs/memgraph-lab/querying"
18+
/>
19+
<SocialCard
20+
title="Features →"
21+
body="Explore features such as GraphChat, monitoring, sharing features, and more."
22+
href="/docs/memgraph-lab/features"
23+
/>
24+
<SocialCard
25+
title="Configuration →"
26+
body="Learn how to configure Memgraph Lab in Docker environment using environment variables."
27+
href="/docs/memgraph-lab/configuration"
28+
/>
29+
</SocialCards>
30+
</div>
31+
);
32+
}
33+

components/social-card/SocialCard.tsx

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
import type { ReactNode } from 'react';
22

33
interface SocialCardProps {
4-
icon: ReactNode;
4+
icon?: ReactNode;
55
title: string;
66
href: string;
7-
body: string;
7+
body?: string;
8+
is_external?: boolean;
89
}
910

10-
export function SocialCard({ icon, title, href, body }: SocialCardProps) {
11+
export function SocialCard({ icon, title, href, body, is_external }: SocialCardProps) {
12+
let target = is_external ? "_blank" : "";
1113
return (
1214
<a
1315
href={href}
14-
target='_blank'
16+
target={target}
1517
className="social-card group flex flex-col justify-start overflow-hidden rounded-lg border border-gray-200 text-current no-underline dark:shadow-none hover:shadow-gray-100 dark:hover:shadow-none shadow-gray-100 active:shadow-sm active:shadow-gray-200 transition-all duration-200 hover:border-gray-300 bg-transparent shadow-sm dark:border-neutral-800 hover:bg-slate-50 hover:shadow-md dark:hover:border-neutral-700 dark:hover:bg-neutral-900"
1618
>
1719
<div className="p-4 flex flex-col gap-2 dark:bg-[#3a3436]">
1820
<div className="flex font-semibold items-start gap-2 text-gray-700 dark:text-gray-100 items-center">
1921
{icon}
2022
<span>{title}</span>
2123
</div>
22-
<p className="mt-2 text-sm font-medium text-gray-600 dark:text-gray-300">{body}</p>
24+
{body && (
25+
<p className="mt-2 text-sm font-medium text-gray-600 dark:text-gray-300">
26+
{body}
27+
</p>
28+
)}
2329
</div>
2430
</a>
2531
);

0 commit comments

Comments
 (0)