Spaces:
Runtime error
Runtime error
Download TaskTrackingSystem.WebApp/Components/Shared/Charts/ChartCard.razor from Yuruyuruu/task-tracking-system: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/spaces/Yuruyuruu/task-tracking-system/resolve/main/TaskTrackingSystem.WebApp/Components/Shared/Charts/ChartCard.razor
- Command line
-
hf download hf://spaces/Yuruyuruu/task-tracking-system/TaskTrackingSystem.WebApp/Components/Shared/Charts/ChartCard.razor
-
curl -L -o ChartCard.razor https://huggingface.co/spaces/Yuruyuruu/task-tracking-system/resolve/main/TaskTrackingSystem.WebApp/Components/Shared/Charts/ChartCard.razor
1.21 kB
| <div class="@CardClass"> | |
| <div class="flex items-start justify-between gap-4"> | |
| <div> | |
| <h3 class="@TitleClass">@Title</h3> | |
| @if (!string.IsNullOrWhiteSpace(Subtitle)) | |
| { | |
| <p class="mt-1 text-sm text-slate-500 dark:text-slate-400">@Subtitle</p> | |
| } | |
| </div> | |
| @if (Actions is not null) | |
| { | |
| <div class="shrink-0"> | |
| @Actions | |
| </div> | |
| } | |
| </div> | |
| <div class="@BodyClass"> | |
| @ChildContent | |
| </div> | |
| </div> | |
| @code { | |
| [] public string Title { get; set; } = string.Empty; | |
| [] public string? Subtitle { get; set; } | |
| [] public string CardClass { get; set; } = "rounded-xl border border-slate-200 bg-white p-6 text-slate-900 shadow-sm shadow-slate-200/60 dark:border-slate-800 dark:bg-slate-900 dark:text-slate-100"; | |
| [] public string TitleClass { get; set; } = "text-xl font-bold text-slate-900 dark:text-slate-50"; | |
| [] public string BodyClass { get; set; } = "mt-6"; | |
| [] public RenderFragment? Actions { get; set; } | |
| [] public RenderFragment? ChildContent { get; set; } | |
| } | |