feat: Enhance UI with system theme, refined headers, and new layout

- layout: Auto-detect system theme on first visit
- header: Refined layout (centered, uppercase subtitle, inline help)
- categories: Compact 'Soft Pill' design with improved focus state
- data: Reorganized Zellij to CLI Tools
- lint: Fixed various linting issues
This commit is contained in:
N1C4T
2026-01-06 03:03:48 +04:00
parent 94e9f6b598
commit 07773ed42e
16 changed files with 256 additions and 317 deletions

View File

@@ -1,7 +1,7 @@
'use client';
import { useState, useEffect, useCallback } from 'react';
import { Check, Copy, ChevronUp, Download } from 'lucide-react';
import { Check, Copy, ChevronUp, Download, X } from 'lucide-react';
import { distros, type DistroId } from '@/lib/data';
import { generateInstallScript } from '@/lib/generateInstallScript';
import { analytics } from '@/lib/analytics';
@@ -227,6 +227,20 @@ export function CommandFooter({
</code>
</div>
{/* Clear button */}
<button
onClick={clearAll}
disabled={selectedCount === 0}
className={`flex items-center gap-1.5 px-3 py-3 border-l border-[var(--border-primary)]/30 transition-colors ${selectedCount > 0
? 'text-[var(--text-muted)] hover:bg-rose-500/10 hover:text-rose-400'
: 'text-[var(--text-muted)] opacity-50 cursor-not-allowed'
}`}
title="Clear All (c)"
>
<X className="w-3 h-3 shrink-0" />
<span className="hidden sm:inline whitespace-nowrap">Clear</span>
</button>
{/* Download button */}
<button
onClick={handleDownload}