mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 20:06:57 +02:00
Remove ThemeToggle component, theme store, dark: Tailwind variants, and dark color values from NOTE_COLORS. Simplify color logic to use a single bg property. Delete dark mode e2e tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
604 B
Svelte
24 lines
604 B
Svelte
<script lang="ts">
|
|
import NoteCard from './NoteCard.svelte';
|
|
import type { Note } from '$lib/types/index.js';
|
|
|
|
interface Props {
|
|
notes: Note[];
|
|
label?: string;
|
|
onEdit: (note: Note) => void;
|
|
}
|
|
|
|
let { notes, label = '', onEdit }: Props = $props();
|
|
</script>
|
|
|
|
{#if notes.length > 0}
|
|
{#if label}
|
|
<p class="mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-gray-500">{label}</p>
|
|
{/if}
|
|
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4" data-testid="note-grid">
|
|
{#each notes as note (note.id)}
|
|
<NoteCard {note} {onEdit} />
|
|
{/each}
|
|
</div>
|
|
{/if}
|