motionsites中文站 / 卡片 · Sour Rat
卡片 · Sour Rat
aadmin2026-09-19 发布组件0 阅读

卡片 · Sour Rat

类型:组件 · 分类:卡片 · 收录:2026-09-19 · 源码:会员可见

[hidecontent type="vip1"]
<div class="toast">
    
    <div class="toast-content">
      This is a toast message.
    </div>
    <div class="toast-icon">
      <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
        <path d="M0 0h24v24H0z" fill="none"></path>
        <path d="M15.795 8.342l-5.909 9.545a1 1 0 0 1-1.628 0l-3.182-4.909a1 1 0 0 1 1.629-1.165l2.556 3.953L14.165 7.51a1 1 0 0 1 1.63 1.165z"></path>
      </svg>
    </div>
  </div>
<style>
/* From Uiverse.io by PriyanshuGupta28 - Tags: alert, card, toast, aleartToast */
.toast {
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-icon svg {
  width: 30px;
  height: 20px;
  fill: #fff;
}

.toast-content {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

</style>
[/hidecontent]
← 返回首页