primevue-mirror/components/landing/TemplateSection.vue

124 lines
5.4 KiB
Vue
Raw Normal View History

2022-09-06 13:53:29 +00:00
<template>
2024-05-20 11:56:52 +00:00
<section class="landing-templates theme-dark py-20">
<div class="section-header relative z-30">Templates</div>
<p class="section-detail relative z-30">Professionally designed highly customizable application templates to get started in style.</p>
<div class="flex justify-center mt-6 relative z-30">
2024-05-21 07:57:47 +00:00
<a href="https://www.primefaces.org/store" class="linkbox linkbox-primary">
2023-10-18 10:15:34 +00:00
<span>Explore All</span>
2022-09-14 14:26:41 +00:00
<i class="pi pi-arrow-right ml-2"></i>
2022-12-08 12:26:57 +00:00
</a>
2022-09-14 14:26:41 +00:00
</div>
2024-05-20 11:56:52 +00:00
<section :class="['templates flex justify-center items-center flex-col mt-7', { 'templates-animation': setAnimation }]">
<div class="flex md:flex-row flex-col gap-6 lg:gap-0">
<div class="template-block block-5 mr-2 lg:mb-0 flex justify-center items-center" :style="{ backgroundImage: imageBg('verona') }">
<a class="templates-btn" target="_blank" href="https://verona.primevue.org">Verona Preview</a>
2022-09-06 13:53:29 +00:00
</div>
2024-05-20 11:56:52 +00:00
<div class="template-block block-2 ml-2 flex justify-center items-center" :style="{ backgroundImage: imageBg('freya') }">
2023-04-12 11:30:37 +00:00
<a class="templates-btn" target="_blank" href="https://freya.primevue.org">Freya Preview</a>
2022-09-06 13:53:29 +00:00
</div>
</div>
2024-05-20 11:56:52 +00:00
<div class="flex my-6 md:flex-row flex-col gap-6 lg:gap-0">
<div class="template-block block-3 mr-2 lg:mb-0 flex justify-center items-center" :style="{ backgroundImage: imageBg('atlantis') }">
2023-04-12 11:30:37 +00:00
<a class="templates-btn" target="_blank" href="https://atlantis.primevue.org/">Atlantis Preview</a>
2022-09-06 13:53:29 +00:00
</div>
2024-05-20 11:56:52 +00:00
<div class="template-block block-middle border-0 box-shadow-none mr-2 hidden lg:flex justify-center items-center flex-col">
2022-09-14 14:26:41 +00:00
<img class="img-1" :src="templateImg()" height="110" />
2022-09-06 13:53:29 +00:00
</div>
2024-05-20 11:56:52 +00:00
<div class="template-block block-4 ml-2 flex justify-center items-center" :style="{ backgroundImage: imageBg('apollo') }">
2023-04-12 11:30:37 +00:00
<a class="templates-btn" target="_blank" href="https://apollo.primevue.org">Apollo Preview</a>
2022-09-06 13:53:29 +00:00
</div>
</div>
2024-05-20 11:56:52 +00:00
<div class="flex md:flex-row flex-col gap-6 lg:gap-0">
<div class="template-block block-1 mr-2 lg:mb-0 flex justify-center items-center" :style="{ backgroundImage: imageBg('diamond') }">
<a class="templates-btn" target="_blank" href="https://diamond.primevue.org">Diamond Preview</a>
2022-09-06 13:53:29 +00:00
</div>
2024-05-20 11:56:52 +00:00
<div class="template-block block-6 ml-2 flex justify-center items-center" :style="{ backgroundImage: imageBg('ultima') }">
2023-04-12 11:30:37 +00:00
<a class="templates-btn" target="_blank" href="https://ultima.primevue.org">Ultima Preview</a>
2022-09-06 13:53:29 +00:00
</div>
</div>
<div class="lines">
<div class="top">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="left">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
</section>
2022-09-14 14:26:41 +00:00
</section>
2022-09-06 13:53:29 +00:00
</template>
<script>
export default {
data() {
return {
setAnimation: false
2022-09-14 14:26:41 +00:00
};
2022-09-06 13:53:29 +00:00
},
mounted() {
2022-09-14 14:26:41 +00:00
this.setAnimation = true;
2022-09-06 13:53:29 +00:00
},
methods: {
imageBg(template) {
const isDark = this.$appState.darkTheme;
const url = template === 'templates-text' ? 'png' : 'jpg';
2022-09-06 13:53:29 +00:00
2023-02-06 16:17:41 +00:00
return `url('https://primefaces.org/cdn/primevue/images/landing/templates/${template}-${isDark ? 'dark' : 'light'}.${url}')`;
2022-09-06 13:53:29 +00:00
},
templateImg() {
2024-03-29 07:12:34 +00:00
return `https://primefaces.org/cdn/primevue/images/landing/templates/templates-text-noir-${this.$appState.darkTheme ? 'dark' : 'light'}.png`;
2022-09-06 13:53:29 +00:00
}
}
2022-09-14 14:26:41 +00:00
};
2022-09-06 13:53:29 +00:00
</script>