데이터 시각화 구성 요소

반응형 효과와 어두운 테마를 지원하는 Neumorphism 데이터 시각화 구성 요소.

미리 보기

HTML 코드

<div class="min-h-screen bg-gray-100 dark:bg-gray-900 p-8 flex flex-col items-center justify-center">
  <div class="w-full max-w-4xl">
    <!-- Chart Container (Placeholder) -->
    <div class="bg-gray-200 dark:bg-gray-800 p-6 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark mb-8">
      <h2 class="text-xl font-semibold text-gray-700 dark:text-gray-300 mb-4">Sales Overview</h2>
      <!-- Replace with your chart library integration (e.g., Chart.js, D3.js) -->
      <div class="h-64 flex items-center justify-center text-gray-500 dark:text-gray-400">
        [Your Chart Goes Here]
      </div>
    </div>

    <div class="grid md:grid-cols-2 gap-8">
      <!-- KPl Card 1 -->
      <div class="bg-gray-200 dark:bg-gray-800 p-6 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark">
        <h3 class="text-lg font-semibold text-gray-700 dark:text-gray-300 mb-2">Revenue</h3>
        <p class="text-2xl font-bold text-green-600 dark:text-green-400">$12,345</p>
        <p class="text-sm text-gray-500 dark:text-gray-400">+5% from last month</p>
      </div>

      <!-- KPl Card 2 -->
      <div class="bg-gray-200 dark:bg-gray-800 p-6 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark">
        <h3 class="text-lg font-semibold text-gray-700 dark:text-gray-300 mb-2">New Users</h3>
        <p class="text-2xl font-bold text-blue-600 dark:text-blue-400">1,234</p>
        <p class="text-sm text-gray-500 dark:text-gray-400">+10% from last month</p>
      </div>
    </div>

    <!-- Table Container (Placeholder) -->
    <div class="bg-gray-200 dark:bg-gray-800 p-6 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark mt-8">
        <h2 class="text-xl font-semibold text-gray-700 dark:text-gray-300 mb-4">Recent Activity</h2>
        <!-- Replace with your table implementation -->
        <div class="overflow-x-auto">
            <table class="min-w-full text-gray-700 dark:text-gray-300">
                <thead>
                    <tr>
                        <th class="text-left py-2">User</th>
                        <th class="text-left py-2">Action</th>
                        <th class="text-left py-2">Time</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="py-2 flex items-center">
                            <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar" class="w-8 h-8 rounded-full mr-3">
                            John Doe
                        </td>
                        <td class="py-2">Viewed Dashboard</td>
                        <td class="py-2">1 hour ago</td>
                    </tr>
                     <tr>
                        <td class="py-2 flex items-center">
                            <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User Avatar" class="w-8 h-8 rounded-full mr-3">
                            Jane Smith
                            </td>
                        <td class="py-2">Updated Profile</td>
                        <td class="py-2">2 hours ago</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

  </div>
</div>

<style>
@layer components {
  .shadow-neumorphic-light {
    box-shadow: 7px 7px 15px #a7a7a7, -7px -7px 15px #ffffff;
  }
  .dark .shadow-neumorphic-dark {
    box-shadow: 7px 7px 15px #1a1a1a, -7px -7px 15px #333333;
  }
}
</style>

관련 구성 요소

데이터 시각화 구성 요소

레트로/빈티지 스타일의 데이터 시각화 구성 요소로, 어두운 테마를 지원하고 Tailwind CSS를 사용하여 반응형 효과를 제공합니다.

열다

Neumorphism Data Visualization 구성 요소

블로그 콘텐츠를 위한 뉴모피즘 스타일의 데이터 시각화 구성 요소로, 파스텔 색상 구성표, 적당한 복잡성, 응답성 및 다크 모드 지원을 제공합니다.

열다

Social_Connection_Chart_Component

자연에서 영감을 받은 유기적 디자인의 중간 복잡성 소셜 연결 차트 구성 요소로, 검은색, 흰색 및 단일 밝은 액센트 색상을 특징으로 합니다. 데이트 및 소셜 플랫폼을 위해 설계된 이 제품은 흐르는 선과 사용자 아바타로 연결을 시각적으로 보여줍니다. 다크 모드 지원으로 완벽하게 반응합니다.

열다