71 lines
2.3 KiB
Vue
71 lines
2.3 KiB
Vue
<script setup lang="ts">
|
|
import { IconStar, IconCheck } from "@tabler/icons-vue";
|
|
import {
|
|
Card,
|
|
CardHeader,
|
|
CardTitle,
|
|
CardDescription,
|
|
CardContent,
|
|
CardFooter,
|
|
Button,
|
|
} from "@heroui-vue/components";
|
|
const features = [
|
|
"无限项目与协作者",
|
|
"优先支持,24 小时响应",
|
|
"高级分析与导出",
|
|
];
|
|
</script>
|
|
<template>
|
|
<Card
|
|
class="relative w-full max-w-md overflow-hidden border border-accent/20 bg-linear-to-br from-accent/12 via-surface to-surface-secondary shadow-lg shadow-accent/10 dark:border-accent/30 dark:from-accent/20 dark:via-surface dark:to-accent/8 dark:shadow-accent/5"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
class="pointer-events-none absolute -top-12 -right-12 size-40 rounded-full bg-accent/20 blur-3xl dark:bg-accent/30"
|
|
/>
|
|
<div
|
|
aria-hidden="true"
|
|
class="pointer-events-none absolute -bottom-8 -left-8 size-28 rounded-full bg-accent/10 blur-2xl dark:bg-accent/20"
|
|
/>
|
|
|
|
<CardHeader class="relative gap-3">
|
|
<span
|
|
class="w-fit rounded-full bg-accent/15 px-2.5 py-0.5 text-xs font-medium tracking-wide text-accent dark:bg-accent/25 dark:text-accent-soft-foreground"
|
|
>
|
|
推荐
|
|
</span>
|
|
<div class="flex items-start gap-3">
|
|
<div
|
|
class="flex size-10 shrink-0 items-center justify-center rounded-xl bg-accent/15 text-accent dark:bg-accent/20 dark:text-accent-soft-foreground"
|
|
>
|
|
<IconStar aria-hidden="true" class="size-5" />
|
|
</div>
|
|
<div class="flex flex-col gap-1">
|
|
<CardTitle>升级到 Pro</CardTitle>
|
|
<CardDescription>
|
|
解锁面向成长型产品的团队工作流与洞察。
|
|
</CardDescription>
|
|
</div>
|
|
</div>
|
|
</CardHeader>
|
|
|
|
<CardContent class="relative">
|
|
<ul class="flex flex-col gap-2">
|
|
<li
|
|
v-for="feature in features"
|
|
:key="feature"
|
|
class="flex items-center gap-2 text-sm text-muted"
|
|
>
|
|
<IconCheck aria-hidden="true" class="size-4 shrink-0 text-accent" />
|
|
{{ feature }}
|
|
</li>
|
|
</ul>
|
|
</CardContent>
|
|
|
|
<CardFooter class="relative flex-col gap-2 sm:flex-row">
|
|
<Button class="w-full shadow-md shadow-accent/20">立即升级</Button>
|
|
<Button class="w-full" variant="secondary">对比方案</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
</template>
|