Skip to content

Commit 6bdd263

Browse files
committed
get the base done
1 parent 4ebb7bc commit 6bdd263

File tree

3 files changed

+86
-42
lines changed

3 files changed

+86
-42
lines changed

src/components/OverviewCards.tsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import React from 'react';
2+
3+
interface OverviewCardProps {
4+
title: string;
5+
description: string | React.ReactNode;
6+
href: string;
7+
icon: string;
8+
}
9+
10+
const OverviewCard: React.FC<OverviewCardProps> = ({ title, description, href, icon }) => {
11+
return (
12+
<a href={href} className="service-box" style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-start' }}>
13+
<img src={icon} alt={`${title} icon`} width={40} height={40} style={{ marginBottom: '1rem' }} />
14+
<div className="service-box-content">
15+
<div className="service-box-title">{title}</div>
16+
<div className="service-box-description">{description}</div>
17+
</div>
18+
</a>
19+
);
20+
};
21+
22+
interface OverviewCardsProps {
23+
cards: OverviewCardProps[];
24+
}
25+
26+
export const OverviewCards: React.FC<OverviewCardsProps> = ({ cards }) => {
27+
return (
28+
<div className="service-grid">
29+
{cards.map((card, index) => (
30+
<OverviewCard key={index} {...card} />
31+
))}
32+
</div>
33+
);
34+
};

src/content/docs/aws/index.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/content/docs/aws/index.mdx

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Welcome to LocalStack Docs
3+
description: Get started with LocalStack Docs.
4+
template: doc
5+
sidebar:
6+
label: Welcome
7+
order: 1
8+
---
9+
10+
import { OverviewCards } from '../../../components/OverviewCards';
11+
12+
<OverviewCards
13+
cards={[
14+
{
15+
title: "Getting Started",
16+
description: "Install and run LocalStack on your machine, and discover the benefits of local cloud development.",
17+
href: "/aws/getting-started",
18+
icon: "/images/aws/rocket.svg"
19+
},
20+
{
21+
title: "Local AWS Services",
22+
description: "Browse through the AWS Services that LocalStack supports & emulates in your development environment.",
23+
href: "/aws/services",
24+
icon: "/images/aws/integrations.svg"
25+
},
26+
{
27+
title: "Capabilities",
28+
description: "Learn about the LocalStack's capabilities and using them to accelerate your development workflow.",
29+
href: "/aws/capabilities",
30+
icon: "/images/aws/ci.svg"
31+
},
32+
{
33+
title: "Tooling",
34+
description: "Learn how LocalStack's Cloud Developer Tools can boost your development & testing efficiency.",
35+
href: "/aws/tooling",
36+
icon: "/images/aws/aws.svg"
37+
},
38+
{
39+
title: "Integrations",
40+
description: "Learn how to use LocalStack with your favorite cloud development tools, libraries & frameworks.",
41+
href: "/aws/integrations",
42+
icon: "/images/aws/tools.svg"
43+
},
44+
{
45+
title: "Enterprise",
46+
description: "Learn how LocalStack Enterprise provides additional security, flexibility, compliance & support.",
47+
href: "/aws/enterprise",
48+
icon: "/images/aws/understanding.svg"
49+
}
50+
]}
51+
client:load
52+
/>

0 commit comments

Comments
 (0)