پیش‌نمایش زنده
کد HTML
<div class="notifications-container">
  <div class="info">
    <div class="flex">
      <div class="flex-shrink-0">
        <svg class="info-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
          <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path>
      </svg>
      </div>
      <div class="info-prompt-wrap">
        <p class="">
          Confused? So are we, yet you can
          <a class="info-prompt-link" href="#">click here to pretend you know what you're doing →</a>
        </p>
    </div>
  </div>
  </div>
</div>
کد CSS
.notifications-container {
  width: 320px;
  height: auto;
  font-size: 0.875rem;
  line-height: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flex {
  display: flex;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.info {
  background-color: rgb(239, 246, 255);
  border-left-width: 4px;
  border-radius: 0.375rem;
  padding: 1rem;
}

.info-svg {
  height: 1.25rem;
  width: 1.25rem;
  opacity: 70%;
  color: rgb(29, 78, 216);
}

.info-prompt-wrap {
  margin-left: 0.75rem;
  color: rgb(29, 78, 216);
}

.info-prompt-link {
  font-weight: 500;
  color: rgb(0, 29, 110);
  text-decoration: underline;
}

.info-prompt-link:hover {
  color: rgb(29, 78, 216);
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06