구성 요소 경고 메시지 Alert Messages 구성 요소

Alert Messages 구성 요소

Tailwind CSS를 사용하여 3D 디자인, 반응형 기능 및 어두운 테마를 지원하는 Alert Messages 구성 요소입니다. 구성 요소에는 아이콘과 메시지가 있는 다양한 경고 유형(성공, 오류, 경고, 정보)이 포함됩니다.

미리 보기

HTML 코드

<div class="flex flex-col space-y-4 p-6">  <!-- Success Alert -->  <div class="relative flex items-center justify-between bg-green-500 text-white py-3 px-4 rounded-lg shadow-lg transform transition duration-300 hover:scale-105 dark:bg-green-700">    <div class="flex items-center space-x-2">      <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>      </svg>      <span class="font-semibold">Success:</span>      <span>Your action was successful.</span>    </div>    <button class="text-white hover:text-gray-200 focus:outline-none">      <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>      </svg>    </button>  </div>  <!-- Error Alert -->  <div class="relative flex items-center justify-between bg-red-500 text-white py-3 px-4 rounded-lg shadow-lg transform transition duration-300 hover:scale-105 dark:bg-red-700">    <div class="flex items-center space-x-2">      <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path>      </svg>      <span class="font-semibold">Error:</span>      <span>Something went wrong.</span>    </div>    <button class="text-white hover:text-gray-200 focus:outline-none">      <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>      </svg>    </button>  </div>  <!-- Warning Alert -->  <div class="relative flex items-center justify-between bg-yellow-500 text-white py-3 px-4 rounded-lg shadow-lg transform transition duration-300 hover:scale-105 dark:bg-yellow-700">    <div class="flex items-center space-x-2">      <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>      </svg>      <span class="font-semibold">Warning:</span>      <span>Proceed with caution.</span>    </div>    <button class="text-white hover:text-gray-200 focus:outline-none">      <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>      </svg>    </button>  </div>  <!-- Info Alert -->  <div class="relative flex items-center justify-between bg-blue-500 text-white py-3 px-4 rounded-lg shadow-lg transform transition duration-300 hover:scale-105 dark:bg-blue-700">    <div class="flex items-center space-x-2">      <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>      </svg>      <span class="font-semibold">Info:</span>      <span>Here is some information.</span>    </div>    <button class="text-white hover:text-gray-200 focus:outline-none">      <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>      </svg>    </button>  </div></div>

관련 구성 요소

Alert Messages 구성 요소

어두운 UI, 가을 색 구성표로 설계된 경고 메시지 구성 요소로 전문 컨설팅 서비스에 적합합니다. 반응이 빠르며 다크 모드를 지원합니다.

열다

Alert Messages 구성 요소

머티리얼 디자인 원칙에 따라 설계된 복잡하고 반응이 빠른 경고 메시지 구성요소로, 바다/파란색 톤을 사용하여 비영리/자선 웹사이트에 적합합니다. 여러 경고 유형, 해제 기능 및 다크 모드 지원이 포함됩니다.

열다

Corporate_Professional_Alert_Messages

비즈니스 또는 포트폴리오 환경에 적합한 깔끔하고 신뢰할 수 있는 경고 메시지 모음으로, 보석 색조 색상과 다크 모드를 지원하는 반응형 디자인을 특징으로 합니다. 정보, 성공, 경고 및 오류 경고를 포함합니다.

열다