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

Alert Messages 구성 요소

레트로/빈티지 디자인의 경고 메시지 구성 요소로, 다크 모드 및 응답성에 대한 지원을 포함합니다.

미리 보기

HTML 코드

<div class="rounded-md bg-yellow-50 p-4 dark:bg-yellow-900">
  <div class="flex">
    <div class="flex-shrink-0">
      <svg class="h-5 w-5 text-yellow-400 dark:text-yellow-300" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
        <path fill-rule="evenodd" d="M8.485 2.495a.75.75 0 00-1.06 0L3.235 6.725a4.5 4.5 0 000 6.35l4.19 4.19a.75.75 0 001.06 0l4.19-4.19a4.5 4.5 0 000-6.35L9.545 2.495a.75.75 0 00-1.06 0zM9.75 9.75a.75.75 0 000 1.5h.008a.75.75 0 000-1.5H9.75z" clip-rule="evenodd" />
      </svg>
    </div>
    <div class="ml-3">
      <h3 class="text-sm font-medium text-yellow-800 dark:text-yellow-200">Attention needed</h3>
      <div class="mt-2 text-sm text-yellow-700 dark:text-yellow-300">
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid ab dignissimos sint officiis. </p>
      </div>
      <div class="mt-4">
        <div class="-mx-2 -my-1 flex">
          <button type="button" class="rounded-md bg-yellow-50 px-2 py-1.5 text-sm font-medium text-yellow-800 hover:bg-yellow-100 focus:outline-none focus:ring-2 focus:ring-yellow-600 focus:ring-offset-2 dark:bg-yellow-900 dark:text-yellow-200 dark:hover:bg-yellow-800 dark:focus:ring-yellow-400 dark:focus:ring-offset-yellow-900">Take action</button>
          <button type="button" class="ml-3 rounded-md bg-yellow-50 px-2 py-1.5 text-sm font-medium text-yellow-800 hover:bg-yellow-100 focus:outline-none focus:ring-2 focus:ring-yellow-600 focus:ring-offset-2 dark:bg-yellow-900 dark:text-yellow-200 dark:hover:bg-yellow-800 dark:focus:ring-yellow-400 dark:focus:ring-offset-yellow-900">Dismiss</button>
        </div>
      </div>
    </div>
  </div>
</div>

관련 구성 요소

Alert Messages 구성 요소

마이크로 인터랙션에 중점을 둔 애니메이션, 다크 모드 지원 및 응답성이 있는 블로그를 위한 간단한 단색 경고 메시지 구성 요소입니다.

열다

PlayfulForestAlert

숲/녹색 팔레트, 둥근 요소 및 친근한 미학으로 디자인된 장난스럽고 쾌활한 경고 메시지 구성 요소는 비즈니스/기업 웹 사이트에 적합합니다. 반응이 빠르며 다크 모드 지원이 포함되어 있습니다.

열다

Alert Messages 구성 요소

전자 상거래를 위해 glassmorphism 효과로 설계된 반응형 경고 메시지 구성 요소입니다. 단색 색 구성표와 Tailwind CSS를 사용한 다크 모드 지원이 있는 간단한 레이아웃이 특징입니다.

열다