Added second supporter (#182)

This commit is contained in:
Thorsten Sommer 2024-11-02 11:40:17 +01:00 committed by GitHub
parent e419c5561b
commit 8bd54e6d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 56 additions and 9 deletions

View File

@ -8,7 +8,7 @@ Things we are currently working on:
Other News:
- October 2024: We have our first financial supporter: Thank you @richard-stanton for financially supporting AI Studio. The supporter page in the app will be updated accordingly with the next update.
- October 2024: We've found the first two financial supporters. Huge thanks to `richard-stanton` and `peerschuett` for backing the project. Thanks for having the courage to be the first to support us.
- October 2024: The [German Aerospace Center (DLR)](https://en.wikipedia.org/wiki/German_Aerospace_Center) ([Website](https://www.dlr.de/en)) will use AI Studio at least within the scope of one project and will also contribute to its further development. This is great news.

View File

@ -0,0 +1,18 @@
<MudListItem T="string" Icon="@this.Icon">
@if (string.IsNullOrWhiteSpace(this.URL))
{
<MudText Typo="Typo.body1" Inline="@true">
@this.Name
</MudText>
}
else
{
<MudLink Href="@this.URL" Target="_blank">
@this.Name
</MudLink>
}
<MudText Typo="Typo.body1" Class="ml-3" Inline="@true">
@this.Acknowledgment
</MudText>
</MudListItem>

View File

@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Components;
namespace AIStudio.Components;
public partial class Supporter : ComponentBase
{
[Parameter]
public string Name { get; set; } = string.Empty;
[Parameter]
public string Acknowledgment { get; set; } = string.Empty;
[Parameter]
public string? URL { get; set; }
[Parameter]
public SupporterType Type { get; set; }
private string Icon => this.Type switch
{
SupporterType.INDIVIDUAL => Icons.Material.Filled.Person,
SupporterType.ORGANIZATION => Icons.Material.Filled.Business,
_ => Icons.Material.Filled.Person4,
};
}

View File

@ -0,0 +1,8 @@
namespace AIStudio.Components;
public enum SupporterType
{
UNKNOWN,
INDIVIDUAL,
ORGANIZATION
}

View File

@ -33,14 +33,8 @@
The first 10 supporters who make a monthly contribution:
</MudText>
<MudList T="string">
<MudListItem T="string" Icon="@Icons.Material.Filled.Person">
<MudLink Href="https://github.com/richard-stanton" Target="_blank">
richard-stanton
</MudLink>
<MudText Typo="Typo.body1" Class="ml-3" Inline="@true">
Thank you, Richard, for being the first.
</MudText>
</MudListItem>
<Supporter Name="richard-stanton" Type="SupporterType.INDIVIDUAL" URL="https://github.com/richard-stanton" Acknowledgment="Thank you, Richard, for being the first."/>
<Supporter Name="peerschuett" Type="SupporterType.INDIVIDUAL" URL="https://github.com/peerschuett" Acknowledgment="Thank you, Peer, for your courage in being the second person to support the project financially."/>
</MudList>
</MudPaper>
</MudItem>

View File

@ -1,2 +1,3 @@
# v0.9.16, build 191 (2024-11-xx xx:xx UTC)
- Added our second financial contributor: Thanks `peerschuett` for supporting AI Studio financially.
- Improved the layout of the app window, for example, in full-screen mode on large or high-resolution monitors.