Compare commits

...

1 Commits

Author SHA1 Message Date
Dominik Klarkowski
16b3767e43 init 2026-06-23 08:08:35 +02:00
2 changed files with 13 additions and 7 deletions

View File

@@ -182,9 +182,9 @@ export function DashboardAnalysisCard({ analyses, runs, workouts }: Props) {
{d.getDate()}
{!selected && (hasRun || hasWorkout || hasAnalysis) && (
<span className="absolute bottom-0.5 left-1/2 flex -translate-x-1/2 gap-0.5">
{hasRun && <span className="h-1 w-1 rounded-full bg-[#5b9bd5]" />}
{hasWorkout && <span className="h-1 w-1 rounded-full bg-[#70ad47]" />}
{hasAnalysis && <span className="h-1 w-1 rounded-full bg-accent" />}
{hasRun && <span className="h-1 w-1 shrink-0 rounded-full bg-[#e0a82e]" />}
{hasWorkout && <span className="h-1 w-1 shrink-0 rounded-full bg-sand" />}
{hasAnalysis && <span className="h-1 w-1 shrink-0 rounded-full bg-accent" />}
</span>
)}
</button>
@@ -194,13 +194,13 @@ export function DashboardAnalysisCard({ analyses, runs, workouts }: Props) {
<div className="mt-3 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-fg/55">
<span className="flex items-center gap-1">
<span className="h-1.5 w-1.5 rounded-full bg-[#5b9bd5]" /> Bieg
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-[#e0a82e]" /> Bieg
</span>
<span className="flex items-center gap-1">
<span className="h-1.5 w-1.5 rounded-full bg-[#70ad47]" /> Siłownia
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-sand" /> Siłownia
</span>
<span className="flex items-center gap-1">
<span className="h-1.5 w-1.5 rounded-full bg-accent" /> Analiza
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-accent" /> Analiza
</span>
</div>

View File

@@ -23,7 +23,13 @@ type Props = {
};
const COLORS: Record<string, string> = {};
const PALETTE = ["var(--color-accent)", "#5b9bd5", "#70ad47", "#ffc000", "#ed7d31"];
const PALETTE = [
"var(--color-accent)",
"var(--color-sand)",
"#ff9466",
"#8f3415",
"#f4c9a3",
];
function getColor(name: string): string {
if (!COLORS[name]) {