Skip to content

Commit 4f77db7

Browse files
committed
Add badges to introduction
1 parent 03d8e1c commit 4f77db7

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

src/lib/components/GitHubBadge.svelte

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script lang="ts">
2+
import { cn } from '$lib/utils';
3+
import type { ClassValue } from 'clsx';
4+
5+
let className: ClassValue;
6+
export { className as class };
7+
8+
export let src: string;
9+
export let href: string;
10+
export let alt: string = '';
11+
</script>
12+
13+
<a class={cn('mt-2 border-b-0', className)} {href} target="_blank">
14+
<img class="m-0" {src} {alt} />
15+
</a>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script lang="ts">
2+
import { cn } from '$lib/utils';
3+
import type { ClassValue } from 'clsx';
4+
5+
let className: ClassValue;
6+
export { className as class };
7+
</script>
8+
9+
<div class={cn('flex items-center gap-2', className)}>
10+
<slot></slot>
11+
</div>

src/routes/docs/[...1]getting-started/[...1]introduction/+page.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,23 @@ description: FastEndpoints supports both property injection and constructor inje
55

66
# {$frontmatter.title}
77

8-
ImmediatePlatform offers libraries that make implementing the Vertical Slice Architecture, CQRS pattern and Validation in .NET easier. You can think of the ImmediatePlatform suite as an alternative to MediatR/Mediator, FluentValidation and ASP.NET Core Minimal APIs/Controllers. Because the suite is made with modularity in mind, all of the libraries are opt-in and can be mixed and matched with other solutions (e.g. ASP.NET Core Controllers + Immediate.Handlers + FluentValidation). Please see our [full cookbook](/docs/) for all integration examples.
8+
<script>
9+
import GitHubBadge from '$lib/components/GitHubBadge.svelte';
10+
import GitHubBadgeCollection from '$lib/components/GitHubBadgeCollection.svelte';
11+
</script>
12+
13+
ImmediatePlatform offers libraries that make implementing the Vertical Slice Architecture, CQRS pattern and Validation in .NET easier. You can think of the ImmediatePlatform suite as an alternative to MediatR/Mediator, FluentValidation and ASP.NET Core Minimal APIs/Controllers. Because the suite is made with modularity in mind, all of the libraries are opt-in and can be mixed and matched with other solutions (e.g. ASP.NET Core Controllers + Immediate.Handlers + FluentValidation). Please see our [full cookbook](/docs/cookbook/the-cookbook) for all integration examples.
914

1015
Here is a full list of what each library has to offer:
1116

1217
## Immediate.Handlers
1318

19+
<GitHubBadgeCollection>
20+
<GitHubBadge src="https://img.shields.io/nuget/v/Immediate.Handlers.svg" href="https://www.nuget.org/packages/Immediate.Handlers/" alt="Immediate.Handlers NuGet badge" />
21+
<GitHubBadge src="https://img.shields.io/github/release/ImmediatePlatform/Immediate.Handlers.svg" href="https://GitHub.com/ImmediatePlatform/Immediate.Handlers/releases/" alt="Immediate.Handlers GitHub Release badge" />
22+
<GitHubBadge src="https://img.shields.io/github/license/ImmediatePlatform/Immediate.Handlers.svg" href="https://github.com/ImmediatePlatform/Immediate.Handlers/blob/master/license.txt" alt="Immediate.Handlers MIT license badge" />
23+
</GitHubBadgeCollection>
24+
1425
- Implementation of the mediator pattern in .NET using source-generation.
1526
- Support for implementing the Command and Query Responsibility Segregation (CQRS) pattern with minimal boilerplate.
1627
- Support for addressing cross-cutting concerns via [behaviors](/docs/Immediate.Handlers/creating-behaviors).
@@ -20,10 +31,22 @@ Here is a full list of what each library has to offer:
2031

2132
## Immediate.Apis
2233

34+
<GitHubBadgeCollection>
35+
<GitHubBadge src="https://img.shields.io/nuget/v/Immediate.Apis.svg" href="https://www.nuget.org/packages/Immediate.Apis/" alt="Immediate.Apis NuGet badge" />
36+
<GitHubBadge src="https://img.shields.io/github/release/ImmediatePlatform/Immediate.Apis.svg" href="https://GitHub.com/ImmediatePlatform/Immediate.Apis/releases/" alt="Immediate.Apis GitHub Release badge" />
37+
<GitHubBadge src="https://img.shields.io/github/license/ImmediatePlatform/Immediate.Apis.svg" href="https://github.com/ImmediatePlatform/Immediate.Apis/blob/master/license.txt" alt="Immediate.Apis MIT license badge" />
38+
</GitHubBadgeCollection>
39+
2340
- Source generator for Minimal APIs for Immediate.Handlers
2441
- Allows for easily mapping handlers to endpoints
2542

2643
## Immediate.Validations
2744

45+
<GitHubBadgeCollection>
46+
<GitHubBadge src="https://img.shields.io/nuget/v/Immediate.Validations.svg" href="https://www.nuget.org/packages/Immediate.Validations/" alt="Immediate.Validations NuGet badge" />
47+
<GitHubBadge src="https://img.shields.io/github/release/ImmediatePlatform/Immediate.Validations.svg" href="https://GitHub.com/ImmediatePlatform/Immediate.Validations/releases/" alt="Immediate.Validations GitHub Release badge" />
48+
<GitHubBadge src="https://img.shields.io/github/license/ImmediatePlatform/Immediate.Validations.svg" href="https://github.com/ImmediatePlatform/Immediate.Validations/blob/master/license.txt" alt="Immediate.Validations MIT license badge" />
49+
</GitHubBadgeCollection>
50+
2851
- Source generator for validating Immediate.Handlers handlers parameters
2952
- Built for maximum performance and minimal boilerplate validation

0 commit comments

Comments
 (0)