import React, { useState, useEffect } from 'react'; // Custom inline Icon component to bypass external dependency errors const Icon = ({ name, size = 24, className = "", strokeWidth = 2 }) => { const icons = { Compass: <>, Coins: <>, Dumbbell: <>, Brain: <>, Plane: <>, Zap: <>, Moon: <>, Sun: <>, Quote: <>, Sparkles: <>, CheckCircle2: <>, Circle: <> }; return ( {icons[name]} ); }; const categories = [ { id: 'core', title: 'Core Principles', icon: 'Compass', color: 'text-blue-500', bg: 'bg-blue-50 dark:bg-blue-500/10', border: 'border-blue-100 dark:border-blue-500/20', items: [ "Donate ♥️ Yourself Through Work 😉", "KISS – Keep It Simple & Straightforward", "Create an easily accessible tool that reminds you what's important", "\"Divine\" = \"Natural\" (Stoic mindset)", "There are no facts, only interpretations.", "Get outside every day. Miracles are waiting everywhere." ] }, { id: 'wealth', title: 'Wealth 🤑', icon: 'Coins', color: 'text-emerald-500', bg: 'bg-emerald-50 dark:bg-emerald-500/10', border: 'border-emerald-100 dark:border-emerald-500/20', items: [ "Money is a tool, not the goal. Freedom is the goal.", "Your time is your true wealth.", "Gold 🪙 and silver 🥈 preserve value during currency inflation.", "Fiat currencies always return to zero; confidence-based only.", "Wealth = Income + Wealth × Return on Investment", "ROI = \"Buy & Hold\" + Valuation + Margin of Safety", "Income = Accountability × Leverage × Specific Knowledge", "Leverage = Capital + People + Intellectual Property", "Specific Knowledge = Rare skills that can’t be easily trained" ] }, { id: 'body', title: 'Body 💪', icon: 'Dumbbell', color: 'text-rose-500', bg: 'bg-rose-50 dark:bg-rose-500/10', border: 'border-rose-100 dark:border-rose-500/20', items: [ "Never sacrifice your health for more wealth.", "A fit body shows patience, discipline, resilience, work ethic & self-control.", "Being in shape is a sign of self-respect.", "Health = Exercise × Diet × Sleep", "Exercise = High-Intensity Training + Sports + Rest", "Diet = Natural Foods + Intermittent Fasting × Plants", "Sleep = 8-9 hrs + No alarms + Circadian rhythm" ] }, { id: 'mind', title: 'Mind 🧠', icon: 'Brain', color: 'text-purple-500', bg: 'bg-purple-50 dark:bg-purple-500/10', border: 'border-purple-100 dark:border-purple-500/20', items: [ "Frame every so-called disaster: “Will this matter in 5 years?”", "You get in life what you have the courage to ask for.", "Nothing kills you faster than your own mind.", "No one thinks about you as much as you think they do.", "As long as you have breath, you can fix anything.", "“People will cut you open just to see what you're made of. Show them it's love.”" ] }, { id: 'time', title: 'Time & Travel 🧳', icon: 'Plane', color: 'text-sky-500', bg: 'bg-sky-50 dark:bg-sky-500/10', border: 'border-sky-100 dark:border-sky-500/20', items: [ "Travel because money returns. Time doesn’t.", "Small moments = big impact.", "Don’t waste time on things or people that drain energy.", "Life is short. Invest your time wisely." ] }, { id: 'habits', title: 'Mini Habits', icon: 'Zap', color: 'text-amber-500', bg: 'bg-amber-50 dark:bg-amber-500/10', border: 'border-amber-100 dark:border-amber-500/20', items: [ "Eat half. Walk double. Laugh triple. Love without measure.", "Get outside every day. Nature heals.", "Respect your energy: it's limited daily.", "Happiness = Health + Wealth + Good Relationships" ] } ]; export default function App() { const [darkMode, setDarkMode] = useState(false); const [completedItems, setCompletedItems] = useState(new Set()); const [dailyFocus, setDailyFocus] = useState(null); // Initialize dark mode based on system preference useEffect(() => { if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { setDarkMode(true); } generateDailyFocus(); }, []); // Apply dark mode class to html body useEffect(() => { if (darkMode) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } }, [darkMode]); const toggleItem = (categoryId, itemIndex) => { const key = `${categoryId}-${itemIndex}`; setCompletedItems(prev => { const newSet = new Set(prev); if (newSet.has(key)) { newSet.delete(key); } else { newSet.add(key); } return newSet; }); }; const generateDailyFocus = () => { const randomCategory = categories[Math.floor(Math.random() * categories.length)]; const randomItem = randomCategory.items[Math.floor(Math.random() * randomCategory.items.length)]; setDailyFocus({ category: randomCategory.title, text: randomItem, color: randomCategory.color }); }; return (
{/* Sticky Header */}

Life OS

"Your true wealth is your time and freedom."
{/* Hero Section */}

Your Daily Philosophy Toolkit

Body 💪 Mind 🧠 Wealth 🤑 — A centralized dashboard to align your daily actions with your core values.

{/* Daily Focus Banner */} {dailyFocus && (
Today's Focus ({dailyFocus.category})

"{dailyFocus.text}"

)}
{/* Masonry Grid for Categories */}
{categories.map((category) => { return (

{category.title}

    {category.items.map((item, index) => { const isCompleted = completedItems.has(`${category.id}-${index}`); return (
  • toggleItem(category.id, index)} className={`group flex items-start gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${ isCompleted ? (darkMode ? 'bg-slate-700/30 opacity-60' : 'bg-slate-100 opacity-60') : (darkMode ? 'hover:bg-slate-700/50' : 'hover:bg-slate-50') }`} >
    {isCompleted ? : }
    {item}
  • ); })}
); })}
); }