mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 16:47:22 +01:00
- Fix currency defaults (SATS → CHF) across forms, configs, and API routes - Remove @ts-nocheck from socialService.ts and improve type safety - Replace console.log statements with proper logger utility in production code - Additional type safety improvements and code quality enhancements - Documentation updates for improved maintainability All changes follow DRY, SSOT, and separation of concerns principles.
2.0 KiB
2.0 KiB
created_date, last_modified_date, last_modified_summary
| created_date | last_modified_date | last_modified_summary |
|---|---|---|
| 2025-12-27 | 2025-12-27 | Documentation for modular logo refactor |
OrangeCat Logo Refactor
Overview
Refactored the OrangeCat logo to be modular, DRY, and feature a cute minimalist cat in a pirate hat.
Design
The new logo features:
- Cute cat face with friendly eyes and smile
- Pirate hat with skull decoration (minimalist)
- Bitcoin orange (#FF6B00) as primary color
- Minimalist design - clean lines, simple shapes
- Responsive sizing - works at all sizes
Architecture
Modular Components
-
CatIcon.tsx- Standalone icon component- Reusable SVG icon
- Configurable size and colors
- Can be used independently
-
Logo.tsx- Logo component with text- Uses
CatIconinternally - Includes "OrangeCat" text and tagline
- Single source of truth for logo display
- Uses
-
orange-cat-logo.svg- Static SVG file- Used for favicons and metadata
- Matches the
CatIcondesign
DRY Principles
- Single source -
CatIconis the only place the icon SVG is defined - Reusable -
CatIconcan be used anywhere (not just in Logo) - Consistent - All logo instances use the same component
Usage
Basic Logo (with text)
import Logo from '@/components/layout/Logo';
<Logo />
Logo without text
<Logo showText={false} />
Custom size
<Logo size="lg" />
Standalone Icon
import { CatIcon } from '@/components/layout/CatIcon';
<CatIcon size="md" />
Custom colors
<CatIcon
size="lg"
catColor="#FF6B00"
hatColor="#1A1A1A"
/>
Files
src/components/layout/CatIcon.tsx- Icon componentsrc/components/layout/Logo.tsx- Logo componentpublic/images/orange-cat-logo.svg- Static SVG file
Benefits
✅ Modular - Icon can be used independently
✅ DRY - Single source of truth
✅ Maintainable - Change once, updates everywhere
✅ Flexible - Customizable size and colors
✅ Cute - Minimalist cat in pirate hat design