primevue-mirror/apps/showcase/components/template/TemplateLicense.vue

42 lines
2.1 KiB
Vue
Raw Normal View History

2024-04-08 09:33:03 +00:00
<template>
2024-06-26 09:26:19 +00:00
<div class="px-6 py-6 sm:px-10 sm:py-10 lg:py-20 lg:px-8 rounded-3xl bg-surface-0 dark:bg-surface-900">
<div class="template-license max-w-3xl mx-auto">
<div class="flex flex-wrap items-start justify-center gap-6">
2024-04-08 09:33:03 +00:00
<template v-for="(detail, index) in license.licenseDetails" :key="index">
2024-06-26 09:26:19 +00:00
<div class="flex-1 border border-surface rounded-xl lg:rounded-2xl p-6 min-w-80">
<span class="text-surface-600 dark:text-surface-400 font-semibold">{{ detail.title }}</span>
<div class="text-surface-900 dark:text-surface-0 text-4xl font-semibold mt-4 mb-5">
<span :class="{ 'text-surface-600 dark:text-surface-400 line-through mr-4': license.showDiscount }">{{ detail.price }}</span>
2024-04-29 10:31:11 +00:00
<span v-if="license.showDiscount">{{ detail.discount }}</span>
</div>
2024-06-26 09:26:19 +00:00
<div class="flex flex-col gap-2 mb-5">
2024-04-08 09:33:03 +00:00
<template v-for="(txt, i) in detail.included" :key="`text_${i}`">
2024-06-26 09:26:19 +00:00
<p class="text-muted-color m-0">{{ txt }}</p>
2024-04-08 09:33:03 +00:00
</template>
</div>
<a href="https://www.primefaces.org/layouts/licenses" target="_blank">
2024-06-26 09:26:19 +00:00
<Button label="License Details" severity="contrast" class="w-full" />
2024-04-08 09:33:03 +00:00
</a>
</div>
</template>
</div>
2024-06-26 09:26:19 +00:00
<p class="text-muted-color text-center mt-6 mb-0">{{ license.description }}</p>
<p class="text-muted-color text-center mt-6 mb-0">
2024-04-08 09:33:03 +00:00
Visit the
2024-06-26 09:26:19 +00:00
<a :href="license.documentLink" target="_blank" class="text-primary cursor-pointer transition-all hover:underline"> official documentation </a> for more information.
2024-04-08 09:33:03 +00:00
</p>
</div>
</div>
</template>
<script>
export default {
props: {
license: {
type: null,
default: null
}
}
};
</script>