Compare commits
1 Commits
4b3373869b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16b3767e43 |
@@ -182,9 +182,9 @@ export function DashboardAnalysisCard({ analyses, runs, workouts }: Props) {
|
|||||||
{d.getDate()}
|
{d.getDate()}
|
||||||
{!selected && (hasRun || hasWorkout || hasAnalysis) && (
|
{!selected && (hasRun || hasWorkout || hasAnalysis) && (
|
||||||
<span className="absolute bottom-0.5 left-1/2 flex -translate-x-1/2 gap-0.5">
|
<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]" />}
|
{hasRun && <span className="h-1 w-1 shrink-0 rounded-full bg-[#e0a82e]" />}
|
||||||
{hasWorkout && <span className="h-1 w-1 rounded-full bg-[#70ad47]" />}
|
{hasWorkout && <span className="h-1 w-1 shrink-0 rounded-full bg-sand" />}
|
||||||
{hasAnalysis && <span className="h-1 w-1 rounded-full bg-accent" />}
|
{hasAnalysis && <span className="h-1 w-1 shrink-0 rounded-full bg-accent" />}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</button>
|
</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">
|
<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="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>
|
||||||
<span className="flex items-center gap-1">
|
<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>
|
||||||
<span className="flex items-center gap-1">
|
<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>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,13 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const COLORS: Record<string, string> = {};
|
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 {
|
function getColor(name: string): string {
|
||||||
if (!COLORS[name]) {
|
if (!COLORS[name]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user