45 lines
1.3 KiB
Vue
45 lines
1.3 KiB
Vue
<script setup lang="ts">
|
||
import {
|
||
Alert,
|
||
AlertContent,
|
||
AlertDescription,
|
||
AlertIndicator,
|
||
AlertTitle,
|
||
Button,
|
||
CloseButton,
|
||
} from "@heroui-vue/components";
|
||
</script>
|
||
|
||
<template>
|
||
<div class="w-full max-w-xl">
|
||
<Alert
|
||
class="relative overflow-hidden rounded-xl border border-warning/20 bg-linear-to-br from-warning/10 via-surface to-surface-secondary shadow-sm dark:border-warning/30 dark:from-warning/15 dark:via-surface dark:to-warning/5"
|
||
status="warning"
|
||
>
|
||
<div
|
||
aria-hidden="true"
|
||
class="pointer-events-none absolute -top-8 -right-8 size-28 rounded-full bg-warning/15 blur-2xl dark:bg-warning/25"
|
||
/>
|
||
<AlertIndicator class="relative text-warning" />
|
||
<AlertContent class="relative">
|
||
<AlertTitle>支付方式即将过期</AlertTitle>
|
||
<AlertDescription>
|
||
您的 Visa 卡(尾号 4242)将于 3 月 28 日过期。请更新账单信息,以免影响
|
||
Pro 订阅。
|
||
</AlertDescription>
|
||
<Button class="mt-3 sm:hidden" size="sm" variant="tertiary">
|
||
更新账单
|
||
</Button>
|
||
</AlertContent>
|
||
<Button
|
||
class="relative hidden shrink-0 sm:inline-flex"
|
||
size="sm"
|
||
variant="tertiary"
|
||
>
|
||
更新账单
|
||
</Button>
|
||
<CloseButton class="relative" />
|
||
</Alert>
|
||
</div>
|
||
</template>
|