import React, { useState, useEffect } from 'react'; import { Settings, Wind, RefreshCw, Trash2, ArrowRight, Gauge, Info, Zap } from 'lucide-react'; const App = () => { const [isSpinning, setIsSpinning] = useState(false); const [isAirOn, setIsAirOn] = useState(false); // 미생물 이모지 데이터 const microbes = [ '🙂', '😊', '🦠', '😃', '🌿', '🙂', '🦠', '😊', '🙂', '😃', '🌿', '🦠', '😊', '🙂', '🦠' ]; // 음식물 입자 데이터 const foodParticles = [ { color: 'bg-orange-600', size: 'w-4 h-4 md:w-6 md:h-6', rounded: 'rounded-lg', top: '20%', left: '20%' }, { color: 'bg-green-700', size: 'w-3 h-3 md:w-4 md:h-4', rounded: 'rounded-full', top: '15%', left: '15%' }, { color: 'bg-yellow-600', size: 'w-3 h-3 md:w-5 md:h-5', rounded: 'rounded-sm', top: '40%', left: '60%' }, { color: 'bg-red-800', size: 'w-2 h-2 md:w-3 md:h-3', rounded: 'rounded-full', top: '60%', left: '30%' }, { color: 'bg-amber-700', size: 'w-4 h-4 md:w-5 md:h-5', rounded: 'rounded-md', top: '30%', left: '70%' }, { color: 'bg-orange-400', size: 'w-2 h-2 md:w-3 md:h-3', rounded: 'rounded-full', top: '50%', left: '80%' }, { color: 'bg-green-800', size: 'w-3 h-3 md:w-4 md:h-4', rounded: 'rounded-lg', top: '25%', left: '40%' }, { color: 'bg-brown-600', size: 'w-3 h-3 md:w-4 md:h-4', rounded: 'rounded-none', top: '55%', left: '10%' }, ]; // 흙 입자 데이터 (작은 점들) - useMemo 대신 컴포넌트 내부 상수로 정의하여 리렌더링 시 위치 유지 const [soilParticles] = useState(() => [...Array(25)].map(() => ({ top: `${Math.random() * 80 + 10}%`, left: `${Math.random() * 90 + 5}%`, size: Math.random() > 0.5 ? 'w-1 h-1' : 'w-1.5 h-1.5', opacity: Math.random() * 0.5 + 0.2 }))); // 공기 방울 데이터 const [bubbles] = useState(() => [...Array(20)].map(() => ({ left: `${Math.random() * 90 + 5}%`, animationDuration: `${2 + Math.random() * 2}s`, animationDelay: `${Math.random() * 2}s` }))); return (
{/* 커스텀 애니메이션 정의 */}
{/* 헤더 섹션: 모바일에서는 세로 배치, 데스크탑에서는 가로 배치 */}

바이오 리액터 System

하단 가로형 통합 구동축 시스템 개념도

{/* 컨트롤 버튼 그룹: 모바일에서 버튼이 꽉 차도록 flex-1 사용 */}
{/* 메인 애니메이션 영역 */}
{/* 상부: 투입구 공간 가이드 */}
Waste Input Area
{/* 메인 챔버: 미생물 처리 공간 (배경) */}
{/* 내부 조명 효과 (그라디언트) */}
{/* 공기 기포 애니메이션 */} {isAirOn && (
{bubbles.map((bubble, i) => (
))}
)} {/* 미생물 캐릭터 및 음식물, 흙 입자 분포 */}
{/* 흙 입자 (배경 효과) */} {soilParticles.map((particle, idx) => (
))} {/* 미생물 이모지 - 반응형 그리드 배치 느낌 */}
{microbes.map((emoji, idx) => (
{emoji}
))}
{/* 움직이는 음식물 입자 */} {foodParticles.map((item, idx) => (
))}
{/* 하단 가로형 통합 장치 (메인 관) */}
{/* 메인 가로축 관 */}
{/* 교반 날개들 */} {[...Array(6)].map((_, i) => (
{/* 날개 끝부분 디테일 */}
))} {/* 하단 공기 노즐 */}
{[...Array(8)].map((_, i) => (
))}
{/* 구동 모터부 */}
{/* 라벨링 가이드 */}
구동 모터
통합 교반축
공기 노즐
{/* 하단 상세 설명 그리드: 모바일 1열, 데스크탑 3열 */}

교반 시스템

가로 회전축이 바닥면의 음식물을 끊임없이 섞어줍니다. 사각지대 없는 강력한 혼합으로 미생물 분해 효율을 극대화합니다.

공기 주입

하단 노즐에서 산소를 직접 미세 분사하여 호기성 미생물에게 최적의 환경을 제공하고 악취 발생을 원천 차단합니다.

바이오 리액터

물리적 교반과 산소 공급이 결합되어 단순 퇴비함을 넘어선 고효율 미생물 배양기 역할을 수행하여 처리 속도를 높입니다.

{/* 프로세스 플로우바: 모바일에서 가로 스크롤 가능하도록 설정 */}
투입
혼합
산소 공급
퇴비화 완료
); }; export default App;