구성 요소 사용자 프로필 사용자 프로필 구성 요소

사용자 프로필 구성 요소

Neumorphism 디자인 및 다크 모드를 지원하는 반응형 사용자 프로필 구성 요소입니다.

미리 보기

HTML 코드

<div class="min-h-screen flex items-center justify-center bg-gray-200 dark:bg-gray-800 p-4">
  <div class="w-full max-w-sm bg-gray-200 dark:bg-gray-700 rounded-xl shadow-neumorphic-light dark:shadow-neumorphic-dark p-6 space-y-6">
    <div class="flex flex-col items-center">
      <img class="w-24 h-24 rounded-full border-4 border-gray-300 dark:border-gray-600 shadow-neumorphic-inset-light dark:shadow-neumorphic-inset-dark" src="https://randomuser.me/api/portraits/lego/1.jpg" alt="User Avatar">
      <h2 class="mt-4 text-xl font-semibold text-gray-800 dark:text-white">John Doe</h2>
      <p class="text-gray-600 dark:text-gray-300">Software Engineer</p>
    </div>
    
    <div class="border-t border-b border-gray-300 dark:border-gray-600 py-4 space-y-4">
      <div class="flex justify-between text-gray-700 dark:text-gray-200">
        <span>Location:</span>
        <span>San Francisco, CA</span>
      </div>
      <div class="flex justify-between text-gray-700 dark:text-gray-200">
        <span>Joined:</span>
        <span>January 2023</span>
      </div>
      <div class="flex justify-between text-gray-700 dark:text-gray-200">
        <span>Projects:</span>
        <span>15</span>
      </div>
    </div>
    
    <div class="flex justify-around">
      <button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 shadow-neumorphic-light dark:shadow-neumorphic-dark hover:shadow-neumorphic-inset-light dark:hover:shadow-neumorphic-inset-dark transition duration-200">
        <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />
        </svg>
      </button>
      <button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 shadow-neumorphic-light dark:shadow-neumorphic-dark hover:shadow-neumorphic-inset-light dark:hover:shadow-neumorphic-inset-dark transition duration-200">
        <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
        </svg>
      </button>
      <button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 shadow-neumorphic-light dark:shadow-neumorphic-dark hover:shadow-neumorphic-inset-light dark:hover:shadow-neumorphic-inset-dark transition duration-200">
        <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4m-4 4L14 6m-6 6l2-2m0 0l2-2m-3 3L9 9" />
        </svg>
      </button>
    </div>
  </div>
</div>

<style>
  .shadow-neumorphic-light {
    box-shadow: 7px 7px 15px #a7a7a7, -7px -7px 15px #ffffff;
  }
  .shadow-neumorphic-dark {
    box-shadow: 7px 7px 15px #4a4a4a, -7px -7px 15px #7c7c7c;
  }
  .shadow-neumorphic-inset-light {
    box-shadow: inset 5px 5px 10px #a7a7a7, inset -5px -5px 10px #ffffff;
  }
   .shadow-neumorphic-inset-dark {
    box-shadow: inset 5px 5px 10px #4a4a4a, inset -5px -5px 10px #7c7c7c;
  }
</style>

관련 구성 요소

Neumorphism User Profiles 생생한 색상의 구성 요소

비즈니스/기업 웹사이트를 위한 생생한 색상의 Neumorphism 사용자 프로필 구성 요소, 어두운 테마를 지원하는 반응형 디자인.

열다

사용자 프로필 구성 요소

사용자 프로필: Brutalism 디자인, 단색 색 구성표 및 소셜 미디어 목적을 위한 단순한 복잡성을 갖춘 구성 요소입니다.

열다

사용자 프로필 단순 카드

Tailwind CSS, Material Design, Earth Tones 색 구성표가 포함된 반응형 사용자 프로필 카드. 다크 모드 지원, JS가 필요하지 않습니다.

열다